[arch-commits] Commit in (5 files)

Antonio Rojas arojas at archlinux.org
Sat Jun 4 11:33:54 UTC 2016


    Date: Saturday, June 4, 2016 @ 13:33:53
  Author: arojas
Revision: 177854

Add frobby (cocoa dependency)

Added:
  frobby/
  frobby/trunk/
  frobby/trunk/PKGBUILD
  frobby/trunk/frobby-gcc4.7.patch
  frobby/trunk/frobby-gmp.patch

---------------------+
 PKGBUILD            |   39 +++++++++++++++++++++++++++++++++++++++
 frobby-gcc4.7.patch |   32 ++++++++++++++++++++++++++++++++
 frobby-gmp.patch    |   12 ++++++++++++
 3 files changed, 83 insertions(+)

Added: frobby/trunk/PKGBUILD
===================================================================
--- frobby/trunk/PKGBUILD	                        (rev 0)
+++ frobby/trunk/PKGBUILD	2016-06-04 11:33:53 UTC (rev 177854)
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 175609 2016-05-18 11:29:29Z arojas $
+# 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
+}

Added: frobby/trunk/frobby-gcc4.7.patch
===================================================================
--- frobby/trunk/frobby-gcc4.7.patch	                        (rev 0)
+++ frobby/trunk/frobby-gcc4.7.patch	2016-06-04 11:33:53 UTC (rev 177854)
@@ -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);

Added: frobby/trunk/frobby-gmp.patch
===================================================================
--- frobby/trunk/frobby-gmp.patch	                        (rev 0)
+++ frobby/trunk/frobby-gmp.patch	2016-06-04 11:33:53 UTC (rev 177854)
@@ -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