summaryrefslogtreecommitdiff
path: root/sci-physics/hepmc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-04 02:07:22 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-04 02:07:22 +0000
commit38ecaf88ae0891dd2d7f2bdd9a7acdcd45835724 (patch)
tree9416e00c684e43c1731a2189865034d568f2a20f /sci-physics/hepmc
parent7f4b508a2da3c371c7e770aa6ab83b0c4237cd1c (diff)
gentoo auto-resync : 04:12:2024 - 02:07:22
Diffstat (limited to 'sci-physics/hepmc')
-rw-r--r--sci-physics/hepmc/Manifest3
-rw-r--r--sci-physics/hepmc/hepmc-3.3.0-r1.ebuild81
-rw-r--r--sci-physics/hepmc/hepmc-9999.ebuild19
3 files changed, 101 insertions, 2 deletions
diff --git a/sci-physics/hepmc/Manifest b/sci-physics/hepmc/Manifest
index 88edd0caa9ee..c6f111351e48 100644
--- a/sci-physics/hepmc/Manifest
+++ b/sci-physics/hepmc/Manifest
@@ -7,6 +7,7 @@ EBUILD hepmc-2.06.11.ebuild 2116 BLAKE2B 1cc75cf1577b38386720025ed5feb75b19a3a85
EBUILD hepmc-3.2.5_p20230225-r1.ebuild 1488 BLAKE2B 65054613cb8d829c75cdadf5880f17c1127e8817dbf4189f8d1bd3b0105a2ff4d7fcc4790a3c1eb2d48c8047d2ca84f4b0931a5452e066447db254c65914fd84 SHA512 5281c1a6c6fdcd3e9c22b806730b71d96f8215071554d590114579f7cd9f4391a56902548798cd9608342308e9a5390d09f9ad0037dac68fabf637dece660f7f
EBUILD hepmc-3.2.6.ebuild 1400 BLAKE2B a23c3da80c1961c7a3cf7b81b2debe14f061247c8a5d41ea295d03d90103f55adb730d0a797ee9a913a9029de5acb82168994220f6d54e63ea8a0a90324ff4ce SHA512 508d7945a8499753ecb1c4131c1d5a5fb59a2b686217a4b909371ac410d9f8dd88adbe5f601e16bea94ac863d839520853e9ce7cca6a19f3a9adea1592c469f9
EBUILD hepmc-3.2.7.ebuild 1441 BLAKE2B 10d31b17108b70871470fc4a02e6ad4bb66ce281310e6219f3115e8702bc045a4b874b4df97d3f2198dd8f0cc9e1c1b0fd0eba7bed7620b613946f7e5580d5c0 SHA512 f530e6f2e4283b9472347971f18ed971d56d2b0cc1b09ac929183d6b625921976a2957e4b02d1eeb75708e02ead63ab18121e199db194efc2a920871d908c6ec
+EBUILD hepmc-3.3.0-r1.ebuild 1854 BLAKE2B 800b35050494a4daec081ea3fbcdab01d2ca85188d545daaa4dc31a26783671ce7a4752e1d1cf093b7f0308a2af7c9cd1b18c097a3f20a6bb5b19b1522726a38 SHA512 04a106d7b1739a7820de9e855f5d04f9772ca23a0a94d9c14e25bdee0dfc5e23d43a85f9682d6427d4f8c9713c26666a3270968230a98183fe0966eff27a10be
EBUILD hepmc-3.3.0.ebuild 1428 BLAKE2B 7662171f943d8709838d2b52b8963d3112d78030e30bc27a24178a394ae73cf3cd68ba53a029327b3622a70040384d6b9c331a87926a6668e2fe0d78ac47d34a SHA512 a2bb830dbda33377c4983b692bedad9eab2e6d9438e3a1f8688819f945a69864c02962b21e48711b6ccbd5d0e15f7418374355e22b53019fb7ae63110ed4b8f3
-EBUILD hepmc-9999.ebuild 1428 BLAKE2B 7662171f943d8709838d2b52b8963d3112d78030e30bc27a24178a394ae73cf3cd68ba53a029327b3622a70040384d6b9c331a87926a6668e2fe0d78ac47d34a SHA512 a2bb830dbda33377c4983b692bedad9eab2e6d9438e3a1f8688819f945a69864c02962b21e48711b6ccbd5d0e15f7418374355e22b53019fb7ae63110ed4b8f3
+EBUILD hepmc-9999.ebuild 1854 BLAKE2B 800b35050494a4daec081ea3fbcdab01d2ca85188d545daaa4dc31a26783671ce7a4752e1d1cf093b7f0308a2af7c9cd1b18c097a3f20a6bb5b19b1522726a38 SHA512 04a106d7b1739a7820de9e855f5d04f9772ca23a0a94d9c14e25bdee0dfc5e23d43a85f9682d6427d4f8c9713c26666a3270968230a98183fe0966eff27a10be
MISC metadata.xml 1600 BLAKE2B 10b28e9bbb93689a55d60e8af6ca44ea7764b8b309c4dfba81bb11d0ca2cd3aa30ee1df5b9a4a02bd649f64d7624885f10259f4d62c1bdb89b36fa7bb1da8baf SHA512 52c562ae75774076c652072aa1bfbefbbb3fcace04856fea14ce7265e6116bce7bc0fafa24e092cb848cdda980c489ade647ac056a6cd6cc8f077f26994454ae
diff --git a/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild b/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild
new file mode 100644
index 000000000000..0f34ec376a72
--- /dev/null
+++ b/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit fortran-2 cmake flag-o-matic python-single-r1
+
+MYP=HepMC3-${PV}
+
+DESCRIPTION="Event Record for Monte Carlo Generators"
+HOMEPAGE="https://hepmc.web.cern.ch/hepmc/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.cern.ch/hepmc/HepMC3"
+else
+ SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/${MYP}.tar.gz"
+ S="${WORKDIR}/${MYP}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="3"
+IUSE="doc test examples python root static-libs"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ ')
+ )
+"
+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? (
+ app-text/doxygen[dot]
+ dev-texlive/texlive-latex
+ 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
+}
+
+src_install() {
+ cmake_src_install
+ use examples && docompress -x /usr/share/doc/${PF}/examples
+ use python && python_optimize
+}
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
}