summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-08-28 11:24:59 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-08-28 11:24:59 +0000
commit38c75ec3760cb5775a9e3890e1bbd4ee3afa3ab9 (patch)
tree885db58db33befb91e886fc921d71e9dcb70f0a3 /dev-lua
parentAdd patch from upstream to allow building without alsa, bug #360163 (diff)
downloadgentoo-2-38c75ec3760cb5775a9e3890e1bbd4ee3afa3ab9.tar.gz
gentoo-2-38c75ec3760cb5775a9e3890e1bbd4ee3afa3ab9.tar.bz2
gentoo-2-38c75ec3760cb5775a9e3890e1bbd4ee3afa3ab9.zip
Respect LDFLAGS. Bug #367087. Thanks to Alexander Stein <alexander.stein@informatik.tu-chemnitz.de> for the patch
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/LuaBitOp/ChangeLog7
-rw-r--r--dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild5
-rw-r--r--dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch13
3 files changed, 22 insertions, 3 deletions
diff --git a/dev-lua/LuaBitOp/ChangeLog b/dev-lua/LuaBitOp/ChangeLog
index 543eadb2922d..915a8094e779 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.4 2011/07/18 15:21:28 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/LuaBitOp/ChangeLog,v 1.5 2011/08/28 11:24:59 hwoarang Exp $
+
+ 28 Aug 2011; Markos Chandras <hwoarang@gentoo.org> LuaBitOp-1.0.1-r1.ebuild,
+ +files/LuaBitOp-ldflags.patch:
+ Respect LDFLAGS. Bug #367087. Thanks to Alexander Stein
+ <alexander.stein@informatik.tu-chemnitz.de> for the patch
18 Jul 2011; Markos Chandras <hwoarang@gentoo.org> LuaBitOp-1.0.1-r1.ebuild:
keyworded for amd64. Bug #366831
diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild b/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild
index 20a43d0c1284..377a59562b62 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild
@@ -1,9 +1,9 @@
# 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.2 2011/07/18 15:21:28 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild,v 1.3 2011/08/28 11:24:59 hwoarang Exp $
EAPI="4"
-inherit multilib
+inherit eutils multilib
DESCRIPTION="Bit Operations Library for the Lua Programming Language"
HOMEPAGE="http://bitop.luajit.org"
@@ -23,6 +23,7 @@ src_prepare()
-e '/^CFLAGS.*=/s/=/ +=/' \
-e '/^CFLAGS/s/-O2 -fomit-frame-pointer //' \
Makefile || die "sed failed"
+ epatch ${FILESDIR}/${PN}-ldflags.patch
}
src_compile()
diff --git a/dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch b/dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch
new file mode 100644
index 000000000000..2a690cdb5866
--- /dev/null
+++ b/dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch
@@ -0,0 +1,13 @@
+Index: LuaBitOp-1.0.1/Makefile
+===================================================================
+--- LuaBitOp-1.0.1.orig/Makefile
++++ LuaBitOp-1.0.1/Makefile
+@@ -14,7 +14,7 @@ LUA= lua
+
+ CC= gcc
+ SOCFLAGS= -fPIC
+-SOCC= $(CC) -shared $(SOCFLAGS)
++SOCC= $(CC) -shared $(SOCFLAGS) $(LDFLAGS)
+ CFLAGS += -Wall $(SOCFLAGS) $(DEFINES) $(INCLUDES)
+ RM= rm -f
+ INSTALL= install -p