summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-04-07 15:07:01 +0000
committerWilliam Hubbs <williamh@gentoo.org>2011-04-07 15:07:01 +0000
commit804dedc3d4e0e4bc02fdf30fc4f1699eb04e288d (patch)
tree161b012edd75f0146533a6b04c08788971a37aea /dev-lua/LuaBitOp
parentQA on ebuilds style, making repoman happy (diff)
downloadgentoo-2-804dedc3d4e0e4bc02fdf30fc4f1699eb04e288d.tar.gz
gentoo-2-804dedc3d4e0e4bc02fdf30fc4f1699eb04e288d.tar.bz2
gentoo-2-804dedc3d4e0e4bc02fdf30fc4f1699eb04e288d.zip
revision bump to add src_test and fix compilation with -fPIC.
(Portage version: 2.2.0_alpha29/cvs/Linux i686)
Diffstat (limited to 'dev-lua/LuaBitOp')
-rw-r--r--dev-lua/LuaBitOp/ChangeLog7
-rw-r--r--dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild43
2 files changed, 49 insertions, 1 deletions
diff --git a/dev-lua/LuaBitOp/ChangeLog b/dev-lua/LuaBitOp/ChangeLog
index 84528dc1f7c3..36dd66449bdb 100644
--- a/dev-lua/LuaBitOp/ChangeLog
+++ b/dev-lua/LuaBitOp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lua/LuaBitOp
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lua/LuaBitOp/ChangeLog,v 1.1 2011/04/05 23:23:41 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/LuaBitOp/ChangeLog,v 1.2 2011/04/07 15:07:01 williamh Exp $
+
+*LuaBitOp-1.0.1-r1 (07 Apr 2011)
+
+ 07 Apr 2011; William Hubbs <williamh@gentoo.org> +LuaBitOp-1.0.1-r1.ebuild:
+ revision bump to fix compilation with -fPIC and add src_test.
*LuaBitOp-1.0.1 (05 Apr 2011)
diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild b/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..4315971db3ae
--- /dev/null
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild,v 1.1 2011/04/07 15:07:00 williamh Exp $
+
+EAPI="4"
+inherit multilib
+
+DESCRIPTION="Bit Operations Library for the Lua Programming Language"
+HOMEPAGE="http://bitop.luajit.org"
+SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="=dev-lang/lua-5.1*"
+RDEPEND="${DEPEND}"
+
+src_prepare()
+{
+ sed -i \
+ -e '/^CFLAGS.*=/s/=/ +=/' \
+ -e '/^CFLAGS/s/-O2 -fomit-frame-pointer //' \
+ Makefile || die "sed failed"
+}
+
+src_compile()
+{
+ emake CC="$(tc-getCC)"
+}
+
+src_test()
+{
+ make test
+}
+
+src_install()
+{
+ exeinto /usr/$(get_libdir)/lua/5.1
+doexe bit.so
+ dohtml -r doc/*
+}