summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2024-06-20 10:06:03 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-06-20 13:21:59 +0200
commit275e2e08d7e1219c2d0426b463b4258536d96ef8 (patch)
tree2e27dd01d431b2aec25caf387a3b9a9d6bf45981 /sci-physics/hepmc
parentapp-forensics/afl: drop 2.56b-r1, 2.57b-r1 (diff)
downloadgentoo-275e2e08d7e1219c2d0426b463b4258536d96ef8.tar.gz
gentoo-275e2e08d7e1219c2d0426b463b4258536d96ef8.tar.bz2
gentoo-275e2e08d7e1219c2d0426b463b4258536d96ef8.zip
sci-physics/hepmc: add 3.3.0
Closes: https://bugs.gentoo.org/934230 Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/37224 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-physics/hepmc')
-rw-r--r--sci-physics/hepmc/Manifest1
-rw-r--r--sci-physics/hepmc/hepmc-3.3.0.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/sci-physics/hepmc/Manifest b/sci-physics/hepmc/Manifest
index 30595c7ac5f7..62e31256e57e 100644
--- a/sci-physics/hepmc/Manifest
+++ b/sci-physics/hepmc/Manifest
@@ -1,4 +1,5 @@
DIST HepMC3-3.2.6.tar.gz 9344806 BLAKE2B da478157ad73915d77851e9da7b236a052cb32e98103c2701f874a81ed62cbc4397489e3a2f64cd25a46c9704ccfcaac4d854357251d8bbb4120cbc1f5149374 SHA512 d8a50f081db109c9c18e4aaee60230be062eaa2947dadfb14759649eb1c504975802b2c822b1fe024d4e73f703e9f399161fa4fe38b526722dda33c2ff2e8fab
DIST HepMC3-3.2.7.tar.gz 9345591 BLAKE2B e053b9d91552e1e969742a4e3295e233afba1a9f37bc33474f9b8faeda69f3dccddf3fa0aa7d23e6620df1a321c2d8eab51fce08da6fb8f68de130fc5f90ece9 SHA512 c4072fe4e3d80b90f5e5437781d2c7e1439b777318eecd1202cf7611d1ba2910394d72280873c6f897c43f2dd274ebb7cb77f43b223efb13c823aeaef6ba0e71
+DIST HepMC3-3.3.0.tar.gz 9341637 BLAKE2B ce02d0c3b103c634bcde80040ae82682a8f0b622c6dd0ed97cf915ef0b026976ed852c69a469d7a27a39746ab9fb660b307c2fe11b4844a42973f8590e828296 SHA512 2d99880a99ec028013622460580409ecc99e3395cb2acef51fa4c6d629f42ee4044e78048314fd21be6a8b462ea01a4e161bc65fa279d6468325fc9e5ef110fb
DIST HepMC3-e05d32ebac8705c0097e9e7d00ce815a205110db.tar.gz 9346161 BLAKE2B 9304d329332c2d4eb0ef6526a3308aecd29a38c569d3ba57d94767fd38ad052514f75a7a90f301c54185230d7693a67e48d59b66b12f42626a7ef900e309f743 SHA512 45f9edc6c56f9f8494b416bff147dccca64c52a90e0e169ede560ae8cf9e9255258b7af1586dd1c856f4010c22b2e668511bab160487a3ba802b629d03015e55
DIST hepmc2.06.11.tgz 4893958 BLAKE2B ac8eef250cb330a167c9e0f4bd1aaf8df82e0ffec3557ab5cdaf8bc5b0b7333d6a45f73710ce63abab52d2c5758d5663c15c2a7c940a09504b3ef2fd4517aa0b SHA512 81c100d4931e0e4de62c8ffd18cc06e7996a642fecc092892988bdc0dd0dc3c0f5b336e85f09ceb8f5e0e09456775ae5928d37daf28d82923476089bc0e910f2
diff --git a/sci-physics/hepmc/hepmc-3.3.0.ebuild b/sci-physics/hepmc/hepmc-3.3.0.ebuild
new file mode 100644
index 000000000000..788d8d48adf5
--- /dev/null
+++ b/sci-physics/hepmc/hepmc-3.3.0.ebuild
@@ -0,0 +1,63 @@
+# 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 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"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ ')
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ root? ( sci-physics/root:= )
+ doc? (
+ app-text/doxygen[dot]
+ dev-texlive/texlive-latex
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-latexrecommended
+ )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -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)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ use examples && docompress -x /usr/share/doc/${PF}/examples
+ use python && python_optimize
+}