<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2178213314aae2f0af3831eced8c1a7661e51b1b">https://github.com/macports/macports-ports/commit/2178213314aae2f0af3831eced8c1a7661e51b1b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2178213314aae2f0af3831eced8c1a7661e51b1b
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Mon Jun 12 19:01:14 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> permlib: new port (version 0.2.9)
</span>---
math/permlib/Portfile | 38 +++++++++
math/permlib/files/patch-boost-1.67.diff | 141 +++++++++++++++++++++++++++++++
2 files changed, 179 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/permlib/Portfile b/math/permlib/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..bd5f2ff83a3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/permlib/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,38 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup boost 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup tremlin PermLib 0.2.9 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from tarball
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name permlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories math science
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# permlib is header only library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms any
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@catap korins.ky:kirill} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description a C++ library implementing permutation group algorithms
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://www.math.uni-rostock.de/~rehn/software/permlib.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 bd5fc3a2d34758237eec6ce223125e6e97099bbf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 88186002b10eed2f66f072e1e58cfc9b96bfd2f8734c84e9257de65402592e83 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 151906
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-boost-1.67.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${worksrcpath}/include/permlib ${destroot}${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/permlib/files/patch-boost-1.67.diff b/math/permlib/files/patch-boost-1.67.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c386baf453c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/permlib/files/patch-boost-1.67.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,141 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/tremlin/PermLib/pull/8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git CMakeLists.txt CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index df7167c..98739dd 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,13 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-cmake_minimum_required (VERSION 2.6)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++cmake_minimum_required (VERSION 3.10)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ project (PermLib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(UseDoxygen OPTIONAL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(CMAKE_CXX_STANDARD 11)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(CMAKE_CXX_STANDARD_REQUIRED ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(CMAKE_CXX_EXTENSIONS OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET (Boost_FIND_REQUIRED TRUE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET (Boost_FIND_QUIETLY TRUE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET (Boost_USE_MULTITHREADED TRUE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-find_package(Boost 1.34.1 REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++find_package(Boost 1.67 REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF( NOT CMAKE_BUILD_TYPE )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET( CMAKE_BUILD_TYPE Debug CACHE STRING
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/permlib/abstract_bsgs.h include/permlib/abstract_bsgs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 51bcc3f..8a78c74 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/permlib/abstract_bsgs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/permlib/abstract_bsgs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -136,7 +136,7 @@ AbstractPermutationGroup* AbstractBSGS<TRANS>::setStabilizer(const std::vector<d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // start the search
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ boost::shared_ptr<PermutationGroup> stabilizer(new PermutationGroup(copy.n));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ backtrackSearch.search(*stabilizer);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return new AbstractBSGS<TRANS>(stabilizer, m_support);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return new AbstractBSGS<TRANS>(stabilizer, bool(m_support));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ template <class TRANS>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/permlib/bsgs.h include/permlib/bsgs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 5a78234..81f7232 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/permlib/bsgs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/permlib/bsgs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,7 +41,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/foreach.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/scoped_ptr.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/shared_ptr.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <boost/utility.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <boost/next_prior.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <permlib/bsgs_core.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/permlib/permutation.h include/permlib/permutation.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index b11cca7..8bc8baa 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/permlib/permutation.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/permlib/permutation.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -48,7 +48,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/dynamic_bitset.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/foreach.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/cstdint.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <boost/math/common_factor_rt.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <boost/integer/common_factor_rt.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ namespace permlib {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -343,7 +343,7 @@ inline boost::uint64_t Permutation::order() const {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ std::list<CyclePair> cycleList = this->cycles();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ boost::uint64_t ord = 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOST_FOREACH(const CyclePair& cyc, cycleList) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ord = boost::math::lcm(ord, static_cast<boost::uint64_t>(cyc.second));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ord = boost::integer::lcm(ord, static_cast<boost::uint64_t>(cyc.second));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ord;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/permlib/test/giant_test.h include/permlib/test/giant_test.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ca49d29..f619428 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/permlib/test/giant_test.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/permlib/test/giant_test.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -40,7 +40,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <permlib/prime_helper.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/foreach.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <boost/math/common_factor_rt.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <boost/integer/common_factor_rt.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <cmath>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <algorithm>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -195,7 +195,7 @@ GiantTestBase::GiantGroupType GiantTest<PERM>::determineGiantType(double eps, un
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (unsigned int k = 0; k < cycleLength.size(); ++k) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (j == k)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ continue;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (boost::math::gcd(cycleLength[j], cycleLength[k]) != 1) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (boost::integer::gcd(cycleLength[j], cycleLength[k]) != 1) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ isCoprime = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/permlib/test/type_recognition.h include/permlib/test/type_recognition.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 76585f9..279fae8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/permlib/test/type_recognition.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/permlib/test/type_recognition.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -44,7 +44,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <permlib/permlib_api.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/shared_ptr.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <boost/math/common_factor_rt.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <boost/integer/common_factor_rt.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iostream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -344,7 +344,7 @@ GroupType* TypeRecognition<PERM,TRANSVERSAL>::largeSymmetricDiagonalSubgroup(std
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size_t orbitGCD = orbits.front()->size();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BOOST_FOREACH(const OrbitPtr& orbit, orbits) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- orbitGCD = boost::math::gcd(orbitGCD, orbit->size());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ orbitGCD = boost::integer::gcd(orbitGCD, orbit->size());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GroupType* lastType = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git test/CMakeLists.txt test/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 5edd1da..a4e1fa9 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- test/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ test/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,4 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-find_package(Boost 1.34.1 REQUIRED unit_test_framework)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++find_package(Boost 1.67 REQUIRED unit_test_framework)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include_directories(../include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git test/test-test.cpp test/test-test.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 6e3fdb6..2b1f7dc 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- test/test-test.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ test/test-test.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -33,7 +33,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define BOOST_TEST_DYN_LINK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define BOOST_TEST_MODULE group test tests
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <boost/test/unit_test.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <boost/test/output_test_stream.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <boost/test/tools/output_test_stream.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ using boost::test_tools::output_test_stream;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <permlib/permutation.h>
</span></pre><pre style='margin:0'>
</pre>