Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 7b096fd

Browse files
author
Matthias Koeppe
committed
Merge branch 't/20901/upgrade_bliss_package_to_0_73_with_debian_patches__install_header_files_in_location_expected_by_polymake' into t/20892/20892
2 parents 8798d7d + c0c0427 commit 7b096fd

File tree

6 files changed

+41
-15
lines changed

6 files changed

+41
-15
lines changed

build/pkgs/bliss/SPKG.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= bliss 0.72 =
1+
= bliss 0.73+debian-1 =
22

33
== Description ==
44

@@ -15,13 +15,12 @@ Bliss is currently being maintained by Tommi Junttila and Petteri Kaski.
1515

1616
http://www.tcs.tkk.fi/Software/bliss/index.html
1717

18+
We apply patches generated from https://github.com/mkoeppe/bliss
19+
(branch apply_debian_patches) as our upstream. This tracks the
20+
patches from the Debian package, adding an autotools build system
21+
and adjusting the include file locations.
22+
1823
== Dependencies ==
1924

2025
None
2126

22-
== Patches ==
23-
24-
There is one patch to be applied that affects the code for computing
25-
automorphism groups of Digraphs. See http://trac.sagemath.org/ticket/17464#comment:33
26-
27-
The patch will be removed once the author of bliss makes a new release.

build/pkgs/bliss/checksums.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tarball=bliss-VERSION.zip
2-
sha1=ca86a10c674a5b3ec9fa163edf6ffde002699628
3-
md5=72f2e310786923b5c398ba0fc40b42ce
4-
cksum=1722393284
1+
tarball=bliss-VERSION.tar.gz
2+
sha1=1da8f098046824fbfff4c64c337e28b2a082f74f
3+
md5=452aea8737d3c4ad0d8ff39180be8004
4+
cksum=2193930007
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.73
1+
0.73+debian-1+sage-2016-08-02

build/pkgs/bliss/spkg-install

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ for patch in ../patches/*.patch; do
1717
fi
1818
done
1919

20-
21-
$MAKE && cp libbliss.a "$SAGE_LOCAL/lib" && cp *.hh "$SAGE_LOCAL/include"
20+
./configure --prefix="$SAGE_LOCAL" --disable-gmp && $MAKE && $MAKE install
2221

2322
if [ $? -ne 0 ]; then
2423
echo "An error occurred whilst building bliss"

build/pkgs/bliss/spkg-src

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
#
3+
# creates the tarball in the current dir, to be moved to ../../../upstream
4+
#
5+
# adapted from cliquer/spkg-src
6+
7+
die () {
8+
echo >&2 "$@"
9+
exit 1
10+
}
11+
12+
rm -rf bliss/
13+
git clone -b sage_package https://github.com/mkoeppe/bliss.git || die "Failed to git clone"
14+
cd bliss/
15+
16+
VERSION=`autoconf --trace='AC_INIT:$2'`
17+
libtoolize || die "Failed to autoreconf"
18+
autoreconf -fi || die "Failed to autoreconf"
19+
automake --add-missing --copy || die "automake failed"
20+
./configure || die "configure failed"
21+
22+
rm -f bliss-$VERSION.tar.gz
23+
make dist || die "make dist failed"
24+
mv bliss-$VERSION.tar.gz ../
25+
cd ..
26+
rm -rf bliss/
27+
28+

src/sage/graphs/bliss.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ from cpython cimport PyObject
3232
from libc.limits cimport LONG_MAX
3333

3434

35-
cdef extern from "graph.hh" namespace "bliss":
35+
cdef extern from "bliss/graph.hh" namespace "bliss":
3636

3737
cdef cppclass Stats:
3838
pass

0 commit comments

Comments
 (0)