Diff hepmc-3.2.5 with a hepmc-3.2.5_p20230225-r1
/usr/portage/sci-physics/hepmc/hepmc-3.2.5_p20230225-r1.ebuild 2023-10-09 14:52:35.256368495 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
# python3_11 fails |
|
7 |
PYTHON_COMPAT=( python3_{9..10} ) |
|
8 |
inherit cmake python-single-r1 |
|
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
7 |
inherit fortran-2 cmake python-single-r1 |
|
9 | 8 | |
10 |
MYP=HepMC3-${PV} |
|
9 |
MYPN=HepMC3 |
|
10 |
MYP=${MYPN}-${PV} |
|
11 | 11 | |
12 | 12 |
DESCRIPTION="Event Record for Monte Carlo Generators" |
13 | 13 |
HOMEPAGE="https://hepmc.web.cern.ch/hepmc/" |
14 |
SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/${MYP}.tar.gz" |
|
15 |
S="${WORKDIR}/${MYP}" |
|
14 | ||
15 |
if [[ ${PV} == 9999 ]]; then |
|
16 |
inherit git-r3 |
|
17 |
EGIT_REPO_URI="https://gitlab.cern.ch/hepmc/HepMC3" |
|
18 |
else |
|
19 |
COMMIT="e05d32ebac8705c0097e9e7d00ce815a205110db" |
|
20 |
SRC_URI="https://gitlab.cern.ch/${PN}/${MYPN}/-/archive/${COMMIT}/${MYPN}-${COMMIT}.tar.gz" |
|
21 |
S="${WORKDIR}/${MYPN}-${COMMIT}" |
|
22 |
KEYWORDS="~amd64 ~x86" |
|
23 |
fi |
|
16 | 24 | |
17 | 25 |
LICENSE="GPL-3+" |
18 | 26 |
SLOT="3" |
19 |
KEYWORDS="~amd64 ~x86" |
|
20 | 27 |
IUSE="doc test examples python root" |
21 | 28 |
RESTRICT="!test? ( test )" |
22 | 29 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
23 | 30 | |
24 |
RDEPEND="python? ( ${PYTHON_DEPS} )" |
|
31 |
RDEPEND=" |
|
32 |
python? ( |
|
33 |
${PYTHON_DEPS} |
|
34 |
$(python_gen_cond_dep ' |
|
35 |
dev-python/numpy[${PYTHON_USEDEP}] |
|
36 |
') |
|
37 |
) |
|
38 |
" |
|
25 | 39 |
DEPEND="${RDEPEND}" |
26 | 40 |
BDEPEND=" |
27 | 41 |
root? ( sci-physics/root:= ) |
... | ... | |
47 | 61 |
src_install() { |
48 | 62 |
cmake_src_install |
49 | 63 |
use examples && docompress -x /usr/share/doc/${PF}/examples |
50 |
python_optimize |
|
64 |
use python && python_optimize |
|
51 | 65 |
} |