summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-08-14 10:13:17 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-08-14 10:13:17 +0000
commitfa2d0e4890b9f907d2684665afb2b312f781c141 (patch)
tree01fc2d7e9a1c055e5abf5b422043b4d6fa54fd10 /dev-libs
parentStable on ppc. (diff)
downloadgentoo-2-fa2d0e4890b9f907d2684665afb2b312f781c141.tar.gz
gentoo-2-fa2d0e4890b9f907d2684665afb2b312f781c141.tar.bz2
gentoo-2-fa2d0e4890b9f907d2684665afb2b312f781c141.zip
Don't build BSD's mp compatibility on FreeBSD libc (already present, would break system).
(Portage version: 2.0.51.22)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/gmp/ChangeLog8
-rw-r--r--dev-libs/gmp/Manifest16
-rw-r--r--dev-libs/gmp/files/digest-gmp-4.1.4-r11
-rw-r--r--dev-libs/gmp/gmp-4.1.4-r1.ebuild76
4 files changed, 88 insertions, 13 deletions
diff --git a/dev-libs/gmp/ChangeLog b/dev-libs/gmp/ChangeLog
index b5d8bed8232d..0c81520cb6cf 100644
--- a/dev-libs/gmp/ChangeLog
+++ b/dev-libs/gmp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/gmp
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.51 2005/04/21 09:56:41 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.52 2005/08/14 10:13:17 flameeyes Exp $
+
+*gmp-4.1.4-r1 (14 Aug 2005)
+
+ 14 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> +gmp-4.1.4-r1.ebuild:
+ Don't build BSD's mp compatibility on FreeBSD libc (already present, would
+ break system).
21 Apr 2005; Daniel Black <dragonheart@gentoo.org> gmp-4.1.4.ebuild:
Updated minium libtool version as per bug #88616. Thanks Andrew Cowie
diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
index b4c0a0c46639..50c79cf18c47 100644
--- a/dev-libs/gmp/Manifest
+++ b/dev-libs/gmp/Manifest
@@ -1,17 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 18f4971f6a844a391daab4f169e2c0ae gmp-4.1.4.ebuild 1862
MD5 a528a68ebfe10d3e928b8601d34674b2 ChangeLog 6956
+MD5 ba8cb81f49e637e76902586b36d3b822 gmp-4.1.4-r1.ebuild 1917
+MD5 18f4971f6a844a391daab4f169e2c0ae gmp-4.1.4.ebuild 1862
MD5 dffd46174e78b327c834fc3e4b1cf848 metadata.xml 160
MD5 d70b080c2f0efd82a800ba8a1af7b305 files/ppc64-gmp-acinclude.patch 474
-MD5 ee91d8f397ce79dd0ff7e4ae48a47b21 files/gmp-4.1.4-multilib.patch 2864
MD5 1dbc1772df649dae89ad8e00042c5b46 files/amd64.patch 1166
+MD5 ee91d8f397ce79dd0ff7e4ae48a47b21 files/gmp-4.1.4-multilib.patch 2864
MD5 8c7f521cf77fb56ab019223cf92a6bca files/digest-gmp-4.1.4 62
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFC1tzEBXaUFmZvwyMRAsF4AJ4h66FaFuZ3C9ynm1PZbW/tuzTRcACfQTZ4
-6X18urY+ElvCQa9F1JHzfUg=
-=dliM
------END PGP SIGNATURE-----
+MD5 8c7f521cf77fb56ab019223cf92a6bca files/digest-gmp-4.1.4-r1 62
diff --git a/dev-libs/gmp/files/digest-gmp-4.1.4-r1 b/dev-libs/gmp/files/digest-gmp-4.1.4-r1
new file mode 100644
index 000000000000..17e746454134
--- /dev/null
+++ b/dev-libs/gmp/files/digest-gmp-4.1.4-r1
@@ -0,0 +1 @@
+MD5 aa5e5fb3a7cdebe8c5b681a6cf4a670e gmp-4.1.4.tar.gz 2201302
diff --git a/dev-libs/gmp/gmp-4.1.4-r1.ebuild b/dev-libs/gmp/gmp-4.1.4-r1.ebuild
new file mode 100644
index 000000000000..a65e33232666
--- /dev/null
+++ b/dev-libs/gmp/gmp-4.1.4-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-4.1.4-r1.ebuild,v 1.1 2005/08/14 10:13:17 flameeyes Exp $
+
+inherit flag-o-matic libtool eutils multilib
+
+DESCRIPTION="Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers"
+SRC_URI="mirror://gnu/gmp/${P}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/gmp/gmp.html"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/libc"
+DEPEND="${RDEPEND}
+ sys-apps/gawk
+ sys-devel/bison
+ sys-devel/flex
+ >=sys-devel/libtool-1.4.3-r4
+ sys-devel/gcc"
+
+src_unpack () {
+ unpack ${A}
+ cd ${S}
+
+ # This patch will actually be somewhat short lived as it's really
+ # somewhat of a hack. The toolchain folks (alanm) have a set of patches
+ # to remove the use of the '.' form in ppc64 assembler
+ if use ppc64 ; then
+ epatch ${FILESDIR}/ppc64-gmp-acinclude.patch
+ fi
+
+ # fix problems for -O3 or higher; bug #66780
+ if use amd64; then
+ epatch ${FILESDIR}/amd64.patch
+ fi
+
+ epatch ${FILESDIR}/${PN}-4.1.4-multilib.patch
+
+ export WANT_AUTOCONF=2.5
+ export WANT_AUTOMAKE=1.5
+ libtoolize --copy --force || die "libtoolize --copy --force failed"
+ autoreconf || die "autoconf failed"
+}
+
+src_compile() {
+ filter-flags -ffast-math
+
+ local myconf=""
+ use sparc || myconf="--enable-mpfr"
+ use hppa && export CHOST="hppa-unknown-linux-gnu"
+
+ # FreeBSD libc already have bsdmp
+ econf \
+ --localstatedir=/var/state/gmp \
+ --enable-cxx \
+ $(use_enable !elibc_FreeBSD mpbsd) \
+ ${myconf} \
+ || die "configure failed"
+ emake || die "emake failed"
+
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README
+ dodoc doc/configuration doc/isa_abi_headache
+ dohtml -r doc
+}
+
+src_test() {
+ make check || die "make check failed"
+}