commit:     1a00632e3ab01fa20c783354e0f1eb76fd58b4d8
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
AuthorDate: Fri Nov 29 16:31:47 2024 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Tue Dec  3 08:33:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a00632e

sci-physics/hepmc: Fix python and add static-libs flag

Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
Closes: https://github.com/gentoo/gentoo/pull/39524
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 .../{hepmc-9999.ebuild => hepmc-3.3.0-r1.ebuild}      | 19 ++++++++++++++++++-
 sci-physics/hepmc/hepmc-9999.ebuild                   | 19 ++++++++++++++++++-
 2 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/sci-physics/hepmc/hepmc-9999.ebuild 
b/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild
similarity index 75%
copy from sci-physics/hepmc/hepmc-9999.ebuild
copy to sci-physics/hepmc/hepmc-3.3.0-r1.ebuild
index c5cb24ef7a3f..0f34ec376a72 100644
--- a/sci-physics/hepmc/hepmc-9999.ebuild
+++ b/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild
@@ -22,7 +22,7 @@ fi
 
 LICENSE="GPL-3+"
 SLOT="3"
-IUSE="doc test examples python root"
+IUSE="doc test examples python root static-libs"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
@@ -35,6 +35,9 @@ RDEPEND="
        )
 "
 DEPEND="${RDEPEND}"
+# Automagic compression dependencies in test and example.
+# https://gitlab.cern.ch/hepmc/HepMC3/-/issues/99
+# For now we install all of them...
 BDEPEND="
        root? ( sci-physics/root:= )
        doc? (
@@ -43,16 +46,30 @@ BDEPEND="
                dev-texlive/texlive-latexextra
                dev-texlive/texlive-latexrecommended
        )
+       test? (
+               sys-libs/zlib
+               app-arch/xz-utils
+               app-arch/bzip2
+               app-arch/zstd
+       )
+       examples? (
+               sys-libs/zlib
+               app-arch/xz-utils
+               app-arch/bzip2
+               app-arch/zstd
+       )
 "
 
 src_configure() {
        filter-lto # 941937 941936
        local mycmakeargs=(
+               -DHEPMC3_PYTHON_VERSIONS="${EPYTHON/python/}"
                -DHEPMC3_ENABLE_ROOTIO=$(usex root ON OFF)
                -DHEPMC3_ENABLE_PYTHON=$(usex python ON OFF)
                -DHEPMC3_ENABLE_TEST=$(usex test ON OFF)
                -DHEPMC3_BUILD_DOCS=$(usex doc ON OFF)
                -DHEPMC3_BUILD_EXAMPLES=$(usex examples ON OFF)
+               -DHEPMC3_BUILD_STATIC_LIBS=$(usex static-libs ON OFF)
        )
        cmake_src_configure
 }

diff --git a/sci-physics/hepmc/hepmc-9999.ebuild 
b/sci-physics/hepmc/hepmc-9999.ebuild
index c5cb24ef7a3f..0f34ec376a72 100644
--- a/sci-physics/hepmc/hepmc-9999.ebuild
+++ b/sci-physics/hepmc/hepmc-9999.ebuild
@@ -22,7 +22,7 @@ fi
 
 LICENSE="GPL-3+"
 SLOT="3"
-IUSE="doc test examples python root"
+IUSE="doc test examples python root static-libs"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
@@ -35,6 +35,9 @@ RDEPEND="
        )
 "
 DEPEND="${RDEPEND}"
+# Automagic compression dependencies in test and example.
+# https://gitlab.cern.ch/hepmc/HepMC3/-/issues/99
+# For now we install all of them...
 BDEPEND="
        root? ( sci-physics/root:= )
        doc? (
@@ -43,16 +46,30 @@ BDEPEND="
                dev-texlive/texlive-latexextra
                dev-texlive/texlive-latexrecommended
        )
+       test? (
+               sys-libs/zlib
+               app-arch/xz-utils
+               app-arch/bzip2
+               app-arch/zstd
+       )
+       examples? (
+               sys-libs/zlib
+               app-arch/xz-utils
+               app-arch/bzip2
+               app-arch/zstd
+       )
 "
 
 src_configure() {
        filter-lto # 941937 941936
        local mycmakeargs=(
+               -DHEPMC3_PYTHON_VERSIONS="${EPYTHON/python/}"
                -DHEPMC3_ENABLE_ROOTIO=$(usex root ON OFF)
                -DHEPMC3_ENABLE_PYTHON=$(usex python ON OFF)
                -DHEPMC3_ENABLE_TEST=$(usex test ON OFF)
                -DHEPMC3_BUILD_DOCS=$(usex doc ON OFF)
                -DHEPMC3_BUILD_EXAMPLES=$(usex examples ON OFF)
+               -DHEPMC3_BUILD_STATIC_LIBS=$(usex static-libs ON OFF)
        )
        cmake_src_configure
 }

Reply via email to