summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2011-01-10 20:34:49 +0000
committerThomas Kahle <tomka@gentoo.org>2011-01-10 20:34:49 +0000
commit410b2f1d62a2251c4850afbf4037f76e297bd59c (patch)
tree36e7add0d98477313a9a4f79eda2816b819bd116 /sci-mathematics
parentinitial commit - ebuild submissions by Cyp via bug #248393 (diff)
downloadgentoo-2-410b2f1d62a2251c4850afbf4037f76e297bd59c.tar.gz
gentoo-2-410b2f1d62a2251c4850afbf4037f76e297bd59c.tar.bz2
gentoo-2-410b2f1d62a2251c4850afbf4037f76e297bd59c.zip
macos prefix support added, contributed by François Bissey
(Portage version: 2.1.9.26/cvs/Linux i686)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/singular/ChangeLog7
-rw-r--r--sci-mathematics/singular/singular-3.1.2-r2.ebuild17
2 files changed, 14 insertions, 10 deletions
diff --git a/sci-mathematics/singular/ChangeLog b/sci-mathematics/singular/ChangeLog
index 5473d0983724..68d35561cdc0 100644
--- a/sci-mathematics/singular/ChangeLog
+++ b/sci-mathematics/singular/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-mathematics/singular
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.38 2010/12/07 17:16:48 tomka Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.39 2011/01/10 20:34:49 tomka Exp $
+
+ 10 Jan 2011; Thomas Kahle <tomka@gentoo.org> singular-3.1.2-r2.ebuild:
+ macos prefix support added, contributed by François Bissey
07 Dec 2010; Thomas Kahle <tomka@gentoo.org> singular-3.1.2-r2.ebuild:
restricting tests, upstream does not care about them
diff --git a/sci-mathematics/singular/singular-3.1.2-r2.ebuild b/sci-mathematics/singular/singular-3.1.2-r2.ebuild
index 851be8b182fe..b034b862bab4 100644
--- a/sci-mathematics/singular/singular-3.1.2-r2.ebuild
+++ b/sci-mathematics/singular/singular-3.1.2-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.2-r2.ebuild,v 1.4 2010/12/07 17:16:48 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.2-r2.ebuild,v 1.5 2011/01/10 20:34:49 tomka Exp $
EAPI="3"
WANT_AUTOCONF="2.1" # Upstream ticket 240 -> wontfix
@@ -26,7 +26,7 @@ SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~x86-macos"
IUSE="boost doc emacs examples +readline test"
RDEPEND="dev-libs/gmp
@@ -70,11 +70,6 @@ src_prepare () {
-e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"/" \
"${S}"/Singular/configure.in || die
- SOSUFFIX=$(get_version_component_range 1-3)
- sed -i \
- -e "s:SO_SUFFIX = so:SO_SUFFIX = so.${SOSUFFIX}:" \
- "${S}"/Singular/Makefile.in || die
-
cd "${S}"/Singular || die "failed to cd into Singular/"
eautoconf
}
@@ -124,6 +119,12 @@ src_install () {
dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
|| die "failed to install binaries"
insinto /usr/$(get_libdir)/${PN}
+ # fix install_name on macos, the build system is buggy enough not to add extra for OS X.
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ for d in *.so ; do
+ install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${PN}/${d}" "${d}"
+ done
+ fi
doins *.so || die "failed to install libraries"
dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN} \