summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-01-04 19:17:08 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-01-04 19:17:08 +0000
commit4528a9771620311e2d056d67ddbe49fa4546e120 (patch)
tree509cec29b70a3592b8710dde1499676a7c647957 /sci-libs/scikits_learn
parentFix dodoc invocation (diff)
downloadgentoo-2-4528a9771620311e2d056d67ddbe49fa4546e120.tar.gz
gentoo-2-4528a9771620311e2d056d67ddbe49fa4546e120.tar.bz2
gentoo-2-4528a9771620311e2d056d67ddbe49fa4546e120.zip
Fix for bug #397605 by adding -shared to LDFLAGS
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/scikits_learn')
-rw-r--r--sci-libs/scikits_learn/ChangeLog8
-rw-r--r--sci-libs/scikits_learn/scikits_learn-0.9.ebuild9
2 files changed, 13 insertions, 4 deletions
diff --git a/sci-libs/scikits_learn/ChangeLog b/sci-libs/scikits_learn/ChangeLog
index 91a71140226a..591b4f72d058 100644
--- a/sci-libs/scikits_learn/ChangeLog
+++ b/sci-libs/scikits_learn/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-libs/scikits_learn
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.6 2011/11/25 22:13:57 bicatali Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.7 2012/01/04 19:17:08 bicatali Exp $
+
+ 04 Jan 2012; Sébastien Fabbro <bicatali@gentoo.org>
+ scikits_learn-0.9.ebuild:
+ Fix for bug #397605 by adding -shared to LDFLAGS
*scikits_learn-0.9 (25 Nov 2011)
diff --git a/sci-libs/scikits_learn/scikits_learn-0.9.ebuild b/sci-libs/scikits_learn/scikits_learn-0.9.ebuild
index 141c7637ee30..c56896586158 100644
--- a/sci-libs/scikits_learn/scikits_learn-0.9.ebuild
+++ b/sci-libs/scikits_learn/scikits_learn-0.9.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/scikits_learn-0.9.ebuild,v 1.1 2011/11/25 22:13:57 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/scikits_learn-0.9.ebuild,v 1.2 2012/01/04 19:17:08 bicatali Exp $
EAPI="3"
+inherit flag-o-matic
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
@@ -42,6 +43,10 @@ src_prepare() {
library_dirs=${EPREFIX}/usr/$(get_libdir)
include_dirs=${EPREFIX}/usr/include/
EOF
+ # bug #397605
+ [[ ${CHOST} == *-darwin* ]] \
+ && append-ldflags -bundle "-undefined dynamic_lookup" \
+ || append-ldflags -shared
}
src_compile() {