Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/hepmc/
Date: Fri, 26 Aug 2022 11:13:17
Message-Id: 1661512373.4bff080f8e9d88d5f3523e8c4d73c2d1b87ed1c3.andrewammerlaan@gentoo
1 commit: 4bff080f8e9d88d5f3523e8c4d73c2d1b87ed1c3
2 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
3 AuthorDate: Wed Jul 27 02:36:31 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 26 11:12:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bff080f
7
8 sci-physics/hepmc: add 3.2.5
9
10 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 sci-physics/hepmc/Manifest | 1 +
14 sci-physics/hepmc/hepmc-3.2.5.ebuild | 51 ++++++++++++++++++++++++++++++++++++
15 sci-physics/hepmc/metadata.xml | 1 +
16 3 files changed, 53 insertions(+)
17
18 diff --git a/sci-physics/hepmc/Manifest b/sci-physics/hepmc/Manifest
19 index cf51f51c18a5..956b4d3fc19a 100644
20 --- a/sci-physics/hepmc/Manifest
21 +++ b/sci-physics/hepmc/Manifest
22 @@ -1 +1,2 @@
23 DIST HepMC-2.06.09.tar.gz 4612637 BLAKE2B 6bbf1a6a8410b6717ddff29fc3643247582f7a61a05fd9e52a0b09f78bf75de587c1c55525f6a1367b306a26a4687ce55b64908c049d91bdb2db3d40467af62b SHA512 1030f31ad9d19d8ae184145a693c4a3092131f485e2ed89598b7172992a825ad9aa46fb44a9199a00c4a6bd7e163daead9452e9bc4fe32cb3b97351cf22906c4
24 +DIST HepMC3-3.2.5.tar.gz 9217649 BLAKE2B 520e4621cdfa277376e94b87a070f23e6479867bbf696dc972e7496c54504c7da921932fbeaf7713cbaab18c72101ad3fa79396fe8ee1737180946696dcd1fbd SHA512 de60aaa686f6499c62112c265438b9ba41a7ed312b767ddc3409178b6e908e4fffd6a1153bd9f2929cf479074b14bcbec33d377f51a11cfcd4c67e45fc9bb2b9
25
26 diff --git a/sci-physics/hepmc/hepmc-3.2.5.ebuild b/sci-physics/hepmc/hepmc-3.2.5.ebuild
27 new file mode 100644
28 index 000000000000..6a91e322f3ec
29 --- /dev/null
30 +++ b/sci-physics/hepmc/hepmc-3.2.5.ebuild
31 @@ -0,0 +1,51 @@
32 +# Copyright 2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +# python3_11 fails
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +inherit cmake python-single-r1
40 +
41 +MYP=HepMC3-${PV}
42 +
43 +DESCRIPTION="Event Record for Monte Carlo Generators"
44 +HOMEPAGE="https://hepmc.web.cern.ch/hepmc/"
45 +SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/${MYP}.tar.gz"
46 +S="${WORKDIR}/${MYP}"
47 +
48 +LICENSE="GPL-3+"
49 +SLOT="3"
50 +KEYWORDS="~amd64"
51 +IUSE="doc test examples python root"
52 +RESTRICT="!test? ( test )"
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
54 +
55 +RDEPEND="python? ( ${PYTHON_DEPS} )"
56 +DEPEND="${RDEPEND}"
57 +BDEPEND="
58 + root? ( sci-physics/root:= )
59 + doc? (
60 + app-doc/doxygen[dot]
61 + dev-texlive/texlive-latex
62 + dev-texlive/texlive-latexextra
63 + dev-texlive/texlive-latexrecommended
64 + )
65 +"
66 +
67 +src_configure() {
68 + local mycmakeargs=(
69 + -DHEPMC3_ENABLE_ROOTIO=$(usex root ON OFF)
70 + -DHEPMC3_ENABLE_PYTHON=$(usex python ON OFF)
71 + -DHEPMC3_ENABLE_TEST=$(usex test ON OFF)
72 + -DHEPMC3_BUILD_DOCS=$(usex doc ON OFF)
73 + -DHEPMC3_BUILD_EXAMPLES=$(usex examples ON OFF)
74 + )
75 + cmake_src_configure
76 +}
77 +
78 +src_install() {
79 + cmake_src_install
80 + use examples && docompress -x /usr/share/doc/${PF}/examples
81 + python_optimize
82 +}
83
84 diff --git a/sci-physics/hepmc/metadata.xml b/sci-physics/hepmc/metadata.xml
85 index 568fd23f5361..f767f2a48679 100644
86 --- a/sci-physics/hepmc/metadata.xml
87 +++ b/sci-physics/hepmc/metadata.xml
88 @@ -24,5 +24,6 @@
89 <use>
90 <flag name="gev">Build with GeV instead of default MeV for momentum units</flag>
91 <flag name="cm">Build with cm instead of default mm for length units</flag>
92 + <flag name="root">Build with ROOTIO enabled</flag>
93 </use>
94 </pkgmetadata>