From 49a4d9348675709c98868bbcb78ca64d4c18e786 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Fri, 16 Feb 2024 21:41:53 +0100 Subject: [PATCH 1/4] sci-mathematics/cipi: Fix boost linking Signed-off-by: Alexander Puck Neuwirth --- sci-mathematics/cipi/cipi-1.0-r1.ebuild | 51 +++++++++++++++++++ .../cipi/files/cipi-1.0-boost.patch | 11 ++++ 2 files changed, 62 insertions(+) create mode 100644 sci-mathematics/cipi/cipi-1.0-r1.ebuild create mode 100644 sci-mathematics/cipi/files/cipi-1.0-boost.patch diff --git a/sci-mathematics/cipi/cipi-1.0-r1.ebuild b/sci-mathematics/cipi/cipi-1.0-r1.ebuild new file mode 100644 index 00000000000..6b46c84eb07 --- /dev/null +++ b/sci-mathematics/cipi/cipi-1.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake flag-o-matic + +DESCRIPTION="Computing information projections iteratively" +HOMEPAGE="https://github.com/tom111/cipi" +SRC_URI="https://github.com/tom111/cipi/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="doc" + +DEPEND=" + dev-libs/boost + doc? ( virtual/latex-base )" +RDEPEND="${DEPEND}" + +DOCS="AUTHORS README" + +CMAKE_IN_SOURCE_BUILD="yes" + +PATCHES=( + "${FILESDIR}/${P}-boost.patch" +) + +src_prepare() { + cmake_src_prepare + append-ldflags -Wl,--copy-dt-needed-entries +} + +src_configure() { + mycmakeargs=( + -DENABLE_DOC=$(usex doc ON OFF) + ) + + cmake_src_configure +} + +pkg_postinst() { + echo "" + elog "The sample PARAM file has been installed to /usr/share/${PN}-${PV}" + echo "" + if use doc; then + elog "A pdf manual has been installed to /usr/share/${PN}-${PV}" + fi +} diff --git a/sci-mathematics/cipi/files/cipi-1.0-boost.patch b/sci-mathematics/cipi/files/cipi-1.0-boost.patch new file mode 100644 index 00000000000..66aa9fd3ff1 --- /dev/null +++ b/sci-mathematics/cipi/files/cipi-1.0-boost.patch @@ -0,0 +1,11 @@ +--- a/src/CMakeLists.txt 2024-02-16 21:36:58.808186061 +0100 ++++ b/src/CMakeLists.txt 2024-02-16 21:36:55.288131610 +0100 +@@ -8,7 +8,7 @@ + Message("Boost found" ${Boost_LIBRARY_DIR}) + INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) + #MESSAGE("Boost was found" ${Boost_INCLUDE_DIR}) +- TARGET_LINK_LIBRARIES (cipi boost_thread-mt) ++ TARGET_LINK_LIBRARIES (cipi boost_thread) + ENDIF (Boost_FOUND) + + INSTALL(PROGRAMS cipi DESTINATION bin) From bd38c85e7cc71d397f02a3e2f3b492148977d8c9 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sat, 17 Feb 2024 17:33:10 +0100 Subject: [PATCH 2/4] Update sci-mathematics/cipi/cipi-1.0-r1.ebuild Co-authored-by: Andrew Nowa Ammerlaan --- sci-mathematics/cipi/cipi-1.0-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/cipi/cipi-1.0-r1.ebuild b/sci-mathematics/cipi/cipi-1.0-r1.ebuild index 6b46c84eb07..014445e69a2 100644 --- a/sci-mathematics/cipi/cipi-1.0-r1.ebuild +++ b/sci-mathematics/cipi/cipi-1.0-r1.ebuild @@ -42,9 +42,9 @@ src_configure() { } pkg_postinst() { - echo "" + elog elog "The sample PARAM file has been installed to /usr/share/${PN}-${PV}" - echo "" + elog if use doc; then elog "A pdf manual has been installed to /usr/share/${PN}-${PV}" fi From 06796730389f6eb2c2717c8c0d7a1a64c9abb7f0 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sat, 17 Feb 2024 17:33:16 +0100 Subject: [PATCH 3/4] Update sci-mathematics/cipi/cipi-1.0-r1.ebuild Co-authored-by: Andrew Nowa Ammerlaan --- sci-mathematics/cipi/cipi-1.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-mathematics/cipi/cipi-1.0-r1.ebuild b/sci-mathematics/cipi/cipi-1.0-r1.ebuild index 014445e69a2..f66cc829779 100644 --- a/sci-mathematics/cipi/cipi-1.0-r1.ebuild +++ b/sci-mathematics/cipi/cipi-1.0-r1.ebuild @@ -16,7 +16,7 @@ KEYWORDS="~amd64 ~x86" IUSE="doc" DEPEND=" - dev-libs/boost + dev-libs/boost:= doc? ( virtual/latex-base )" RDEPEND="${DEPEND}" From cbe6b04943e6c8fc065a3ab11dee7823a0060623 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sat, 17 Feb 2024 17:33:33 +0100 Subject: [PATCH 4/4] Update cipi-1.0-r1.ebuild --- sci-mathematics/cipi/cipi-1.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-mathematics/cipi/cipi-1.0-r1.ebuild b/sci-mathematics/cipi/cipi-1.0-r1.ebuild index f66cc829779..6cd189e3346 100644 --- a/sci-mathematics/cipi/cipi-1.0-r1.ebuild +++ b/sci-mathematics/cipi/cipi-1.0-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit cmake flag-o-matic