summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2008-12-21 17:56:11 +0000
committerSteve Arnold <nerdboy@gentoo.org>2008-12-21 17:56:11 +0000
commitdfc568cd0804a7c832d538a4e959106e20c71382 (patch)
treeefdb6b53cbd2eeb24e4847f0688341ade90f19e8 /sci-geosciences
parentUse slotted deps, bug #247636, with approval of loki_val. (diff)
downloadgentoo-2-dfc568cd0804a7c832d538a4e959106e20c71382.tar.gz
gentoo-2-dfc568cd0804a7c832d538a4e959106e20c71382.tar.bz2
gentoo-2-dfc568cd0804a7c832d538a4e959106e20c71382.zip
Added -lm to ldflags back to latest two versions (see bug #250757).
(Portage version: 2.2_rc17/cvs/Linux 2.6.27.7 x86_64)
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/gpsd/ChangeLog7
-rw-r--r--sci-geosciences/gpsd/gpsd-2.36.ebuild8
-rw-r--r--sci-geosciences/gpsd/gpsd-2.37.ebuild13
3 files changed, 25 insertions, 3 deletions
diff --git a/sci-geosciences/gpsd/ChangeLog b/sci-geosciences/gpsd/ChangeLog
index d6e59ea9a83b..3507947914ba 100644
--- a/sci-geosciences/gpsd/ChangeLog
+++ b/sci-geosciences/gpsd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-geosciences/gpsd
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.35 2008/09/08 03:46:33 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.36 2008/12/21 17:56:11 nerdboy Exp $
+
+ 21 Dec 2008; Steve Arnold <nerdboy@gentoo.org> gpsd-2.36.ebuild,
+ gpsd-2.37.ebuild:
+ Added -lm to ldflags back to latest two versions (see bug #250757; also
+ patched the python build to add libm as required lib).
07 Sep 2008; Steve Arnold <nerdboy@gentoo.org> files/99-gpsd-usb.rules,
gpsd-2.37.ebuild:
diff --git a/sci-geosciences/gpsd/gpsd-2.36.ebuild b/sci-geosciences/gpsd/gpsd-2.36.ebuild
index 7073f21fd4be..d8329cf7964f 100644
--- a/sci-geosciences/gpsd/gpsd-2.36.ebuild
+++ b/sci-geosciences/gpsd/gpsd-2.36.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.36.ebuild,v 1.4 2008/06/27 10:31:15 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.36.ebuild,v 1.5 2008/12/21 17:56:11 nerdboy Exp $
WANT_AUTOMAKE="latest"
WANT_AUTOCONF=2.5
@@ -54,6 +54,9 @@ src_unpack() {
unpack ${A}
cd "${S}"
eautoreconf
+ sed -i -e \
+ "s:gpspacket\", extension_source)]:gpspacket\", extension_source, libraries=['m'])]:g" \
+ setup.py || die "sed failed"
}
src_compile() {
@@ -92,6 +95,9 @@ src_compile() {
# Support for the TNT digital compass is currently broken
# $(use_enable tntc tnt)
+ # still needs an explicit linkage with the math lib (bug #250757)
+ append-ldflags -lm
+
emake || die "emake failed"
}
diff --git a/sci-geosciences/gpsd/gpsd-2.37.ebuild b/sci-geosciences/gpsd/gpsd-2.37.ebuild
index 62f50577b8e6..089c8ec6e77b 100644
--- a/sci-geosciences/gpsd/gpsd-2.37.ebuild
+++ b/sci-geosciences/gpsd/gpsd-2.37.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.37.ebuild,v 1.3 2008/09/08 03:46:33 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.37.ebuild,v 1.4 2008/12/21 17:56:11 nerdboy Exp $
inherit eutils distutils
@@ -45,6 +45,14 @@ DEPEND="${RDEPEND}
sys-libs/ncurses
)"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e \
+ "s:gpspacket\", extension_source)]:gpspacket\", extension_source, libraries=['m'])]:g" \
+ setup.py || die "sed failed"
+}
+
src_compile() {
local my_conf="--enable-shared --with-pic --enable-static \
@@ -81,6 +89,9 @@ src_compile() {
# Support for the TNT digital compass is currently broken
# $(use_enable tntc tnt)
+ # still needs an explicit linkage with the math lib (bug #250757)
+ append-ldflags -lm
+
emake || die "emake failed"
}