summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2010-11-12 14:50:28 +0000
committerThomas Kahle <tomka@gentoo.org>2010-11-12 14:50:28 +0000
commit0f1e7da5481d735ba8be36e28c81c302933ea7b8 (patch)
treec1dfc9077c8562482a08b7c06e5f50a933c3d362 /sci-mathematics/gfan
parentUpdate ebuild to reflect tests change. Fix license specification. Per jkt's r... (diff)
downloadhistorical-0f1e7da5481d735ba8be36e28c81c302933ea7b8.tar.gz
historical-0f1e7da5481d735ba8be36e28c81c302933ea7b8.tar.bz2
historical-0f1e7da5481d735ba8be36e28c81c302933ea7b8.zip
New package: sci-mathematics/gfan imported from science overlay.
Fixes bug 293381, thanks to sage-on-gentoo people for contributions. Package-Manager: portage-2.1.9.24/cvs/Linux i686
Diffstat (limited to 'sci-mathematics/gfan')
-rw-r--r--sci-mathematics/gfan/ChangeLog12
-rw-r--r--sci-mathematics/gfan/Manifest16
-rw-r--r--sci-mathematics/gfan/files/gfan-0.4-fix-polynomial.patch14
-rw-r--r--sci-mathematics/gfan/files/gfan-0.4-gcc45.patch11
-rw-r--r--sci-mathematics/gfan/gfan-0.4-r1.ebuild39
-rw-r--r--sci-mathematics/gfan/metadata.xml12
6 files changed, 104 insertions, 0 deletions
diff --git a/sci-mathematics/gfan/ChangeLog b/sci-mathematics/gfan/ChangeLog
new file mode 100644
index 000000000000..8d930d9977ed
--- /dev/null
+++ b/sci-mathematics/gfan/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sci-mathematics/gfan
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gfan/ChangeLog,v 1.1 2010/11/12 14:50:27 tomka Exp $
+
+*gfan-0.4-r1 (12 Nov 2010)
+
+ 12 Nov 2010; Thomas Kahle <tomka@gentoo.org> +gfan-0.4-r1.ebuild,
+ +files/gfan-0.4-fix-polynomial.patch, +files/gfan-0.4-gcc45.patch,
+ +metadata.xml:
+ Initial import from science overlay. Thanks to all contributors, also
+ at sage-on-gentoo. Fixes bug 293381.
+
diff --git a/sci-mathematics/gfan/Manifest b/sci-mathematics/gfan/Manifest
new file mode 100644
index 000000000000..3dad16300ca8
--- /dev/null
+++ b/sci-mathematics/gfan/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX gfan-0.4-fix-polynomial.patch 449 RMD160 582a3e6555a9def0b10104e40ddba31920135fb0 SHA1 b4237acc4225c17e54abdafaa164c91c69bd9d9e SHA256 28026edf2bd35e0f518a263c4a9466a007bce0d17d28d6e4cc14ac423cb94753
+AUX gfan-0.4-gcc45.patch 265 RMD160 234c52f93317b04534bd8250aad98c3c2ae1c050 SHA1 23d86ce705c16245cf8d314b1a582286d0ba1f2d SHA256 0840ea5682218dca6441b00cfa86bd4d20631c0faab488997a48a8253ede22e0
+DIST gfan0.4plus.tar.gz 748514 RMD160 d8a1f235878c7d207e26c00e9097dfea548540e7 SHA1 e8e3f2c2f730c88d0c556f5b0fdf3a99b66b9bac SHA256 bdc4f608df6bda56fdb1bf253fba8e9d9c98dec6915a80a1da9d9ee4210cfff3
+EBUILD gfan-0.4-r1.ebuild 1079 RMD160 5aedd1aae029832768b885772644d7da512dec8d SHA1 01a3b07e5b987bd173f37a39b0f4e842b1e26f59 SHA256 fa314d7c24299d757d2a4a4fd50d339c7a82fbd80d0166fa7da3b6a191b53012
+MISC ChangeLog 506 RMD160 b5cd7f8bf055a1310b0b9aa37960cc074abf4818 SHA1 82dd3f3405848421a72cb1fe6df70336a4af7da4 SHA256 d1c0fffc44f90468f402cdc84f73ebb6c14cfeb7b0c342efff6b3df9b390d973
+MISC metadata.xml 388 RMD160 873d560bf87a33c6a7714cad17aaca8b709580a2 SHA1 b6ae58d5e3dddf212cedd4a8ad7abd4e7da5eb50 SHA256 25dda739fd01dd8f3510b4f5757e07a46f3f21245d4e9e043a343522e7177e37
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkzdVwMACgkQnZsgo/h8kNZDBACgn0D080EZ2s6KoQxrCwkK8l56
+GbUAnj+gjHi9WviA0y6XDvqr9XoMu5x9
+=Ez4y
+-----END PGP SIGNATURE-----
diff --git a/sci-mathematics/gfan/files/gfan-0.4-fix-polynomial.patch b/sci-mathematics/gfan/files/gfan-0.4-fix-polynomial.patch
new file mode 100644
index 000000000000..37c68fcaa104
--- /dev/null
+++ b/sci-mathematics/gfan/files/gfan-0.4-fix-polynomial.patch
@@ -0,0 +1,14 @@
+--- polynomial.cpp.orig 2010-02-07 08:21:23.494221736 +0000
++++ polynomial.cpp 2010-02-07 08:26:55.077158315 +0000
+@@ -463,10 +463,8 @@
+ if(isMarked())
+ {
+ IntegerVector v=m;
+- if(m.size()+1==newRing.getNumberOfVariables())
++ if(m.size()==newRing.getNumberOfVariables())
+ {
+- v.grow(m.size()+1);
+- v[m.size()]=degree-v.sum();
+ ret.mark(Monomial(newRing,v));
+ }
+ // assert(m.size()==newRing.getNumberOfVariables());
diff --git a/sci-mathematics/gfan/files/gfan-0.4-gcc45.patch b/sci-mathematics/gfan/files/gfan-0.4-gcc45.patch
new file mode 100644
index 000000000000..f60824c2f0e8
--- /dev/null
+++ b/sci-mathematics/gfan/files/gfan-0.4-gcc45.patch
@@ -0,0 +1,11 @@
+--- linalg.cpp
++++ linalg.cpp
+@@ -525,7 +525,7 @@
+ }
+
+
+-FieldMatrix::FieldMatrix FieldMatrix::solver()const
++FieldMatrix FieldMatrix::solver()const
+ {
+ FieldMatrix ret=combineOnTop(*this,theField.zHomomorphism(-1)*identity(theField,getWidth())).transposed();
+
diff --git a/sci-mathematics/gfan/gfan-0.4-r1.ebuild b/sci-mathematics/gfan/gfan-0.4-r1.ebuild
new file mode 100644
index 000000000000..551c447d702c
--- /dev/null
+++ b/sci-mathematics/gfan/gfan-0.4-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gfan/gfan-0.4-r1.ebuild,v 1.1 2010/11/12 14:50:27 tomka Exp $
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="computes Groebner fans and tropical varities"
+HOMEPAGE="http://www.math.tu-berlin.de/~jensen/software/gfan/gfan.html"
+SRC_URI="http://www.math.tu-berlin.de/~jensen/software/gfan/${PN}${PV}plus.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="dev-libs/gmp[-nocxx]
+ sci-libs/cddlib"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}${PV}plus/"
+
+src_prepare () {
+ sed -i -e "s/-O2/${CXXFLAGS}/" \
+ -e "/GPROFFLAG =/d" \
+ -e "s/g++/$(tc-getCXX)/" \
+ -e "s/\$(CCLINKER)/& \$(LDFLAGS)/" Makefile || die
+
+ # http://trac.sagemath.org/sage_trac/ticket/8770
+ epatch "${FILESDIR}"/${P}-gcc45.patch
+
+ # Delivered by upstream, will be applied in next release
+ epatch "${FILESDIR}"/${P}-fix-polynomial.patch
+}
+
+src_install() {
+ emake PREFIX="${ED}/usr" install || die "emake install failed"
+}
diff --git a/sci-mathematics/gfan/metadata.xml b/sci-mathematics/gfan/metadata.xml
new file mode 100644
index 000000000000..9c8024fff3cc
--- /dev/null
+++ b/sci-mathematics/gfan/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>tomka@gentoo.org</email>
+ <name>Thomas Kahle</name>
+</maintainer>
+<herd>sci-mathematics</herd>
+ <longdescription lang="en">
+ gfan is a computer algebra tool to compute Groebner fans and tropical varieties.
+</longdescription>
+</pkgmetadata>