diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/normaliz |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/normaliz')
-rw-r--r-- | sci-mathematics/normaliz/Manifest | 14 | ||||
-rw-r--r-- | sci-mathematics/normaliz/files/normaliz-2.12.1-respect-flags.patch | 47 | ||||
-rw-r--r-- | sci-mathematics/normaliz/files/normaliz-2.12.2-gcc49.patch | 11 | ||||
-rw-r--r-- | sci-mathematics/normaliz/files/normaliz-3.0.0-respect-flags.patch | 47 | ||||
-rw-r--r-- | sci-mathematics/normaliz/metadata.xml | 19 | ||||
-rw-r--r-- | sci-mathematics/normaliz/normaliz-2.12.2.ebuild | 63 | ||||
-rw-r--r-- | sci-mathematics/normaliz/normaliz-3.1.1.ebuild | 62 | ||||
-rw-r--r-- | sci-mathematics/normaliz/normaliz-3.1.3.ebuild | 64 | ||||
-rw-r--r-- | sci-mathematics/normaliz/normaliz-3.3.0.ebuild | 60 |
9 files changed, 387 insertions, 0 deletions
diff --git a/sci-mathematics/normaliz/Manifest b/sci-mathematics/normaliz/Manifest new file mode 100644 index 000000000000..4e056666780a --- /dev/null +++ b/sci-mathematics/normaliz/Manifest @@ -0,0 +1,14 @@ +AUX normaliz-2.12.1-respect-flags.patch 2097 SHA256 e759b884ea9e021d8f22bcd2f38b441517243ae84d19308f6f4349f327bb9385 SHA512 c5a01a49cd1f61a5eea007b991e44eb39910481a214ea169dbf87904c6bf258c23e6a85391e9584d125935b5b71e0b3285339fdd7f8e1d7e824aca6e953a2d54 WHIRLPOOL 7fc5ba979257d3ac56364566bd7e07d1d1154a7856ceea5137ec0daa23cfad97b566466ceb9c0a81b88f174960a98d9bc492d9e42a35d5cf559675c0254cc2aa +AUX normaliz-2.12.2-gcc49.patch 447 SHA256 2f04a82bf34a07709df04299bbff62ed869f2f94b7473f90cabb208e35278cfe SHA512 465fc30dac17c2ba6c8f702386556fba21d5d2d6cf3282ac5bd87aa2f578b96c5ec852518ab345742518563e4882b99a58484b70576db36766e66498273449e1 WHIRLPOOL 21aad4c16c8d84e0f7d9632dda5ecc99ea71e435f7a3672a41570727c84b635406bf973157c913977f9b11ce0067f04b2bf383765523f0409a24d19bbc35075b +AUX normaliz-3.0.0-respect-flags.patch 2084 SHA256 1c06e2068efeabad15ccf8af6c5dfec53001248d4870a76f866dddf6adff888a SHA512 e9ecc81f6023d098c2f1ba45676462f8fde2469ccf7e4ae86ce8859ea034a0ee3f8c12f9ea6521356b19a949744c9b8fe319a751c31248dfebea82358ad364a1 WHIRLPOOL 82de8360fe6275f992e12166dd7b882c29c2e7df947a7913316ddb8117e0a2f2ba093b4ea0e01f2095457fb6e5fa8cae789892ca3d39619c540e3ccf6e27a310 +DIST Normaliz2.12.2.zip 6432949 SHA256 230772425b3c9964b9e144c0919c75fac0ec95260a1943c10a8a94eea9d7273e SHA512 fd42071cb87b8efbaf9af0885c173a0583e0b38dedb8821a83225eeebb44060a7b5748c44adfc4faeac20c3a1706071bcb9883cb4447e4a1ff3aeb770bd22038 WHIRLPOOL cb2974e02eac6e6d51c234214a719a24ad2e12d1400f0a6f8aee3e7a4ba3aa2ba053beec65c9032f42726e4dd4f1866820bb5b7b96f7c3d34cd132fcdbdb91af +DIST Normaliz3.1.1.zip 5839858 SHA256 192e60d3671d4516c4904b166dec96c5b32c63c0fbaae15d067e25b8d9b6119e SHA512 efa75844542df45d3cff6b6f877f2d6132905b722468b3df5a89468798bf66cbaf33f359000fb462f4d24fb3414f4c293a8ba84112a6712862dd593bb5f314ba WHIRLPOOL 5f9b503899d2d7a8c0367d516b709e45e8d034a70c06a16bbfd680c7c2b070fcc3f686c37473c73ab96c4b99b669e767817190d4882fce2085b47a7bf57de51c +DIST normaliz-3.1.3.tar.gz 3075453 SHA256 f18f037395596219ee67cf40945903f990a6091fd3eb5dc67120d582e889ae34 SHA512 c7fb1620e758dc59de88f0d7c55f50db0f67be772a00af27205e478f30c3836b7cf012a16a8adfdee3f0367d3adb4e3f887dc7d03793a7ca1601968ddb1946ce WHIRLPOOL 7cc3534b59cf4d6af5c1760038e29171b16577b7e5ef8f76da4504cb5471e147948b0711e5deea059f8c610de87d638208e2c2718cc07fb684440677d9f1bea3 +DIST normaliz-3.3.0.tar.gz 4243027 SHA256 0a22132c960c05edbc3c39391d395308f6ba3d9cb076ca075db7bbb639d85bbb SHA512 3e09be1a265746c2cedf24c6a38de2f3801a906a66a0fa73a98b05916a5e6f412d84f5e38276781b5d99ff779a2db3fc420acdadd036e9822cae41b2ed539be5 WHIRLPOOL a08f0ec39d2b1e350eabf45d2aa7c033ed597830bc0cfd9fbcd0bb09af069bbe551d2a967b0d5de5bbffde71aa7945e021fd40d3791dc24d66582d7b27d6d658 +EBUILD normaliz-2.12.2.ebuild 1763 SHA256 30f0fdc1380f745e0fffec9578b93f15f33841db0c0b016037917b3a13df021d SHA512 046df15cc3b7c969993980fd02d49f78ff700779fc83c1b56068f9aeb81c58c5435af53c4e7013097c4b6a4f4cb7b2822c42af00c74dbe70e151683b2986e3a2 WHIRLPOOL 3d7c64c3acc15289503fe6dbc74411080b91eb49ef469d3d4a708793f73b78a5d8cd929ac45ab494eb18bc3d5de9942daf59b388c0e000caccb3d9ad40bbc55d +EBUILD normaliz-3.1.1.ebuild 1726 SHA256 bc7aab4e72853a23cb1738229bf55c982a052b5fb7434efda2e58496ab4da72b SHA512 458024c4e1695771b8a44a5bfff2cb6eb4d8166075a75c21b849bd406daea2fb1a322b922aa2e1d998efb5ca4bdca525d7a83495dde8168dd497579e486e0cee WHIRLPOOL e1559ee4651bd7b217afb04693be66d48060e942b5d4b9d13b087828e8ebbb9260d1695c8e4612099d43d352a856e5bcff7c50c156e5b32ea408a632eb9bce58 +EBUILD normaliz-3.1.3.ebuild 1664 SHA256 63200f64913de52c2d482a653a426e84c95929de0fd64cc740cad6b5910fc9ea SHA512 c5ba2958be607adee166372ee230ac4d5bfabc78cc86ba5f050f8704a714add25bc73782c31a24a56d08b7bbee9def40b2ce17d4994041dbc6c9659a578b9a4f WHIRLPOOL 1c82f7779d728f9b979fec9037dd55b58833c63688968b9109efbd3b6d1f068d10a7e2c26d429486ac89f464a9a89773b22b85b99d35e07927fa72ccfffdca2d +EBUILD normaliz-3.3.0.ebuild 1175 SHA256 26bbe24989da7bc15d7a28026f6a36956f390891d3541eb8d1ed35cecfff2337 SHA512 5f05796576e60f6867563279b362b8a0d40f29e4b4a38b2e58bd77e1885cbb1b8a69ebc1842e70eeb11c482063ab5287cfd70121d54a0c1163df02daac50ff72 WHIRLPOOL fb0c76d0abeb4b5953ae037ef5de4ad332a56a60a1008418a117bbf5cd6455f32272dcbbbc46d3f3af2e4da4b863d0f97a12932cb6bebcff03d1b503c2179c14 +MISC ChangeLog 5054 SHA256 c901d2e5dd79aef25d79391d0c0ced48d39ad9a8a22e12fc6619878aa45aeadd SHA512 aa6404eb569e9f5e74536c6d8584b4c71dc099825e71818187be0c114d30f36bd91a4e08173c1c10b7df1a525d5b23074125a9fdc7a0990bddba7af02ce8eb9a WHIRLPOOL 788ef85355597b1050da547b8018505781bd51d7c9bcb0ea6d81788b348322e99f752070a663eee49d6920c8b205893b52ef2e6449babbd981bb1156af0450cf +MISC ChangeLog-2015 4085 SHA256 e17b8b53bdd005ed6afc6c25cbc864875ba0b4a8cc61b996a5603eb891b6251f SHA512 0016d34d7cfb7fdf5f800113152ca0a826a15e5c79669ef0e7652d2ea611c19fb60ea098f30e5ee8ee48143877622b54f493b745a94544b0dc64b0c193357edc WHIRLPOOL 21755fcc71629ec3837cba0e42b2545781f74f4d28feaef9ca947e01ce2c8d3b7a8b6057c4c06ac364d1f471379d045aee6a7e58793c11578c5be760751a24d5 +MISC metadata.xml 721 SHA256 cf3471c8e3376dc45e894302d00d90ee45e6797c12e98336d547de2b8ef640c7 SHA512 886c0a708e3992b508911fbb493d0a667d0c6f10e8b78ddbf455f269197c8023ba80acec9e9e7f89d39ac5f898273dc0c7de78c81e9cc75b34c63dce3a51d6bb WHIRLPOOL c08c135be3f2c6027523f7e68239f8e45f3fa28067744966e66917c0be1d2996969625a1bd6aa3fdf25b049e9942873a2c7693e4a17dcfe09c96366ce99eccb4 diff --git a/sci-mathematics/normaliz/files/normaliz-2.12.1-respect-flags.patch b/sci-mathematics/normaliz/files/normaliz-2.12.1-respect-flags.patch new file mode 100644 index 000000000000..d7d83ee79d91 --- /dev/null +++ b/sci-mathematics/normaliz/files/normaliz-2.12.1-respect-flags.patch @@ -0,0 +1,47 @@ +diff -U 3 -dHrN Normaliz2.12/source/Makefile Normaliz2.12.patched/source/Makefile +--- Normaliz2.12/source/Makefile 2014-10-23 15:01:56.000000000 +0200 ++++ Normaliz2.12.patched/source/Makefile 2014-10-25 14:56:39.426295174 +0200 +@@ -17,16 +17,16 @@ + @$(MAKE) normaliz + + normaliz.o: $(SOURCES) $(HEADERS) $(LIBHEADERS) +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) -c Normaliz.cpp -o normaliz.o ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -c Normaliz.cpp -o normaliz.o + + normaliz: $(SOURCES) $(HEADERS) normaliz.o libnormaliz/libnormaliz.a +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) normaliz.o libnormaliz/libnormaliz.a $(GMPFLAGS) -o normaliz ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) normaliz.o libnormaliz/libnormaliz.a $(GMPFLAGS) -o normaliz + + normaliz1: $(SOURCES) $(HEADERS) $(LIBHEADERS) $(LIBSOURCES) +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) Normaliz-impl.cpp $(GMPFLAGS) -o normaliz1 ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) Normaliz-impl.cpp $(GMPFLAGS) -o normaliz1 + + normaliz-pg: $(SOURCES) $(HEADERS) $(LIBHEADERS) $(LIBSOURCES) +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) -pg Normaliz-impl.cpp $(GMPFLAGS) -o normaliz-pg ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -pg Normaliz-impl.cpp $(GMPFLAGS) -o normaliz-pg + + + #always go down the directory and let the make there check what has to be done +diff -U 3 -dHrN Normaliz2.12/source/Makefile.configuration Normaliz2.12.patched/source/Makefile.configuration +--- Normaliz2.12/source/Makefile.configuration 2014-10-23 15:01:56.000000000 +0200 ++++ Normaliz2.12.patched/source/Makefile.configuration 2014-10-25 15:18:39.876313342 +0200 +@@ -1,11 +1,9 @@ + ## + ## Makefile configuration for normaliz + ## +-CXX = g++ + #CXX = linux32 g++ -m32 -march=i686 #compile it for linux32 + CXXFLAGS += -std=c++0x + CXXFLAGS += -Wall -pedantic +-CXXFLAGS += -O3 -funroll-loops + #CXXFLAGS += -I /usr/local/boost_1_45_0 + CXXFLAGS += -g ## debugging + #CXXFLAGS += -pg ## profiling +@@ -19,7 +17,6 @@ + endif + + ## for distributing the executables link static (does not work for mac) +-CXXFLAGS += -static + ## for almost static compilation on Mac use + #CXXFLAGS += -static-libgcc + ## make it compatible with older Mac versions diff --git a/sci-mathematics/normaliz/files/normaliz-2.12.2-gcc49.patch b/sci-mathematics/normaliz/files/normaliz-2.12.2-gcc49.patch new file mode 100644 index 000000000000..35a28c8cf2a3 --- /dev/null +++ b/sci-mathematics/normaliz/files/normaliz-2.12.2-gcc49.patch @@ -0,0 +1,11 @@ +diff -U 3 -dHrN Normaliz2.12/source/libnormaliz/general.h Normaliz2.12.patched/source/libnormaliz/general.h +--- Normaliz2.12/source/libnormaliz/general.h 2014-10-23 15:01:56.000000000 +0200 ++++ Normaliz2.12.patched/source/libnormaliz/general.h 2015-03-01 13:20:01.057017555 +0100 +@@ -27,6 +27,7 @@ + + #include <iostream> + #include <assert.h> ++#include <cstddef> + + #ifdef _WIN32 //for 32 and 64 bit windows + #define NMZ_MPIR //always use MPIR diff --git a/sci-mathematics/normaliz/files/normaliz-3.0.0-respect-flags.patch b/sci-mathematics/normaliz/files/normaliz-3.0.0-respect-flags.patch new file mode 100644 index 000000000000..cfd91d2feaff --- /dev/null +++ b/sci-mathematics/normaliz/files/normaliz-3.0.0-respect-flags.patch @@ -0,0 +1,47 @@ +diff -U 3 -dHrN Normaliz3.0.orig/source/Makefile Normaliz3.0/source/Makefile +--- Normaliz3.0.orig/source/Makefile 2015-09-29 14:05:44.960631514 +0200 ++++ Normaliz3.0/source/Makefile 2015-09-29 14:06:06.510346764 +0200 +@@ -19,16 +19,16 @@ + @$(MAKE) normaliz + + normaliz.o: $(SOURCES) $(HEADERS) $(LIBHEADERS) +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) -c Normaliz.cpp -o normaliz.o ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -c Normaliz.cpp -o normaliz.o + + normaliz: $(SOURCES) $(HEADERS) normaliz.o libnormaliz/libnormaliz.a +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) normaliz.o libnormaliz/libnormaliz.a $(LINKFLAGS) -o normaliz ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) normaliz.o libnormaliz/libnormaliz.a $(LINKFLAGS) -o normaliz + + normaliz1: $(SOURCES) $(HEADERS) $(LIBHEADERS) $(LIBSOURCES) +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) Normaliz-impl.cpp $(LINKFLAGS) -o normaliz1 ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) Normaliz-impl.cpp $(LINKFLAGS) -o normaliz1 + + normaliz-pg: $(SOURCES) $(HEADERS) $(LIBHEADERS) $(LIBSOURCES) +- $(CXX) $(CXXFLAGS) $(NORMFLAGS) -pg Normaliz-impl.cpp $(LINKFLAGS) -o normaliz-pg ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -pg Normaliz-impl.cpp $(LINKFLAGS) -o normaliz-pg + + + #always go down the directory and let the make there check what has to be done +diff -U 3 -dHrN Normaliz3.0.orig/source/Makefile.configuration Normaliz3.0/source/Makefile.configuration +--- Normaliz3.0.orig/source/Makefile.configuration 2015-09-29 14:05:44.960631514 +0200 ++++ Normaliz3.0/source/Makefile.configuration 2015-09-29 14:07:16.419426513 +0200 +@@ -1,11 +1,9 @@ + ## + ## Makefile configuration for normaliz + ## +-CXX = g++ + #CXX = linux32 g++ -m32 -march=i686 #compile it for linux32 + CXXFLAGS += -std=c++0x + CXXFLAGS += -Wall -pedantic +-CXXFLAGS += -O3 -funroll-loops + #CXXFLAGS += -I /usr/local/boost_1_45_0 + #CXXFLAGS += -g ## debugging + #CXXFLAGS += -pg ## profiling +@@ -21,7 +19,6 @@ + endif + + ## for distributing the executables link static (does not work for mac) +-CXXFLAGS += -static + ## for almost static compilation on Mac use + #CXXFLAGS += -static-libgcc + ## make it compatible with older Mac versions diff --git a/sci-mathematics/normaliz/metadata.xml b/sci-mathematics/normaliz/metadata.xml new file mode 100644 index 000000000000..611dafb67f53 --- /dev/null +++ b/sci-mathematics/normaliz/metadata.xml @@ -0,0 +1,19 @@ +<?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="extras"> Install <pkg>sci-mathematics/Macaulay2</pkg> and <pkg>sci-mathematics/singular</pkg>packages as shipped by upstream</flag> + </use> + <longdescription lang="en"> + Normaliz is a (command line) tool for computations in affine + monoids, vector configurations, lattice polytopes, and rational + cones. + </longdescription> + <upstream> + <remote-id type="github">Normaliz/Normaliz</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-mathematics/normaliz/normaliz-2.12.2.ebuild b/sci-mathematics/normaliz/normaliz-2.12.2.ebuild new file mode 100644 index 000000000000..6c50d7e0a962 --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-2.12.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs versionator + +MYPV=$(get_version_component_range 1-2) +MYP="Normaliz${MYPV}" + +DESCRIPTION="Tool for computations in affine monoids and more" +HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/" +SRC_URI="http://www.mathematik.uni-osnabrueck.de/${PN}/Normaliz${PV}/Normaliz${PV}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc extras openmp" + +RDEPEND="dev-libs/gmp[cxx]" +DEPEND="${RDEPEND} + app-arch/unzip + dev-libs/boost" +# Only a boost header is needed -> not RDEPEND + +S=${WORKDIR}/${MYP} + +src_prepare () { + epatch "${FILESDIR}/${PN}-2.12.1-respect-flags.patch" + epatch "${FILESDIR}/${PN}-2.12.2-gcc49.patch" + + # Respect users AR tool (Bug 474532) + sed -e "s:ar -cr:$(tc-getAR) -cr:" -i source/libnormaliz/Makefile || die + + if use openmp && tc-has-openmp; then + export OPENMP=yes + else + export OPENMP=no + fi +} + +src_compile(){ + emake CXX="$(tc-getCXX)" OPENMP="${OPENMP}" -C source +} + +src_install() { + dobin source/normaliz + if use doc ; then + dodoc doc/"Normaliz.pdf" + dodoc doc/"NmzIntegrate.pdf" + fi + if use extras; then + elog "You have selected to install extras which consist of Macaulay2" + elog "and Singular packages. These have been installed into " + elog "/usr/share/${PN}, and cannot be used without additional setup. Please refer" + elog "to the homepages of the respective projects for additional information." + elog "Note however, Gentoo's versions of Singular and Macaulay2 bring their own" + elog "copies of these interface packages. Usually you don't need normaliz's versions." + insinto "/usr/share/${PN}" + doins Singular/normaliz.lib + doins Macaulay2/Normaliz.m2 + fi +} diff --git a/sci-mathematics/normaliz/normaliz-3.1.1.ebuild b/sci-mathematics/normaliz/normaliz-3.1.1.ebuild new file mode 100644 index 000000000000..0fcd25b60993 --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-3.1.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs versionator + +MYPV=$(get_version_component_range 1-2) +MYP="Normaliz${MYPV}" + +DESCRIPTION="Tool for computations in affine monoids and more" +HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/" +SRC_URI="https://www.normaliz.uni-osnabrueck.de/wp-content/uploads/2016/04/Normaliz${PV}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="doc extras openmp" + +RDEPEND="dev-libs/gmp[cxx]" +DEPEND="${RDEPEND} + app-arch/unzip + dev-libs/boost" +# Only a boost header is needed -> not RDEPEND + +S=${WORKDIR}/${MYP} + +src_prepare () { + epatch "${FILESDIR}/${PN}-3.0.0-respect-flags.patch" + + # Respect users AR tool (Bug 474532) + sed -e "s:ar -cr:$(tc-getAR) -cr:" -i source/libnormaliz/Makefile || die + + if use openmp && tc-has-openmp; then + export OPENMP=yes + else + export OPENMP=no + fi +} + +src_compile(){ + emake CXX="$(tc-getCXX)" OPENMP="${OPENMP}" -C source +} + +src_install() { + dobin source/normaliz + if use doc ; then + dodoc doc/"Normaliz.pdf" + dodoc doc/"NmzIntegrate.pdf" + fi + if use extras; then + elog "You have selected to install extras which consist of Macaulay2" + elog "and Singular packages. These have been installed into " + elog "/usr/share/${PN}, and cannot be used without additional setup. Please refer" + elog "to the homepages of the respective projects for additional information." + elog "Note however, Gentoo's versions of Singular and Macaulay2 bring their own" + elog "copies of these interface packages. Usually you don't need normaliz's versions." + insinto "/usr/share/${PN}" + doins Singular/normaliz.lib + doins Macaulay2/Normaliz.m2 + fi +} diff --git a/sci-mathematics/normaliz/normaliz-3.1.3.ebuild b/sci-mathematics/normaliz/normaliz-3.1.3.ebuild new file mode 100644 index 000000000000..01a92c6acf0a --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-3.1.3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs versionator + +MYP="Normaliz-${PV}" + +DESCRIPTION="Tool for computations in affine monoids and more" +HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/" +SRC_URI="https://github.com/Normaliz/Normaliz/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="doc extras openmp" + +RDEPEND=" + dev-libs/gmp[cxx] +" +DEPEND="${RDEPEND} + doc? ( app-text/texlive ) + dev-libs/boost" +# Only a boost header is needed -> not RDEPEND + +S=${WORKDIR}/${MYP} + +src_prepare () { + ./bootstrap.sh || die + default +} + +src_configure () { + if use openmp && ! tc-has-openmp ; then + die "You requested openmp, but your toolchain does not support it." + fi + econf $(use_enable openmp) +} + +src_install() { + default + if use doc ; then + pushd doc + pdflatex Normaliz || die + pdflatex Normaliz || die + dodoc "Normaliz.pdf" + pdflatex NmzIntegrate || die + pdflatex NmzIntegrate || die + dodoc "NmzIntegrate.pdf" + popd + fi + if use extras; then + elog "You have selected to install extras which consist of Macaulay2" + elog "and Singular packages. These have been installed into " + elog "/usr/share/${PN}, and cannot be used without additional setup. Please refer" + elog "to the homepages of the respective projects for additional information." + elog "Note however, Gentoo's versions of Singular and Macaulay2 bring their own" + elog "copies of these interface packages. Usually you don't need normaliz's versions." + insinto "/usr/share/${PN}" + doins Singular/normaliz.lib + doins Macaulay2/Normaliz.m2 + fi +} diff --git a/sci-mathematics/normaliz/normaliz-3.3.0.ebuild b/sci-mathematics/normaliz/normaliz-3.3.0.ebuild new file mode 100644 index 000000000000..f379562bd326 --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-3.3.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools toolchain-funcs eutils + +MYP="Normaliz-${PV}" + +DESCRIPTION="Tool for computations in affine monoids and more" +HOMEPAGE="http://www.mathematik.uni-osnabrueck.de/normaliz/" +SRC_URI="https://github.com/Normaliz/Normaliz/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0/3" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="doc extras openmp static-libs" + +# would be nice to package scip and cocoalib + +RDEPEND=" + dev-libs/gmp:=[cxx] +" +DEPEND="${RDEPEND} + dev-libs/boost +" +# Only a boost header is needed -> not RDEPEND + +S="${WORKDIR}/${MYP}" + +pkg_setup() { + use openmp && tc-check-openmp +} + +src_prepare() { + default + eautoreconf +} + +src_configure () { + econf \ + $(use_enable openmp) \ + $(use_enable static-libs static) +} + +src_test() { + emake check +} + +src_install() { + default + use static-libs || prune_libtool_files --all + use doc && dodoc doc/Normaliz.pdf + if use extras; then + newdoc Singular/normaliz.pdf singular-normaliz.pdf + insinto /usr/share/${PN} + doins Singular/normaliz.lib + doins Macaulay2/Normaliz.m2 + fi +} |