[arch-commits] Commit in bliss/repos (4 files)

Antonio Rojas arojas at gemini.archlinux.org
Sun Dec 26 13:22:53 UTC 2021


    Date: Sunday, December 26, 2021 @ 13:22:52
  Author: arojas
Revision: 1083847

archrelease: copy trunk to community-staging-x86_64

Added:
  bliss/repos/community-staging-x86_64/
  bliss/repos/community-staging-x86_64/PKGBUILD
    (from rev 1083846, bliss/trunk/PKGBUILD)
  bliss/repos/community-staging-x86_64/digraph_heuristic.patch
    (from rev 1083846, bliss/trunk/digraph_heuristic.patch)
  bliss/repos/community-staging-x86_64/make-install.patch
    (from rev 1083846, bliss/trunk/make-install.patch)

-------------------------+
 PKGBUILD                |   33 +++++++++++++++++++++++++++++++++
 digraph_heuristic.patch |   12 ++++++++++++
 make-install.patch      |   32 ++++++++++++++++++++++++++++++++
 3 files changed, 77 insertions(+)

Copied: bliss/repos/community-staging-x86_64/PKGBUILD (from rev 1083846, bliss/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-26 13:22:52 UTC (rev 1083847)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=bliss
+pkgver=0.77
+pkgrel=2
+pkgdesc='A library for computing automorphism groups and canonical forms of graphs'
+arch=(x86_64)
+url='https://users.aalto.fi/~tjunttil/bliss/'
+license=(GPL3)
+depends=(gmp)
+makedepends=(cmake)
+source=(https://users.aalto.fi/~tjunttil/bliss/downloads/$pkgname-$pkgver.zip
+        digraph_heuristic.patch
+        make-install.patch)
+sha256sums=('acc8b98034f30fad24c897f365abd866c13d9f1bb207e398d0caf136875972a4'
+            '584dbb948c5ad39c32373a3736d457ef5ecf0c23b552d9e925fa0ace61652461'
+            '1cbbcf33c779c832787ad2b6770643b2a3f9ddbe2077217820fe5ac5ca902f16')
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < digraph_heuristic.patch # Fix splitting heuristics for digraphs
+  patch -d $pkgname-$pkgver -p1 < make-install.patch # Add make install target
+}
+
+build() {
+  cmake -B build -S bliss-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DUSE_GMP=OFF
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+}

Copied: bliss/repos/community-staging-x86_64/digraph_heuristic.patch (from rev 1083846, bliss/trunk/digraph_heuristic.patch)
===================================================================
--- community-staging-x86_64/digraph_heuristic.patch	                        (rev 0)
+++ community-staging-x86_64/digraph_heuristic.patch	2021-12-26 13:22:52 UTC (rev 1083847)
@@ -0,0 +1,12 @@
+--- bliss-0.77/src/graph.hh	2011-05-12 15:29:46.000000000 +0200
++++ bliss-0.77/src/graph.hh	2014-12-30 11:14:20.917059666 +0100
+@@ -122,7 +122,7 @@
+   bool is_equitable() const;
+ 
+   /* Splitting heuristics, documented in more detail in graph.cc */
+-  SplittingHeuristic sh;
++  SplittingHeuristic sh = shs_f;
+   Partition::Cell* find_next_cell_to_be_splitted(Partition::Cell *cell);
+   Partition::Cell* sh_first();
+   Partition::Cell* sh_first_smallest();
+

Copied: bliss/repos/community-staging-x86_64/make-install.patch (from rev 1083846, bliss/trunk/make-install.patch)
===================================================================
--- community-staging-x86_64/make-install.patch	                        (rev 0)
+++ community-staging-x86_64/make-install.patch	2021-12-26 13:22:52 UTC (rev 1083847)
@@ -0,0 +1,32 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 01ed093..9d3085d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -62,3 +62,27 @@ if(USE_GMP)
+   target_link_libraries(bliss-executable ${GMP_LIBRARIES})
+ endif(USE_GMP)
+ set_target_properties(bliss-executable PROPERTIES OUTPUT_NAME bliss)
++
++include(GNUInstallDirs)
++
++set(
++  BLISS_HEADERS
++  src/bliss_C.h
++  src/uintseqhash.hh
++  src/abstractgraph.hh
++  src/stats.hh
++  src/digraph.hh
++  src/defs.hh
++  src/heap.hh
++  src/graph.hh
++  src/partition.hh
++  src/kqueue.hh
++  src/utils.hh
++  src/orbit.hh
++  src/timer.hh
++  src/bignum.hh
++)
++
++install(TARGETS bliss-executable RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
++install(TARGETS bliss LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(FILES ${BLISS_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bliss)



More information about the arch-commits mailing list