diff options
author | Thomas Kahle <tomka@gentoo.org> | 2010-11-03 08:24:52 +0000 |
---|---|---|
committer | Thomas Kahle <tomka@gentoo.org> | 2010-11-03 08:24:52 +0000 |
commit | cf1ac511e8e9b7e58d985922351c71a84447d69c (patch) | |
tree | 59aa2ccc1761decf4aba5164d83f2de77afe89b9 /sci-mathematics/normaliz | |
parent | Bundle patches into distfiles tarball. (diff) | |
download | historical-cf1ac511e8e9b7e58d985922351c71a84447d69c.tar.gz historical-cf1ac511e8e9b7e58d985922351c71a84447d69c.tar.bz2 historical-cf1ac511e8e9b7e58d985922351c71a84447d69c.zip |
initial import, fixes bug 283676
Package-Manager: portage-2.1.9.24/cvs/Linux i686
Diffstat (limited to 'sci-mathematics/normaliz')
-rw-r--r-- | sci-mathematics/normaliz/ChangeLog | 10 | ||||
-rw-r--r-- | sci-mathematics/normaliz/Manifest | 15 | ||||
-rw-r--r-- | sci-mathematics/normaliz/files/normaliz-2.5-makefile.patch | 40 | ||||
-rw-r--r-- | sci-mathematics/normaliz/metadata.xml | 16 | ||||
-rw-r--r-- | sci-mathematics/normaliz/normaliz-2.5-r1.ebuild | 54 |
5 files changed, 135 insertions, 0 deletions
diff --git a/sci-mathematics/normaliz/ChangeLog b/sci-mathematics/normaliz/ChangeLog new file mode 100644 index 000000000000..154a1004a685 --- /dev/null +++ b/sci-mathematics/normaliz/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-mathematics/normaliz +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/normaliz/ChangeLog,v 1.1 2010/11/03 08:24:52 tomka Exp $ + +*normaliz-2.5-r1 (03 Nov 2010) + + 03 Nov 2010; Thomas Kahle <tomka@gentoo.org> +normaliz-2.5-r1.ebuild, + +files/normaliz-2.5-makefile.patch, +metadata.xml: + Initial import of normaliz from science overlay + diff --git a/sci-mathematics/normaliz/Manifest b/sci-mathematics/normaliz/Manifest new file mode 100644 index 000000000000..14131addd76c --- /dev/null +++ b/sci-mathematics/normaliz/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX normaliz-2.5-makefile.patch 1381 RMD160 9b8a180f275ccf024268a16a04338834347661e4 SHA1 2752e11d139cd3cae98431489dbd38933948d51f SHA256 2c216675652ad8c7f41112bd8f97bfdb9c4493088081909ae6042ff4449c1818 +DIST Normaliz2.5.zip 4678783 RMD160 28f2c1aa0d88e83ef1e1f26f4a946e64e4871436 SHA1 a0095aa8f591fe485224deb73cce034e247472ab SHA256 31decc5172450ac918b97ff5cefb3b9b9b94e70d69cc4271962ba90f04ecde43 +EBUILD normaliz-2.5-r1.ebuild 1558 RMD160 57ae737e85d4d9e1d4ccb7d6199c08d87f8b3818 SHA1 391ee88234eb0413d8962645e49c4dc6320a0d48 SHA256 20f396042b3456cd0525d2210fc1a45a0e535bb6ca252dd7cdb61d0d94293ad7 +MISC ChangeLog 428 RMD160 ccb615cb3867d3f881c6ff32c1a49fe711a55390 SHA1 48dc26406b3de100137a03e52b8aa68d5a033240 SHA256 6f5ead47821d535f6206c17fd3ecf668e1b4f491768fd0e28781098b33a999ca +MISC metadata.xml 530 RMD160 02c207bbcbf1a4d0c6b4f262fc992a08a1d1204b SHA1 23466ce04f67801a8f34f0a4e60d0aa8be6cbb9c SHA256 e5d67b7ce56ed92d6875c1ae9a5e0c16fa9c21ddc09cbcb10a580a8e8de08db8 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAkzRHGYACgkQnZsgo/h8kNZoNgCfeXvXdNNlKt0ywNq3D/0b+9D3 +T6IAoLFwAdexKrVrTzpWhkFmUqbUcF0A +=JYx3 +-----END PGP SIGNATURE----- diff --git a/sci-mathematics/normaliz/files/normaliz-2.5-makefile.patch b/sci-mathematics/normaliz/files/normaliz-2.5-makefile.patch new file mode 100644 index 000000000000..98f426006e11 --- /dev/null +++ b/sci-mathematics/normaliz/files/normaliz-2.5-makefile.patch @@ -0,0 +1,40 @@ +diff -U 3 -dHrN Normaliz2.5.orig/source/Makefile Normaliz2.5/source/Makefile +--- Normaliz2.5.orig/source/Makefile 2010-08-04 15:04:02.000000000 +0200 ++++ Normaliz2.5/source/Makefile 2010-10-20 22:47:23.000000000 +0200 +@@ -1,9 +1,7 @@ + ## + ## Makefile for normaliz + ## +-CXX = g++ + CXXFLAGS += -Wall -Wno-sign-compare +-CXXFLAGS += -O3 -funroll-loops -pipe + + ## use OpenMP? + ifeq ($(OPENMP),no) +@@ -12,8 +10,8 @@ + CXXFLAGS += -fopenmp + endif + +-N64FLAGS = -Dnorm64 -static +-NBIGFLAGS = -Dnormbig -static ++N64FLAGS = -Dnorm64 ++NBIGFLAGS = -Dnormbig + GMPFLAGS = -lgmpxx -lgmp + + SOURCES = full_cone.cpp integer.cpp cone_dual_mode.cpp lineare_transformation.cpp list_operations.cpp matrix.cpp mode.cpp Normaliz.cpp output.cpp simplex.cpp sublattice_representation.cpp vector_operations.cpp +@@ -29,13 +27,13 @@ + @mkdir -p obj64 + $(CXX) $(CXXFLAGS) $(N64FLAGS) -c $< -o $@ + norm64: Normaliz.cpp $(N64OBJ) +- $(CXX) $(CXXFLAGS) $(N64FLAGS) Normaliz.cpp $(N64OBJ) -o norm64 ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(N64FLAGS) Normaliz.cpp $(N64OBJ) -o norm64 + + objBig/%.o: %.cpp $(HEADERS) + @mkdir -p objBig + $(CXX) $(CXXFLAGS) $(NBIGFLAGS) -c $< -o $@ + normbig: Normaliz.cpp $(NBIGOBJ) +- $(CXX) $(CXXFLAGS) $(NBIGFLAGS) Normaliz.cpp $(NBIGOBJ) $(GMPFLAGS) -o normbig ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(NBIGFLAGS) Normaliz.cpp $(NBIGOBJ) $(GMPFLAGS) -o normbig + + clean: + -rm -rf obj64 objBig diff --git a/sci-mathematics/normaliz/metadata.xml b/sci-mathematics/normaliz/metadata.xml new file mode 100644 index 000000000000..7ac6d08baa52 --- /dev/null +++ b/sci-mathematics/normaliz/metadata.xml @@ -0,0 +1,16 @@ +<?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</herd> +<use> + <flag name="extras"> Install Macaulay2 and Singular 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> +</pkgmetadata> diff --git a/sci-mathematics/normaliz/normaliz-2.5-r1.ebuild b/sci-mathematics/normaliz/normaliz-2.5-r1.ebuild new file mode 100644 index 000000000000..aa13183eb02e --- /dev/null +++ b/sci-mathematics/normaliz/normaliz-2.5-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/normaliz/normaliz-2.5-r1.ebuild,v 1.1 2010/11/03 08:24:52 tomka Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +MYP="Normaliz${PV}" + +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}/${MYP}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="extras openmp" + +RDEPEND="dev-libs/gmp[-nocxx]" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${MYP} + +src_prepare () { + epatch "${FILESDIR}/${P}-makefile.patch" + + 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 || die +} + +src_install() { + dobin source/{norm64,normbig} || die + dodoc doc/"${MYP}Documentation.pdf" || die + 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 +}
\ No newline at end of file |