summaryrefslogtreecommitdiff
path: root/sci-mathematics/frobby
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/frobby
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/frobby')
-rw-r--r--sci-mathematics/frobby/Manifest9
-rw-r--r--sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch47
-rw-r--r--sci-mathematics/frobby/files/frobby-gcc-4.7.patch32
-rw-r--r--sci-mathematics/frobby/files/frobby-gmp-5.1.patch12
-rw-r--r--sci-mathematics/frobby/frobby-0.9.0-r1.ebuild54
-rw-r--r--sci-mathematics/frobby/frobby-0.9.0-r2.ebuild63
-rw-r--r--sci-mathematics/frobby/metadata.xml11
7 files changed, 228 insertions, 0 deletions
diff --git a/sci-mathematics/frobby/Manifest b/sci-mathematics/frobby/Manifest
new file mode 100644
index 000000000000..2f6dd0340d6e
--- /dev/null
+++ b/sci-mathematics/frobby/Manifest
@@ -0,0 +1,9 @@
+AUX frobby-cflags-no-strip-soname.patch 1273 SHA256 61ebd2ba9b558ee6c9bd42ed160a2bbb633f59c9bc9f400cd4b37ead1a96982a SHA512 24387271eedb2955c96bd81235e5b425da1df475534522c3d474241328fd40937db4f4efa05c26cc1975d86c5165cbc3ded47f385b6359b46b018cf0d6052f1d WHIRLPOOL 40f392a36341d55f78db6d67cf6d702bb5111e16c1b02447ffbde11566e56fe45f69d8c00a68b17d0830eb8239374ded9d37bfeb888e142fe6859dfc3a4f9a81
+AUX frobby-gcc-4.7.patch 974 SHA256 a1d1092135ee699e2f7b84d45c5130fb8bc4ca996ad92747b9a21d06b35e5f3c SHA512 2e1895b16064cd7121145202f865b0b9ca1cdb3e5088d82f9f80c8a2fdc8ef4a76f734e326d8685465b06218eea1a502d48ee0e6dd51fe92965bc3f8830fc13f WHIRLPOOL 36b02e227f23613a61b3338c9ab9b705a13a45977226cc67725708ae907a552f54907173d537ba029fc0fe49f8021ca4af0b88da902b1cee9f84723bbc468ac9
+AUX frobby-gmp-5.1.patch 482 SHA256 d3d95c47a46c5ac82f5a12e55cc568fa5a2a946cfabd31376ac3a001f3911695 SHA512 a0e113c8a7c25c442a13425baf3fd3259ef48dfa67db25dcc1c87c9a2b1d2453d7daf9778a7c46ce9298db4f59177b63b7811eb4085f206c5a73e538488d174b WHIRLPOOL 5c2b39823ca4a5860c3b126a69137522ee6a38fada93232b74f1789846913bdefdd5101da8b2d9c19393e677e51473bbadce80561f939cd8d19fb125dbb8d4cb
+DIST frobby_v0.9.0.tar.gz 852524 SHA256 af092383e6dc849c86f4e79747ae0e5cd309a690747230e10aa38d60640062df SHA512 b1f64d7a8630ba7f5464e36f66a06a7a7909bc42f2e52898b2967b8ad6288da8ce11a5d79ebfbbfe2f3933930ad26444173f721465ae9a42b6dcf3eef7ecc59e WHIRLPOOL f02c6c794c214c047ae6e1d764b0a29a87be1c080e8ac7489aedb1394a90169f8dc5bb6447c961760a35ba2af90c34ed9bb8e282590d0d05abe791aff7473025
+EBUILD frobby-0.9.0-r1.ebuild 1290 SHA256 778fa24b73ec2a555dd4e0e124389a745c7622b6c3dec2ed4362310d06a1d645 SHA512 71f6c868db325088d46bfbd62500b4f617c9f5db0da5ecf3f3222cc0df12b75a95279c81c99ababaa7ced7cc1858f9e91f14f00dcaec66425da1d77829fd10b5 WHIRLPOOL a162f0a6f052d1008eeb166c6bcf81ab3ba7ccce8783de6405603c851b672966fd0fbfca0e5f95a029e5b284f459b6c7c2e88b88f0e9180fd7cc5e3b62a66280
+EBUILD frobby-0.9.0-r2.ebuild 1302 SHA256 4d688deb4db73779a3f7004c6ce6dfdf64b03b587af0e1565ca30f72219aebeb SHA512 7d4f918f97b25108b3522bce98537b4c7e6ea66beed05e80c8593689c8aaf7f77c5677ac4f60142cdcc0e220f21adf2da4f569fe0ca2b636209cea8ffd19e4cb WHIRLPOOL 9b29303d73ac0733b2f980b0d976ce6a310bfb2bcef6a74df4463c9726617e25610206143f1c6d4866ab80a3bf310d60932b4fe39c6808c2f20f64a1676d1b4c
+MISC ChangeLog 2715 SHA256 f0fa83c5b3d3da5b4e403e5893e6c7aa80ba882c7b41363c136efbd79caf3db7 SHA512 759c61c3d5f6a6af0df4c047d860c5f96bcfb6614668b96df61752142045713bf0348dc58a5dfd39706e83e2fd5dcb3e2c89c57b7d2d142aa2d967df7f170845 WHIRLPOOL b4f38463bee92f4f4a25a5e9382be8a62832066bb6dc4823ee6f78bcc6e3c2693650c68629966bb8ba96f888274ead65364730762d0cad50187ab7ea6e2a55a9
+MISC ChangeLog-2015 2679 SHA256 256d7615e8cb35dfc3a14ab35aa2976776c03f2a8b43728d10cac25544b0d55f SHA512 736ae453f96c80411725b3c86460acf023e41af6f38727d701baadfcdba00790062aeb2ca64612090ae9940828854065bbebc90019392abd78d6eddf150664ab WHIRLPOOL 3b83740ce7c52d140be187ad02106b19c6cbde47a5e297388d62191e189804298014f500f34b2f3f24446143dac9edd854d77d93b2b62a93c4da5cef1b78efa9
+MISC metadata.xml 397 SHA256 571bb5f2085edf3c7bdbdac253da5dc7e0700cf471150463b99fc8b3d8033d0a SHA512 4be3c99cd1664fee30e46f1580d6c723e6aee3a16382a16d3fc71219e9cd934d89d86c0d3dfbb70535e1c60b1640072776a34963d0cea40484e510d0c3ae5d7e WHIRLPOOL b593e786451ccd26b131cc90346edacbf5010e194d8a0c9220825e7cf78913cd5255adbe3037da2f3e5ae2a006cca8b29315a8af15e1c4a042bab4326039afc8
diff --git a/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch b/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch
new file mode 100644
index 000000000000..2f5721d62a71
--- /dev/null
+++ b/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch
@@ -0,0 +1,47 @@
+diff -U 3 -dHrN frobby_v0.9.0.orig/Makefile frobby_v0.9.0/Makefile
+--- frobby_v0.9.0.orig/Makefile 2013-01-15 22:40:13.127937655 +0100
++++ frobby_v0.9.0/Makefile 2013-02-16 10:54:42.265322522 +0100
+@@ -70,7 +70,7 @@
+ BIN_INSTALL_DIR = "/usr/local/bin/"
+ endif
+
+-cflags = $(CFLAGS) $(CPPFLAGS) -Wall -ansi -pedantic -I $(GMP_INC_DIR) \
++cflags = $(CPPFLAGS) -Wall -ansi -pedantic -I $(GMP_INC_DIR) \
+ -Wno-uninitialized -Wno-unused-parameter
+ program = frobby
+ library = libfrobby.a
+@@ -87,7 +87,6 @@
+ MATCH=false
+ ifeq ($(MODE), release)
+ outdir = bin/release/
+- cflags += -O2
+ MATCH=true
+ endif
+ ifeq ($(MODE), debug)
+@@ -99,7 +98,7 @@
+ endif
+ ifeq ($(MODE), shared)
+ outdir = bin/shared/
+- cflags += -O2 -fPIC
++ cflags += -fPIC
+ library = libfrobby.so
+ MATCH=true
+ endif
+@@ -204,16 +203,13 @@
+ mv -f $@.exe $@; \
+ fi
+ endif
+-ifeq ($(MODE), release)
+- strip $@
+-endif
+
+ # Link object files into library
+ library: bin/$(library)
+ bin/$(library): $(objs) | bin/
+ rm -f bin/$(library)
+ ifeq ($(MODE), shared)
+- $(CXX) -shared -o bin/$(library) $(ldflags) \
++ $(CXX) -shared -Wl,-soname,libfrobby.so.0 -o bin/$(library) $(ldflags) \
+ $(patsubst $(outdir)main.o,,$(objs))
+ else
+ ar crs bin/$(library) $(patsubst $(outdir)main.o,,$(objs))
diff --git a/sci-mathematics/frobby/files/frobby-gcc-4.7.patch b/sci-mathematics/frobby/files/frobby-gcc-4.7.patch
new file mode 100644
index 000000000000..4a73161166d9
--- /dev/null
+++ b/sci-mathematics/frobby/files/frobby-gcc-4.7.patch
@@ -0,0 +1,32 @@
+ src/main.cpp | 3 +++
+ src/randomDataGenerators.cpp | 3 +++
+ 2 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/src/main.cpp b/src/main.cpp
+index a16754e..315ea53 100755
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -25,6 +25,9 @@
+ #include <ctime>
+ #include <cstdlib>
+
++#include <sys/types.h>
++#include <unistd.h>
++
+ /** This function runs the Frobby console interface. the ::main
+ function calls this function after having set up DEBUG-specific
+ things, catching exceptions, setting the random seed and so on.
+diff --git a/src/randomDataGenerators.cpp b/src/randomDataGenerators.cpp
+index 432a90a..1de3559 100755
+--- a/src/randomDataGenerators.cpp
++++ b/src/randomDataGenerators.cpp
+@@ -26,6 +26,9 @@
+ #include <limits>
+ #include <ctime>
+
++#include <sys/types.h>
++#include <unistd.h>
++
+ void generateLinkedListIdeal(BigIdeal& ideal, size_t variableCount) {
+ VarNames names(variableCount);
+ ideal.clearAndSetNames(variableCount);
diff --git a/sci-mathematics/frobby/files/frobby-gmp-5.1.patch b/sci-mathematics/frobby/files/frobby-gmp-5.1.patch
new file mode 100644
index 000000000000..23cf295b8965
--- /dev/null
+++ b/sci-mathematics/frobby/files/frobby-gmp-5.1.patch
@@ -0,0 +1,12 @@
+diff -U 3 -dHrN frobby_v0.9.0.orig/src/StatisticsStrategy.cpp frobby_v0.9.0/src/StatisticsStrategy.cpp
+--- frobby_v0.9.0.orig/src/StatisticsStrategy.cpp 2013-01-15 22:40:13.186967442 +0100
++++ frobby_v0.9.0/src/StatisticsStrategy.cpp 2013-01-15 22:40:33.267100780 +0100
+@@ -140,7 +140,7 @@
+ if (_nodeCount == 0)
+ return 0.0;
+ else {
+- mpz_class q = mpq_class(_subGenSum) / _nodeCount;
++ mpq_class q = mpq_class(_subGenSum) / _nodeCount;
+ return q.get_d();
+ }
+ }
diff --git a/sci-mathematics/frobby/frobby-0.9.0-r1.ebuild b/sci-mathematics/frobby/frobby-0.9.0-r1.ebuild
new file mode 100644
index 000000000000..42427b592bb2
--- /dev/null
+++ b/sci-mathematics/frobby/frobby-0.9.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Software system and project for computations with monomial ideals"
+HOMEPAGE="http://www.broune.com/frobby/"
+SRC_URI="http://www.broune.com/frobby/frobby_v${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="doc static-libs"
+
+RDEPEND="dev-libs/gmp[cxx]"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/frobby_v${PV}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${PN}-cflags-no-strip-soname.patch" \
+ "${FILESDIR}/${PN}-gcc-4.7.patch" \
+ "${FILESDIR}/${PN}-gmp-5.1.patch"
+ # CXXFLAGS are called CPPFLAGS
+ sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
+}
+
+src_compile() {
+ # Makefile uses the value of CXX which may be defined in /etc/env,
+ # breaking cross-compile.
+ CXX=$(tc-getCXX) emake
+ MODE=shared CXX=$(tc-getCXX) emake library
+ use static-libs && CXX=$(tc-getCXX) emake library
+ use doc && emake docPdf
+}
+
+src_install() {
+ dobin bin/frobby
+ dolib.so bin/libfrobby.so
+ dosym libfrobby.so "${PREFIX}/usr/$(get_libdir)/libfrobby.so.0"
+ use static-libs && dolib.a bin/libfrobby.a
+
+ insinto /usr/include
+ doins src/frobby.h
+
+ insinto /usr/include/"${PN}"
+ doins src/stdinc.h
+
+ use doc && dodoc bin/manual.pdf
+}
diff --git a/sci-mathematics/frobby/frobby-0.9.0-r2.ebuild b/sci-mathematics/frobby/frobby-0.9.0-r2.ebuild
new file mode 100644
index 000000000000..3632bf9afd6d
--- /dev/null
+++ b/sci-mathematics/frobby/frobby-0.9.0-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Software system and project for computations with monomial ideals"
+HOMEPAGE="http://www.broune.com/frobby/"
+SRC_URI="http://www.broune.com/frobby/frobby_v${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="doc static-libs"
+
+RDEPEND="dev-libs/gmp:0=[cxx]"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/frobby_v${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-cflags-no-strip-soname.patch"
+ "${FILESDIR}/${PN}-gcc-4.7.patch"
+ "${FILESDIR}/${PN}-gmp-5.1.patch"
+)
+
+src_prepare() {
+ default
+
+ # CXXFLAGS are called CPPFLAGS
+ sed "s/CPPFLAGS/CXXFLAGS/" -i Makefile || die
+}
+
+src_configure() {
+ default
+ # Makefile uses the value of CXX which may be defined in /etc/env,
+ # breaking cross-compile.
+ tc-export CXX
+}
+
+src_compile() {
+ emake
+ MODE=shared emake library
+ use static-libs && emake library
+ use doc && emake docPdf
+}
+
+src_install() {
+ dobin bin/frobby
+ dolib.so bin/libfrobby.so
+ dosym libfrobby.so "${PREFIX}/usr/$(get_libdir)/libfrobby.so.0"
+ use static-libs && dolib.a bin/libfrobby.a
+
+ insinto /usr/include
+ doins src/frobby.h
+
+ insinto /usr/include/"${PN}"
+ doins src/stdinc.h
+
+ use doc && dodoc bin/manual.pdf
+}
diff --git a/sci-mathematics/frobby/metadata.xml b/sci-mathematics/frobby/metadata.xml
new file mode 100644
index 000000000000..eb1b71267423
--- /dev/null
+++ b/sci-mathematics/frobby/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <longdescription lang="en">
+Frobby is a software system and library for computations with monomial ideals.
+</longdescription>
+</pkgmetadata>