Skip to content

Commit 5ff6af0

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

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

mingw-w64-treedec/PKGBUILD

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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}-autotools"
14+
"${MINGW_PACKAGE_PREFIX}-boost"
15+
"${MINGW_PACKAGE_PREFIX}-cc"
16+
"git")
17+
source=(git+https://gitlab.com/freetdi/treedec#tag=$pkgver
18+
no-stderr.patch)
19+
sha256sums=('3e7d781d4922d7b15d34e5c0f8e108fe68f085e476d521260191a98d979c16ba'
20+
'361471a81d187978a8a1a86c2893f3db3706c17ca9fb50eac8e6f22296626737')
21+
22+
prepare() {
23+
cd ${_realname}
24+
patch -p1 -i ../no-stderr.patch # Remove debug output
25+
./bootstrap
26+
}
27+
28+
build() {
29+
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"
30+
31+
../${_realname}/configure \
32+
--prefix=${MINGW_PREFIX}
33+
}
34+
35+
package() {
36+
cd "${srcdir}/build-${MSYSTEM}"
37+
make install DESTDIR="$pkgdir"
38+
}
39+

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)