Date: Tuesday, November 19, 2019 @ 16:15:46 Author: arojas Revision: 530428
Add polymake dependencies Added: permlib/ permlib/trunk/ permlib/trunk/PKGBUILD permlib/trunk/permlib-boost.patch sympol/ sympol/trunk/ sympol/trunk/PKGBUILD -----------------------------------+ permlib/trunk/PKGBUILD | 25 +++++++++ permlib/trunk/permlib-boost.patch | 100 ++++++++++++++++++++++++++++++++++++ sympol/trunk/PKGBUILD | 29 ++++++++++ 3 files changed, 154 insertions(+) Added: permlib/trunk/PKGBUILD =================================================================== --- permlib/trunk/PKGBUILD (rev 0) +++ permlib/trunk/PKGBUILD 2019-11-19 16:15:46 UTC (rev 530428) @@ -0,0 +1,25 @@ +# Maintainer: Antonio Rojas <[email protected]> + +pkgname=permlib +pkgver=0.2.9 +pkgrel=1 +pkgdesc="A C++ library implementing permutation group algorithms" +arch=(any) +url="http://www.math.uni-rostock.de/~rehn/software/permlib.html" +license=(GPL2) +source=($pkgname-$pkgver::"https://github.com/tremlin/PermLib/archive/v$pkgver.tar.gz" + permlib-boost.patch) +depends=(boost) +sha256sums=('40b9c03df57d73412d75ee4098937706d95e252b4f40d091cc13633a0c56d20e' + '03005c01596a1a6c2ec64431b109550e7891a11e0273d0142b20816063c006f1') + +prepare() { + cd PermLib-$pkgver + patch -p0 -i ../permlib-boost.patch # Fix build with recent boost +} + +package() { + cd PermLib-$pkgver + mkdir -p "$pkgdir"/usr/include + cp -r include/permlib "$pkgdir"/usr/include +} Added: permlib/trunk/permlib-boost.patch =================================================================== --- permlib/trunk/permlib-boost.patch (rev 0) +++ permlib/trunk/permlib-boost.patch 2019-11-19 16:15:46 UTC (rev 530428) @@ -0,0 +1,100 @@ +--- include/permlib/bsgs.h.orig 2016-07-16 11:37:15.000000000 -0600 ++++ include/permlib/bsgs.h 2019-02-05 21:29:58.286974413 -0700 +@@ -39,6 +39,7 @@ + + #include <boost/cstdint.hpp> + #include <boost/foreach.hpp> ++#include <boost/next_prior.hpp> + #include <boost/scoped_ptr.hpp> + #include <boost/shared_ptr.hpp> + #include <boost/utility.hpp> +--- include/permlib/change/base_transpose.h.orig 2016-07-16 11:37:15.000000000 -0600 ++++ include/permlib/change/base_transpose.h 2019-02-05 21:30:25.224906205 -0700 +@@ -38,6 +38,7 @@ + + #include <boost/scoped_ptr.hpp> + #include <boost/iterator/indirect_iterator.hpp> ++#include <boost/next_prior.hpp> + + namespace permlib { + +--- include/permlib/generator/schreier_generator.h.orig 2016-07-16 11:37:15.000000000 -0600 ++++ include/permlib/generator/schreier_generator.h 2019-02-05 21:30:56.688826540 -0700 +@@ -39,6 +39,7 @@ + #include <stack> + #include <boost/scoped_ptr.hpp> + #include <boost/tuple/tuple.hpp> ++#include <boost/next_prior.hpp> + + namespace permlib { + +--- include/permlib/permutation.h.orig 2016-07-16 11:37:15.000000000 -0600 ++++ include/permlib/permutation.h 2019-02-05 20:50:47.911610632 -0700 +@@ -48,7 +48,7 @@ + #include <boost/dynamic_bitset.hpp> + #include <boost/foreach.hpp> + #include <boost/cstdint.hpp> +-#include <boost/math/common_factor_rt.hpp> ++#include <boost/integer/common_factor_rt.hpp> + + namespace permlib { + +@@ -343,7 +343,7 @@ inline boost::uint64_t Permutation::orde + std::list<CyclePair> cycleList = this->cycles(); + boost::uint64_t ord = 1; + BOOST_FOREACH(const CyclePair& cyc, cycleList) { +- ord = boost::math::lcm(ord, static_cast<boost::uint64_t>(cyc.second)); ++ ord = boost::integer::lcm(ord, static_cast<boost::uint64_t>(cyc.second)); + } + return ord; + } +--- include/permlib/test/giant_test.h.orig 2016-07-16 11:37:15.000000000 -0600 ++++ include/permlib/test/giant_test.h 2019-02-06 17:23:08.813753897 -0700 +@@ -40,7 +40,7 @@ + #include <permlib/prime_helper.h> + + #include <boost/foreach.hpp> +-#include <boost/math/common_factor_rt.hpp> ++#include <boost/integer/common_factor_rt.hpp> + #include <cmath> + #include <algorithm> + +@@ -195,7 +195,7 @@ GiantTestBase::GiantGroupType GiantTest< + for (unsigned int k = 0; k < cycleLength.size(); ++k) { + if (j == k) + continue; +- if (boost::math::gcd(cycleLength[j], cycleLength[k]) != 1) { ++ if (boost::integer::gcd(cycleLength[j], cycleLength[k]) != 1) { + isCoprime = false; + break; + } +--- include/permlib/test/primitivity_sgs_test.h.orig 2016-07-16 11:37:15.000000000 -0600 ++++ include/permlib/test/primitivity_sgs_test.h 2019-02-05 21:31:30.304741422 -0700 +@@ -39,6 +39,7 @@ + #include <boost/foreach.hpp> + #include <boost/scoped_ptr.hpp> + #include <boost/utility.hpp> ++#include <boost/next_prior.hpp> + #include <vector> + #include <list> + +--- include/permlib/test/type_recognition.h.orig 2016-07-16 11:37:15.000000000 -0600 ++++ include/permlib/test/type_recognition.h 2019-02-06 17:23:22.245713407 -0700 +@@ -44,7 +44,7 @@ + #include <permlib/permlib_api.h> + + #include <boost/shared_ptr.hpp> +-#include <boost/math/common_factor_rt.hpp> ++#include <boost/integer/common_factor_rt.hpp> + #include <iostream> + + +@@ -344,7 +344,7 @@ GroupType* TypeRecognition<PERM,TRANSVER + + size_t orbitGCD = orbits.front()->size(); + BOOST_FOREACH(const OrbitPtr& orbit, orbits) { +- orbitGCD = boost::math::gcd(orbitGCD, orbit->size()); ++ orbitGCD = boost::integer::gcd(orbitGCD, orbit->size()); + } + + GroupType* lastType = 0; Added: sympol/trunk/PKGBUILD =================================================================== --- sympol/trunk/PKGBUILD (rev 0) +++ sympol/trunk/PKGBUILD 2019-11-19 16:15:46 UTC (rev 530428) @@ -0,0 +1,29 @@ +# Maintainer: Antonio Rojas <[email protected]> + +pkgname=sympol +pkgver=0.1.9 +pkgrel=1 +pkgdesc="A C++ tool to work with symmetric polyhedra" +arch=(x86_64) +url="http://www.math.uni-rostock.de/~rehn/software/sympol.html" +license=(GPL2) +source=($pkgname-$pkgver::"https://github.com/tremlin/SymPol/archive/v$pkgver.tar.gz") +depends=(gmp boost-libs) +makedepends=(cmake permlib) +sha256sums=('6753b8fb30745b66a0886e125c18b539417afcf62b804799eb220bd5a59ccc37') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake ../SymPol-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd build + make DESTDIR="$pkgdir" install +}
