summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-01-31 00:16:04 -0500
committerTim Harder <radhermit@gentoo.org>2017-01-31 00:18:08 -0500
commitfcc30385aa31b7c5cbe15b95750e847cfb21f1b0 (patch)
treee2f17261bd5c255c09ba4aa54ce5ac23fe5dfe47 /dev-lua/lpeg/lpeg-1.0.1.ebuild
parentdev-qt/qtwebengine: fix detecting audio backends (diff)
downloadgentoo-fcc30385aa31b7c5cbe15b95750e847cfb21f1b0.tar.gz
gentoo-fcc30385aa31b7c5cbe15b95750e847cfb21f1b0.tar.bz2
gentoo-fcc30385aa31b7c5cbe15b95750e847cfb21f1b0.zip
dev-lua/lpeg: version bump to 1.0.1
Diffstat (limited to 'dev-lua/lpeg/lpeg-1.0.1.ebuild')
-rw-r--r--dev-lua/lpeg/lpeg-1.0.1.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-lua/lpeg/lpeg-1.0.1.ebuild b/dev-lua/lpeg/lpeg-1.0.1.ebuild
new file mode 100644
index 00000000000..7353daf5efe
--- /dev/null
+++ b/dev-lua/lpeg/lpeg-1.0.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+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 ~ppc ~x86"
+IUSE="debug doc luajit"
+
+RDEPEND="!luajit? ( >=dev-lang/lua-5.1:= )
+ luajit? ( dev-lang/luajit:2= )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( "HISTORY" )
+HTML_DOCS=( "lpeg.html" "re.html" )
+PATCHES=( "${FILESDIR}"/${PN}-0.12.1-makefile.patch )
+
+src_prepare() {
+ default
+ use debug && append-cflags -DLPEG_DEBUG
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ LUADIR="$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))"
+}
+
+src_test() {
+ $(usex luajit 'luajit' 'lua') test.lua || die
+}
+
+src_install() {
+ local instdir
+ instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
+ exeinto "${instdir#${EPREFIX}}"
+ doexe lpeg.so
+ instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
+ insinto "${instdir#${EPREFIX}}"
+ doins re.lua
+
+ use doc && einstalldocs
+}