diff options
Diffstat (limited to 'dev-lua/lpeg/lpeg-0.12.2.ebuild')
-rw-r--r-- | dev-lua/lpeg/lpeg-0.12.2.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-lua/lpeg/lpeg-0.12.2.ebuild b/dev-lua/lpeg/lpeg-0.12.2.ebuild new file mode 100644 index 000000000000..3e22733ad738 --- /dev/null +++ b/dev-lua/lpeg/lpeg-0.12.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs eutils multilib + +DESCRIPTION="Parsing Expression Grammars for Lua" +HOMEPAGE="http://www.inf.puc-rio.br/~roberto/lpeg/" +SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ppc ppc64 sparc ~x86" +IUSE="debug doc" + +RDEPEND=">=dev-lang/lua-5.1" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.12.1-makefile.patch + use debug && append-cflags -DLPEG_DEBUG +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_test() { + lua test.lua || die +} + +src_install() { + exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" + doexe lpeg.so + + dodoc HISTORY + + use doc && dohtml * +} |