summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Callen <abcd@gentoo.org>2010-02-21 00:02:24 +0000
committerJonathan Callen <abcd@gentoo.org>2010-02-21 00:02:24 +0000
commiteef3b9188db9c4bc5ba26041fb9edc137035a275 (patch)
tree6a607c9b3961e890e4a14cb19f5b141d1d05e6fe /dev-libs/libtommath
parentVersion bump, bug #305929. (diff)
downloadgentoo-2-eef3b9188db9c4bc5ba26041fb9edc137035a275.tar.gz
gentoo-2-eef3b9188db9c4bc5ba26041fb9edc137035a275.tar.bz2
gentoo-2-eef3b9188db9c4bc5ba26041fb9edc137035a275.zip
Transfer prefix keywords, bump EAPI
(Portage version: -svn/cvs/Linux i686)
Diffstat (limited to 'dev-libs/libtommath')
-rw-r--r--dev-libs/libtommath/ChangeLog7
-rw-r--r--dev-libs/libtommath/libtommath-0.41.ebuild21
2 files changed, 18 insertions, 10 deletions
diff --git a/dev-libs/libtommath/ChangeLog b/dev-libs/libtommath/ChangeLog
index 85ec81df283e..952a9504b662 100644
--- a/dev-libs/libtommath/ChangeLog
+++ b/dev-libs/libtommath/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-libs/libtommath
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtommath/ChangeLog,v 1.29 2009/07/28 21:53:31 vostorga Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtommath/ChangeLog,v 1.30 2010/02/21 00:02:24 abcd Exp $
+
+ 21 Feb 2010; Jonathan Callen <abcd@gentoo.org> libtommath-0.41.ebuild:
+ Transfer prefix keywords, bump EAPI
28 Jul 2009; Víctor Ostorga <vostorga@gentoo.org>
libtommath-0.36-r1.ebuild, +files/libtommath-0.36-CC.patch,
diff --git a/dev-libs/libtommath/libtommath-0.41.ebuild b/dev-libs/libtommath/libtommath-0.41.ebuild
index e397c7d29e37..66e3f56cba09 100644
--- a/dev-libs/libtommath/libtommath-0.41.ebuild
+++ b/dev-libs/libtommath/libtommath-0.41.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtommath/libtommath-0.41.ebuild,v 1.3 2009/07/28 21:53:31 vostorga Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtommath/libtommath-0.41.ebuild,v 1.4 2010/02/21 00:02:24 abcd Exp $
+
+EAPI=3
inherit eutils multilib
@@ -10,25 +12,28 @@ SRC_URI="http://www.libtom.org/files/ltm-${PV}.tar.bz2"
LICENSE="public-domain"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND="sys-devel/libtool"
RDEPEND=""
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}"/${P}-LDFLAGS.patch
epatch "${FILESDIR}"/${P}-CC.patch
+
+ [[ ${CHOST} == *-darwin* ]] && \
+ sed -i -e 's/libtool/glibtool/g' makefile.shared
+
+ sed -i -e 's: -g $(GROUP) -o $(USER)::g' makefile.shared
}
src_compile() {
- emake CC=$(tc-getCC) -f makefile.shared IGNORE_SPEED=1 || die "emake failed"
+ emake CC=$(tc-getCC) -f makefile.shared IGNORE_SPEED=1 LIBPATH="${EPREFIX}/usr/$(get_libdir)" || die "emake failed"
}
src_install() {
- make -f makefile.shared install DESTDIR="${D}" LIBPATH="/usr/$(get_libdir)" || die
+ emake -f makefile.shared install DESTDIR="${D}" LIBPATH="${EPREFIX}/usr/$(get_libdir)" INCPATH="${EPREFIX}/usr/include" || die
dodoc changes.txt *.pdf
docinto demo ; dodoc demo/*.c
}