Skip to content

Commit

Permalink
New package: gfan-0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Nov 21, 2021
1 parent b48284a commit 407e685
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 0 deletions.
27 changes: 27 additions & 0 deletions srcpkgs/gfan/patches/maketestsreturnerror.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/src/app_test.cpp b/src/app_test.cpp
index 755bfe6..183c735 100644
--- a/src/app_test.cpp
+++ b/src/app_test.cpp
@@ -562,6 +562,9 @@ int testIntegers()
failed.push_back(i->folder);
}
cout<<"\n";
+ cout<<"Number of succesful tests "<<good<<endl;
+ cout<<"Number of failed tests "<<bad<<endl;
+
if(!failed.empty())
{
cout<<"Failed tests:\n-------------\n";
@@ -569,11 +572,9 @@ int testIntegers()
{
cout<<*i<<" FAILED!\n";
}
+ return 1;
}

- cout<<"Number of succesful tests "<<good<<endl;
- cout<<"Number of failed tests "<<bad<<endl;
-
return 0;
}
};
195 changes: 195 additions & 0 deletions srcpkgs/gfan/patches/truncate0008outputs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
diff --git a/testsuite/0008PolynomialSetUnion/command b/testsuite/0008PolynomialSetUnion/command
index cbb23d6..d61cb71 100644
--- a/testsuite/0008PolynomialSetUnion/command
+++ b/testsuite/0008PolynomialSetUnion/command
@@ -1 +1 @@
-%s _bases | %s _polynomialsetunion |sort
+%s _bases | %s _polynomialsetunion |LC_ALL=C sort|tail -n +2 | sed -e '$ d'
diff --git a/testsuite/0008PolynomialSetUnion/output b/testsuite/0008PolynomialSetUnion/output
index 38dfb6f..12a65c7 100644
--- a/testsuite/0008PolynomialSetUnion/output
+++ b/testsuite/0008PolynomialSetUnion/output
@@ -1,62 +1,60 @@
-{
+a*b-c^6,
+a*b^2-c^3,
+a*b^4-b,
+a*c-b^6,
+a*c^2-b,
+a*c^6-c,
+a-b^11,
+a-b^2*c,
+a-c^9,
a^11-c,
a^15-a,
+a^2*b-c,
a^2*b^3-a,
+a^2*c-b^3,
a^2-b^8,
-a^2*b-c,
a^2-c^4,
-a^2*c-b^3,
-a^3-b^5,
-a^3-b*c^2,
a^3*c^2-c}
-a^4-b^2,
+a^3-b*c^2,
+a^3-b^5,
a^4*c-a,
+a^4-b^2,
a^5-c^3,
a^6*b-a,
a^6-b*c,
a^8-c^2,
a^9-b,
-a-b^11,
-a-b^2*c,
-a*b^2-c^3,
-a*b^4-b,
-a*b-c^6,
-a*c^2-b,
-a*c^6-c,
-a-c^9,
-a*c-b^6,
+b*c-a^6,
+b*c^2-a^3,
+b*c^4-c,
+b-a*c^2,
+b-a^9,
+b-c^11,
b^11-a,
b^15-b,
-b^2-a^4,
+b^2*c-a,
b^2*c^3-b,
+b^2-a^4,
b^2-c^8,
-b^2*c-a,
b^3-a^2*c,
b^3-c^5,
b^4-c^2,
b^5-a^3,
-b^6-a*c,
b^6*c-b,
+b^6-a*c,
b^8-a^2,
b^9-c,
-b-a^9,
-b-a*c^2,
-b-c^11,
-b*c^2-a^3,
-b*c^4-c,
-b*c-a^6,
+c-a^11,
+c-a^2*b,
+c-b^9,
c^11-b,
c^15-c,
c^2-a^8,
c^2-b^4,
-c^3-a^5,
c^3-a*b^2,
+c^3-a^5,
c^4-a^2,
c^5-b^3,
c^6-a*b,
c^8-b^2,
c^9-a,
-c-a^11,
-c-a^2*b,
-c-b^9,
-Q[a,b,c]
diff --git a/testsuite/0008PolynomialSetUnion/outputNew b/testsuite/0008PolynomialSetUnion/outputNew
index 38dfb6f..12a65c7 100644
--- a/testsuite/0008PolynomialSetUnion/outputNew
+++ b/testsuite/0008PolynomialSetUnion/outputNew
@@ -1,62 +1,60 @@
-{
+a*b-c^6,
+a*b^2-c^3,
+a*b^4-b,
+a*c-b^6,
+a*c^2-b,
+a*c^6-c,
+a-b^11,
+a-b^2*c,
+a-c^9,
a^11-c,
a^15-a,
+a^2*b-c,
a^2*b^3-a,
+a^2*c-b^3,
a^2-b^8,
-a^2*b-c,
a^2-c^4,
-a^2*c-b^3,
-a^3-b^5,
-a^3-b*c^2,
a^3*c^2-c}
-a^4-b^2,
+a^3-b*c^2,
+a^3-b^5,
a^4*c-a,
+a^4-b^2,
a^5-c^3,
a^6*b-a,
a^6-b*c,
a^8-c^2,
a^9-b,
-a-b^11,
-a-b^2*c,
-a*b^2-c^3,
-a*b^4-b,
-a*b-c^6,
-a*c^2-b,
-a*c^6-c,
-a-c^9,
-a*c-b^6,
+b*c-a^6,
+b*c^2-a^3,
+b*c^4-c,
+b-a*c^2,
+b-a^9,
+b-c^11,
b^11-a,
b^15-b,
-b^2-a^4,
+b^2*c-a,
b^2*c^3-b,
+b^2-a^4,
b^2-c^8,
-b^2*c-a,
b^3-a^2*c,
b^3-c^5,
b^4-c^2,
b^5-a^3,
-b^6-a*c,
b^6*c-b,
+b^6-a*c,
b^8-a^2,
b^9-c,
-b-a^9,
-b-a*c^2,
-b-c^11,
-b*c^2-a^3,
-b*c^4-c,
-b*c-a^6,
+c-a^11,
+c-a^2*b,
+c-b^9,
c^11-b,
c^15-c,
c^2-a^8,
c^2-b^4,
-c^3-a^5,
c^3-a*b^2,
+c^3-a^5,
c^4-a^2,
c^5-b^3,
c^6-a*b,
c^8-b^2,
c^9-a,
-c-a^11,
-c-a^2*b,
-c-b^9,
-Q[a,b,c]
23 changes: 23 additions & 0 deletions srcpkgs/gfan/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Template file for 'gfan'
pkgname=gfan
version=0.6.2
revision=1
wrksrc=gfan$version
build_style=gnu-makefile
makedepends="gmp-devel cddlib-devel"
short_desc="Package for computing Groebner fans and tropical varieties"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="https://math.au.dk/~jensen/software/gfan/gfan.html"
distfiles="https://math.au.dk/~jensen/software/gfan/gfan${version}.tar.gz"
checksum=a674d5e5dc43634397de0d55dd5da3c32bd358d05f72b73a50e62c1a1686f10a

# - without -DGMPRATIONAL the build fails
# the Makefile sets this flag but our CFLAGS override it
# - the include prefix for cddlib has changed in recent versions so we
# disable the old prefix and use -I for the new prefix
CFLAGS="-DGMPRATIONAL -DNOCDDPREFIX -I/usr/include/cddlib"

do_install() {
make PREFIX=${DESTDIR}/usr install
}
1 change: 1 addition & 0 deletions srcpkgs/gfan/update
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore=lib*

0 comments on commit 407e685

Please sign in to comment.