commit:     66f19e13ac53efa018d12a375912e6c4789b7e51
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 22 12:05:38 2024 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Mon Jan 22 12:06:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66f19e13

sci-libs/bliss: fix libbliss underlinking in a new revision

Closes: https://bugs.gentoo.org/922651
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-libs/bliss/bliss-0.77-r1.ebuild                | 31 ++++++++++++++++++++++
 .../files/bliss-0.77-libbliss-underlinking.patch   | 16 +++++++++++
 2 files changed, 47 insertions(+)

diff --git a/sci-libs/bliss/bliss-0.77-r1.ebuild 
b/sci-libs/bliss/bliss-0.77-r1.ebuild
new file mode 100644
index 000000000000..af5467295b07
--- /dev/null
+++ b/sci-libs/bliss/bliss-0.77-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+SRC_URI="https://users.aalto.fi/~tjunttil/${PN}/downloads/${P}.zip";
+DESCRIPTION="Compute Automorphism Groups and Canonical Labelings of Graphs"
+HOMEPAGE="https://users.aalto.fi/~tjunttil/bliss/index.html";
+
+LICENSE="LGPL-3"
+SLOT="0/1"
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="gmp"
+
+RDEPEND="gmp? ( dev-libs/gmp:0= )"
+DEPEND="${RDEPEND}"
+BDEPEND="app-arch/unzip"
+PATCHES=(
+       "${FILESDIR}/${PN}-0.77-install.patch"
+       "${FILESDIR}/${PN}-0.77-libbliss-underlinking.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DUSE_GMP="$(usex gmp)"
+       )
+
+       cmake_src_configure
+}

diff --git a/sci-libs/bliss/files/bliss-0.77-libbliss-underlinking.patch 
b/sci-libs/bliss/files/bliss-0.77-libbliss-underlinking.patch
new file mode 100644
index 000000000000..faf04d7ae6e3
--- /dev/null
+++ b/sci-libs/bliss/files/bliss-0.77-libbliss-underlinking.patch
@@ -0,0 +1,16 @@
+https://bugs.gentoo.org/922651
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cfdb0a6..e0fd51a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -51,6 +51,9 @@ endif(MSVC)
+ # Add the shared library
+ add_library(bliss SHARED ${BLISS_SOURCE_FILES})
+ set_property(TARGET bliss PROPERTY POSITION_INDEPENDENT_CODE 1)
++if(USE_GMP)
++  target_link_libraries(bliss ${GMP_LIBRARIES})
++endif(USE_GMP)
+ 
+ # Add the static library
+ add_library(bliss_static STATIC ${BLISS_SOURCE_FILES})

Reply via email to