[arch-commits] Commit in frobby (9 files)
Antonio Rojas
arojas at archlinux.org
Sat Jun 4 11:34:54 UTC 2016
Date: Saturday, June 4, 2016 @ 13:34:53
Author: arojas
Revision: 177856
archrelease: copy trunk to community-i686, community-x86_64
Added:
frobby/repos/
frobby/repos/community-i686/
frobby/repos/community-i686/PKGBUILD
(from rev 177855, frobby/trunk/PKGBUILD)
frobby/repos/community-i686/frobby-gcc4.7.patch
(from rev 177855, frobby/trunk/frobby-gcc4.7.patch)
frobby/repos/community-i686/frobby-gmp.patch
(from rev 177855, frobby/trunk/frobby-gmp.patch)
frobby/repos/community-x86_64/
frobby/repos/community-x86_64/PKGBUILD
(from rev 177855, frobby/trunk/PKGBUILD)
frobby/repos/community-x86_64/frobby-gcc4.7.patch
(from rev 177855, frobby/trunk/frobby-gcc4.7.patch)
frobby/repos/community-x86_64/frobby-gmp.patch
(from rev 177855, frobby/trunk/frobby-gmp.patch)
--------------------------------------+
community-i686/PKGBUILD | 39 +++++++++++++++++++++++++++++++++
community-i686/frobby-gcc4.7.patch | 32 +++++++++++++++++++++++++++
community-i686/frobby-gmp.patch | 12 ++++++++++
community-x86_64/PKGBUILD | 39 +++++++++++++++++++++++++++++++++
community-x86_64/frobby-gcc4.7.patch | 32 +++++++++++++++++++++++++++
community-x86_64/frobby-gmp.patch | 12 ++++++++++
6 files changed, 166 insertions(+)
Copied: frobby/repos/community-i686/PKGBUILD (from rev 177855, frobby/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD (rev 0)
+++ repos/community-i686/PKGBUILD 2016-06-04 11:34:53 UTC (rev 177856)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=frobby
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="A software system and project for computations with monomial ideals"
+arch=(i686 x86_64)
+url="http://www.broune.com/frobby/"
+license=(GPL)
+depends=(gmp)
+makedepends=()
+source=(http://www.broune.com/frobby/frobby_v$pkgver.tar.gz frobby-gcc4.7.patch frobby-gmp.patch)
+md5sums=('2204f340dad8fb7be156f9f7c403c4a0'
+ '07591e56be81809cc235177613078dcf'
+ 'c5e95fbbb7942aa00258f7070e98723c')
+
+prepare() {
+ cd ${pkgname}_v$pkgver
+# Fix build with GCC 4.7 and recent GMP (Gentoo)
+ patch -p1 -i ../frobby-gcc4.7.patch
+ patch -p1 -i ../frobby-gmp.patch
+}
+
+build() {
+ cd ${pkgname}_v$pkgver
+
+ make
+ MODE=shared make library
+}
+
+package() {
+ cd ${pkgname}_v$pkgver
+
+ install -d "$pkgdir"/usr/{bin,lib,include}
+ install -m755 bin/frobby "$pkgdir"/usr/bin
+ install -m644 bin/libfrobby.so "$pkgdir"/usr/lib
+ install -m644 src/frobby.h "$pkgdir"/usr/include
+}
Copied: frobby/repos/community-i686/frobby-gcc4.7.patch (from rev 177855, frobby/trunk/frobby-gcc4.7.patch)
===================================================================
--- repos/community-i686/frobby-gcc4.7.patch (rev 0)
+++ repos/community-i686/frobby-gcc4.7.patch 2016-06-04 11:34:53 UTC (rev 177856)
@@ -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);
Copied: frobby/repos/community-i686/frobby-gmp.patch (from rev 177855, frobby/trunk/frobby-gmp.patch)
===================================================================
--- repos/community-i686/frobby-gmp.patch (rev 0)
+++ repos/community-i686/frobby-gmp.patch 2016-06-04 11:34:53 UTC (rev 177856)
@@ -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();
+ }
+ }
Copied: frobby/repos/community-x86_64/PKGBUILD (from rev 177855, frobby/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2016-06-04 11:34:53 UTC (rev 177856)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=frobby
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="A software system and project for computations with monomial ideals"
+arch=(i686 x86_64)
+url="http://www.broune.com/frobby/"
+license=(GPL)
+depends=(gmp)
+makedepends=()
+source=(http://www.broune.com/frobby/frobby_v$pkgver.tar.gz frobby-gcc4.7.patch frobby-gmp.patch)
+md5sums=('2204f340dad8fb7be156f9f7c403c4a0'
+ '07591e56be81809cc235177613078dcf'
+ 'c5e95fbbb7942aa00258f7070e98723c')
+
+prepare() {
+ cd ${pkgname}_v$pkgver
+# Fix build with GCC 4.7 and recent GMP (Gentoo)
+ patch -p1 -i ../frobby-gcc4.7.patch
+ patch -p1 -i ../frobby-gmp.patch
+}
+
+build() {
+ cd ${pkgname}_v$pkgver
+
+ make
+ MODE=shared make library
+}
+
+package() {
+ cd ${pkgname}_v$pkgver
+
+ install -d "$pkgdir"/usr/{bin,lib,include}
+ install -m755 bin/frobby "$pkgdir"/usr/bin
+ install -m644 bin/libfrobby.so "$pkgdir"/usr/lib
+ install -m644 src/frobby.h "$pkgdir"/usr/include
+}
Copied: frobby/repos/community-x86_64/frobby-gcc4.7.patch (from rev 177855, frobby/trunk/frobby-gcc4.7.patch)
===================================================================
--- repos/community-x86_64/frobby-gcc4.7.patch (rev 0)
+++ repos/community-x86_64/frobby-gcc4.7.patch 2016-06-04 11:34:53 UTC (rev 177856)
@@ -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);
Copied: frobby/repos/community-x86_64/frobby-gmp.patch (from rev 177855, frobby/trunk/frobby-gmp.patch)
===================================================================
--- repos/community-x86_64/frobby-gmp.patch (rev 0)
+++ repos/community-x86_64/frobby-gmp.patch 2016-06-04 11:34:53 UTC (rev 177856)
@@ -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();
+ }
+ }
More information about the arch-commits
mailing list