summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2008-09-08 22:56:36 +0300
committerAli Polatel <hawking@gentoo.org>2008-09-08 22:56:36 +0300
commitec9df1ef1e40a6eb9afd11542c8e8e8881b7a0d8 (patch)
tree3b4bbf16ddbde7a61e47f20bb550669259c29592 /dev-lua
parentRevision bump. Added examples USE flag. Drop old. (diff)
downloadhawking-ec9df1ef1e40a6eb9afd11542c8e8e8881b7a0d8.tar.gz
hawking-ec9df1ef1e40a6eb9afd11542c8e8e8881b7a0d8.tar.bz2
hawking-ec9df1ef1e40a6eb9afd11542c8e8e8881b7a0d8.zip
Added dev-lua/lua-ex
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/lua-ex/Manifest1
-rw-r--r--dev-lua/lua-ex/lua-ex-9999.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-lua/lua-ex/Manifest b/dev-lua/lua-ex/Manifest
new file mode 100644
index 0000000..222b02f
--- /dev/null
+++ b/dev-lua/lua-ex/Manifest
@@ -0,0 +1 @@
+EBUILD lua-ex-9999.ebuild 929 RMD160 87904e104e2cbdc0f9386d1719bebe4a20061711 SHA1 e547290ff3e23964cecaa121142fd3c218014d5d SHA256 2be88cbed194d082f9df480f6eb515524d3c28430285036f224e63745fe37e2a
diff --git a/dev-lua/lua-ex/lua-ex-9999.ebuild b/dev-lua/lua-ex/lua-ex-9999.ebuild
new file mode 100644
index 0000000..999ff4a
--- /dev/null
+++ b/dev-lua/lua-ex/lua-ex-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit cvs lua
+
+DESCRIPTION="The Lua Extension API"
+HOMEPAGE="http://luaforge.net/projects/lua-ex/"
+ECVS_SERVER="cvs.luaforge.net:/cvsroot/lua-ex"
+ECVS_MODULE="${PN}"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=">=dev-lang/lua-5.1"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ cvs_src_unpack
+ cd "${S}"
+
+ sed -e "s:^\(LUA= \).*:\1$(lua_get_libdir):" \
+ -e ":^LUAINC=:d" \
+ -e "s:^\(LUALIB= \).*:\1 -llua:" \
+ -e ":^POSIX_SPAWN:,:^EXTRA:d" \
+ conf.in > conf || die "sed in conf.in failed"
+
+ # Respect CFLAGS and add -fPIC.
+ sed -i \
+ -e "s:^CFLAGS=:CFLAGS+= -fPIC :" \
+ posix/Makefile || die "sed in posix/Makefile failed"
+}
+
+src_compile() {
+ emake linux || die "emake failed"
+}
+
+src_install() {
+ lua_install_cmodule posix/ex.so
+ dodoc Changelog README || die "dodoc failed"
+}
+