summaryrefslogtreecommitdiff
path: root/sci-mathematics/polymake
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/polymake
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/polymake')
-rw-r--r--sci-mathematics/polymake/Manifest5
-rw-r--r--sci-mathematics/polymake/metadata.xml24
-rw-r--r--sci-mathematics/polymake/polymake-3.0_p2.ebuild90
3 files changed, 119 insertions, 0 deletions
diff --git a/sci-mathematics/polymake/Manifest b/sci-mathematics/polymake/Manifest
new file mode 100644
index 000000000000..78ee20f18f3e
--- /dev/null
+++ b/sci-mathematics/polymake/Manifest
@@ -0,0 +1,5 @@
+DIST polymake-3.0r2.tar.bz2 37695790 SHA256 e7c0f8e3a45ea288d2fb4ae781a1dcea913ef9c275fed401632cdb11a672d6dc SHA512 b4c22b2c6da8ef597dc05a44a30c7a55fd924a96854cde3f725095465972eabe1e24508f8e5d544f3131c82c973117b15983c38a0242fc7f1d4a4a8ecddb1d46 WHIRLPOOL 5a236ac32de0dd19e7f0f5b8b1b42f2b72fa2392ee098718383a8dfd0f1d1db3946d5f4f75bd9e4c075033deebcd87ddbb28ce70733d6371fa4624b8b6a4edd1
+EBUILD polymake-3.0_p2.ebuild 2692 SHA256 496782bc3939ab7a2f5aeda7cac8c72f1ea2fd6cd439c49629b0ccc811508680 SHA512 1c56745020235e99cab64e5f2432212805cbabf5b0444588b6f07594c8ece72a999c02b0a41ed1ddb72e2ea408ca75fc7051da3b014ecc14ee0d0fa9e413e171 WHIRLPOOL 09a06ddd26d960c17ea88d8a96f739acf3efed0c66436ea5c5a8c3f641989388be5dfd6ab57f1b9803f122ecce83ae770fda478de9162b530ef2810f41c85045
+MISC ChangeLog 3319 SHA256 eac861918ed525b5ff0b519e6f2ce9bec2bf55e5c5969686e839fdbdd9b8d175 SHA512 8d3df5910feec3c3cd589bdffb4931c0532131ca2bcf94ae87abcac831cc7fd520a62a617da9b04ad7d61bd9bec05a916d1fbf4c68e77f4b1b5a26aff7eaf7bd WHIRLPOOL 59d666fab2bba1a63039bc5c8a4e87242370d3aafb61351f0dc18748225ec1894df8b98ba69561915bb7f552a6f5396fd088f37e58b435533490d7e3b680bdb5
+MISC ChangeLog-2015 2880 SHA256 3227519f7d2cec5213953d6c0c21a8c207017377e945098ae6e22cb82aff493a SHA512 fa58e78a678d0b809a3d18ef230d93bd4bc147562eccedd547d11dd9fe8834a0b8b6a22e32359b08e1ba8835b1e3f60198435b5c5b956f9d8b505f75a2e1563b WHIRLPOOL 43ce1677b024f2580b870009d821a1e31eb4e664bfc9cace46f9a2d64ccaddbe7b2eabdc40d7f7294eb0624be89b6c4ff8414781fdf4e77184be73e6ffc1e4fb
+MISC metadata.xml 1344 SHA256 4db49dc932c001aea71435c2e2bb98e9f561eabc319f04a658e567e7563dcdb4 SHA512 43356916d2941afab2346ab4289ec1ab65a166523682a7831a29261c3f7391072d4fa232c324483e33d523fa80288a208f7937f559e56bb20b3a85d5058779e9 WHIRLPOOL fc9e7da5ab31a373cdeddb5ef7aea7cb52471877e4a32b342d5da0e0916cbf3979cfba9221893e0d2898fbbd9956287b5f516b911525847b24ca7bccd6bf2d47
diff --git a/sci-mathematics/polymake/metadata.xml b/sci-mathematics/polymake/metadata.xml
new file mode 100644
index 000000000000..fb608830c0a6
--- /dev/null
+++ b/sci-mathematics/polymake/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+</maintainer>
+<use>
+ <flag name="cdd">Enable sci-libs/cddlib interface for convex hull
+ computations (Should be kept enabled).</flag>
+ <flag name="lrs">Enable sci-libs/lrslib interface for convex hull computations.</flag>
+ <flag name="ppl">Enable dev-libs/ppl interface for convex hull computations.</flag>
+ <flag name="bliss">Enable sci-libs/bliss interface for graph and face lattice isomorphism computations.</flag>
+ <flag name="group">Build extension for dealing with permutation groups and symmetric objects.</flag>
+ <flag name="libnormaliz">Build the bundled extension for lattice related computations.</flag>
+ <flag name="singular">Enable the interface to sci-mathematics/singular for ideal related computations.</flag>
+ <flag name="libpolymake">Build the polymake library to build applications using the C++ interface.</flag>
+</use>
+<longdescription lang="en">
+Polymake started out as a tool for the algorithmic treatment of convex
+polyhedra. By now it also deals with finite simplicial complexes,
+tight spans of finite metric spaces, and other objects.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-mathematics/polymake/polymake-3.0_p2.ebuild b/sci-mathematics/polymake/polymake-3.0_p2.ebuild
new file mode 100644
index 000000000000..7727fc25d421
--- /dev/null
+++ b/sci-mathematics/polymake/polymake-3.0_p2.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="research tool for polyhedral geometry and combinatorics"
+SRC_URI="https://polymake.org/lib/exe/fetch.php/download/polymake-3.0r2.tar.bz2"
+HOMEPAGE="http://polymake.org"
+
+IUSE="+cdd lrs ppl bliss group +libnormaliz singular libpolymake"
+
+REQUIRED_USE="group? ( cdd lrs )"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND="dev-lang/perl
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0
+ dev-libs/libxml2:2
+ dev-libs/libxslt
+ ppl? ( dev-libs/ppl )
+ cdd? ( sci-libs/cddlib )
+ lrs? ( >=sci-libs/lrslib-051[gmp] )
+ bliss? ( sci-libs/bliss[gmp] )
+ group? ( dev-libs/boost:= )
+ libnormaliz? ( dev-libs/boost:= )
+ singular? ( >=sci-mathematics/singular-4.0.1 )"
+RDEPEND="${DEPEND}
+ dev-perl/XML-LibXML
+ dev-perl/XML-LibXSLT
+ dev-perl/XML-Writer
+ dev-perl/Term-ReadLine-Gnu"
+
+S="${WORKDIR}/${PN}-3.0"
+
+pkg_pretend() {
+ einfo "During compile this package uses up to"
+ einfo "750MB of RAM per process. Use MAKEOPTS=\"-j1\" if"
+ einfo "you run into trouble."
+}
+
+src_configure () {
+ export CXXOPT=$(get-flag -O)
+
+ # We need to define BLISS_USE_GMP if bliss was built with gmp support.
+ # Therefore we require gmp support on bliss, so that the package
+ # manager can prevent rebuilds with changed gmp flag.
+ if use bliss ; then
+ append-cxxflags -DBLISS_USE_GMP
+ fi
+
+ # Configure does not accept --host, therefore econf cannot be used
+
+ # Some of the options do not support using just '--with-option'
+ local myconf=""
+ use !group && myconf="$myconf --without-group"
+ use !libnormaliz && myconf="$myconf --without-libnormaliz"
+ use !libpolymake && myconf="$myconf --without-callable"
+
+ # And many other --with-arguments expect a path: --with-option=/path
+ ./configure --prefix="${EPREFIX}/usr" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --libexecdir="${EPREFIX}/usr/$(get_libdir)/polymake" \
+ --without-prereq \
+ --without-java \
+ $(use_with cdd cdd "${EPREFIX}/usr") \
+ $(use_with lrs lrs "${EPREFIX}/usr") \
+ $(use_with ppl ppl "${EPREFIX}/usr") \
+ $(use_with bliss bliss "${EPREFIX}/usr") \
+ $(use_with singular singular "${EPREFIX}/usr") \
+ ${myconf} || die
+}
+
+src_install(){
+ emake -j1 DESTDIR="${D}" install
+}
+
+pkg_postinst(){
+ elog "Docs can be found on http://www.polymake.org/doku.php/documentation"
+ elog " "
+ elog "Support for jreality is missing, sorry (see bug #346073)."
+ elog " "
+ elog "Additional features for polymake are available through external"
+ elog "software such as sci-mathematics/4ti2 and sci-mathematics/topcom."
+ elog "After installing new external software run 'polymake --reconfigure'."
+}