diff options
author | 2022-07-27 04:36:31 +0200 | |
---|---|---|
committer | 2022-08-26 13:12:53 +0200 | |
commit | 4bff080f8e9d88d5f3523e8c4d73c2d1b87ed1c3 (patch) | |
tree | d378ace03bcc1cdd886b16e8538a075832ebb24d /sci-physics/hepmc/hepmc-3.2.5.ebuild | |
parent | media-video/wireplumber: backport 100% CPU loop fixes (diff) | |
download | gentoo-4bff080f8e9d88d5f3523e8c4d73c2d1b87ed1c3.tar.gz gentoo-4bff080f8e9d88d5f3523e8c4d73c2d1b87ed1c3.tar.bz2 gentoo-4bff080f8e9d88d5f3523e8c4d73c2d1b87ed1c3.zip |
sci-physics/hepmc: add 3.2.5
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-physics/hepmc/hepmc-3.2.5.ebuild')
-rw-r--r-- | sci-physics/hepmc/hepmc-3.2.5.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sci-physics/hepmc/hepmc-3.2.5.ebuild b/sci-physics/hepmc/hepmc-3.2.5.ebuild new file mode 100644 index 000000000000..6a91e322f3ec --- /dev/null +++ b/sci-physics/hepmc/hepmc-3.2.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# python3_11 fails +PYTHON_COMPAT=( python3_{8..10} ) +inherit cmake python-single-r1 + +MYP=HepMC3-${PV} + +DESCRIPTION="Event Record for Monte Carlo Generators" +HOMEPAGE="https://hepmc.web.cern.ch/hepmc/" +SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/${MYP}.tar.gz" +S="${WORKDIR}/${MYP}" + +LICENSE="GPL-3+" +SLOT="3" +KEYWORDS="~amd64" +IUSE="doc test examples python root" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="python? ( ${PYTHON_DEPS} )" +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 + python_optimize +} |