Skip to content

Commit d39645b

Browse files
committed
new package: treedec
1 parent 3bb71dc commit d39645b

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

mingw-w64-treedec/PKGBUILD

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
_realname=treedec
2+
pkgbase=mingw-w64-${_realname}
3+
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
4+
pkgver=0.9.3
5+
pkgrel=1
6+
pkgdesc='Algorithms for computing tree decompositions of graphs'
7+
arch=(any)
8+
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
9+
url='https://github.com/freetdi/tdlib/'
10+
license=(GPL-2.0-only
11+
GPL-3.0-only)
12+
depends=()
13+
makedepends=("${MINGW_PACKAGE_PREFIX}-boost"
14+
"git")
15+
source=(git+https://gitlab.com/freetdi/treedec#tag=$pkgver
16+
no-stderr.patch)
17+
sha256sums=('3e7d781d4922d7b15d34e5c0f8e108fe68f085e476d521260191a98d979c16ba'
18+
'361471a81d187978a8a1a86c2893f3db3706c17ca9fb50eac8e6f22296626737')
19+
20+
prepare() {
21+
cd ${_realname}
22+
patch -p1 -i ../no-stderr.patch # Remove debug output
23+
./bootstrap
24+
}
25+
26+
build() {
27+
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"
28+
29+
../${_realname}/configure \
30+
--prefix=${MINGW_PREFIX}
31+
}
32+
33+
package() {
34+
cd "${srcdir}/build-${MSYSTEM}"
35+
make install DESTDIR="$pkgdir"
36+
}
37+

mingw-w64-treedec/no-stderr.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/exact_cutset.hpp b/src/exact_cutset.hpp
2+
index 782bb96..4929730 100755
3+
--- a/src/exact_cutset.hpp
4+
+++ b/src/exact_cutset.hpp
5+
@@ -994,7 +994,7 @@ bool exact_cutset<G_t, config>::try_it(T_t &T, unsigned bagsize)
6+
}else{
7+
// incomplete(); //no//
8+
// messes up random tests, send to cerr instead
9+
- std::cerr << "incomplete ../../src/exact_cutset.hpp:978:try_it\n";
10+
+// std::cerr << "incomplete ../../src/exact_cutset.hpp:978:try_it\n";
11+
}
12+
13+
typename boost::graph_traits<G_t>::vertex_iterator vIt, vEnd;

0 commit comments

Comments
 (0)