diff options
author | Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> | 2023-04-30 20:07:05 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-05-02 13:54:12 +0200 |
commit | 6c9ac2801a6b4080233322cce8c2c55f3e1afeb8 (patch) | |
tree | f97ad94dc41acf3b13ae1d91c2ed30e1cbefd608 /sci-physics | |
parent | sci-physics/hepmc: Add fortran and numpy deps (diff) | |
download | gentoo-6c9ac2801a6b4080233322cce8c2c55f3e1afeb8.tar.gz gentoo-6c9ac2801a6b4080233322cce8c2c55f3e1afeb8.tar.bz2 gentoo-6c9ac2801a6b4080233322cce8c2c55f3e1afeb8.zip |
sci-physics/hepmc: add 3.2.6
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/hepmc/hepmc-3.2.6.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sci-physics/hepmc/hepmc-3.2.6.ebuild b/sci-physics/hepmc/hepmc-3.2.6.ebuild new file mode 100644 index 000000000000..e597922abeda --- /dev/null +++ b/sci-physics/hepmc/hepmc-3.2.6.ebuild @@ -0,0 +1,64 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit fortran-2 cmake python-single-r1 + +MYPN=HepMC3 +MYP=${MYPN}-${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-doc/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 +} |