summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2005-11-09 16:23:26 +0000
committerGeorge Shapovalov <george@gentoo.org>2005-11-09 16:23:26 +0000
commit743b4e8bbdee5139e515e6dce4eb9ea6362d8793 (patch)
treeabfa81b19491fbea013fd6a1ffdc8a2ca14ff9f2 /sci-mathematics
parentfix invalid atoms (diff)
downloadgentoo-2-743b4e8bbdee5139e515e6dce4eb9ea6362d8793.tar.gz
gentoo-2-743b4e8bbdee5139e515e6dce4eb9ea6362d8793.tar.bz2
gentoo-2-743b4e8bbdee5139e515e6dce4eb9ea6362d8793.zip
new version (#110772)
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/pari/ChangeLog8
-rw-r--r--sci-mathematics/pari/files/digest-pari-2.1.71
-rw-r--r--sci-mathematics/pari/pari-2.1.7.ebuild87
3 files changed, 95 insertions, 1 deletions
diff --git a/sci-mathematics/pari/ChangeLog b/sci-mathematics/pari/ChangeLog
index 9723e4783d13..5fe04d0fd205 100644
--- a/sci-mathematics/pari/ChangeLog
+++ b/sci-mathematics/pari/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-mathematics/pari
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.19 2005/11/08 17:41:36 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.20 2005/11/09 16:23:26 george Exp $
+
+*pari-2.1.7 (09 Nov 2005)
+
+ 09 Nov 2005; <gerr@gentoo.org> +pari-2.1.7.ebuild:
+ new version (#110772), the patch to sources seems no longer necessary,
+ as the corresponding upstream bug said "it's in cvs" for previous version (and it tests fine).
08 Nov 2005; George Shapovalov <george@gentoo.org> pari-2.1.6.ebuild:
fix for sparc arch (#87790)
diff --git a/sci-mathematics/pari/files/digest-pari-2.1.7 b/sci-mathematics/pari/files/digest-pari-2.1.7
new file mode 100644
index 000000000000..8f7c18b600af
--- /dev/null
+++ b/sci-mathematics/pari/files/digest-pari-2.1.7
@@ -0,0 +1 @@
+MD5 357b7a42e89e2761a5367bbcbfcca5f2 pari-2.1.7.tgz 1542137
diff --git a/sci-mathematics/pari/pari-2.1.7.ebuild b/sci-mathematics/pari/pari-2.1.7.ebuild
new file mode 100644
index 000000000000..c3209d10f9de
--- /dev/null
+++ b/sci-mathematics/pari/pari-2.1.7.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.1.7.ebuild,v 1.1 2005/11/09 16:23:26 george Exp $
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="pari (or pari-gp) : a software package for computer-aided number theory"
+HOMEPAGE="http://pari.math.u-bordeaux.fr/"
+SRC_URI="http://pari.math.u-bordeaux.fr/pub/pari/unix/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="doc emacs"
+
+DEPEND="doc? ( virtual/tetex )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/docs.patch
+}
+
+src_compile() {
+ # Fix usage of toolchain
+ tc-getAS; tc-getLD; tc-getCC; tc-getCXX
+
+ # Special handling for sparc
+ local myhost
+ [ "${PROFILE_ARCH}" == "sparc64" ] && myhost="sparc64-linux" \
+ || myhost="$(echo ${CHOST} | cut -f "1 3" -d '-')"
+ einfo "Building for ${myhost}"
+
+ #need to force optimization here, as it breaks without
+ if is-flag -O0; then
+ replace-flags -O0 -O2
+ elif ! is-flag -O?; then
+ append-flags -O2
+ fi
+ #we also need to force -fPIC throughout on amd64
+ if [ "${ARCH}" = "amd64" ] && ! is-flag -fPIC; then append-flags -fPIC; fi
+
+ ./Configure \
+ --host=${myhost} \
+ --prefix=/usr \
+ --miscdir=/usr/share/doc/${PF} \
+ --datadir=/usr/share/${P} \
+ --libdir=/usr/$(get_libdir) \
+ --mandir=/usr/share/man/man1 || die "./configure failed"
+ addwrite "/var/lib/texmf"
+ addwrite "/usr/share/texmf"
+ addwrite "/var/cache/fonts"
+
+ if use hppa
+ then
+ mymake=DLLD\=/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
+ fi
+
+ # Shared libraries should be PIC on ALL architectures.
+ # Danny van Dyk <kugelfang@gentoo.org> 2005/03/31
+ # Fixes BUG #49583
+ einfo "Building shared library..."
+ cd Olinux-* || die "Bad directory. File a BUG!"
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE -fPIC" lib-dyn || die "Building shared library failed!"
+
+ einfo "Building executables..."
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp || die "Building executables failed!"
+
+ use doc || rm -rf doc/*.tex
+ use doc && emake doc
+}
+
+src_test() {
+ cd ${S}
+ ebegin "Testing pari kernel"
+ make CFLAGS="-Wl,-lpari" test-kernel > /dev/null
+ eend $?
+}
+
+src_install() {
+ make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install || die
+ if use emacs; then
+ insinto /usr/share/emacs/site-lisp
+ doins emacs/pari.el
+ fi
+ dodoc AUTHORS Announce.2.1 CHANGES README TODO
+}