diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-24 09:47:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-24 09:47:15 +0000 |
commit | 4003c614d3c4b320c45ab1f4b817459d4709443b (patch) | |
tree | fcc0c42e92c56abe0ea39b717b2c3b019c335e41 /sci-physics/yoda/yoda-1.9.7.ebuild | |
parent | 58177544118b9a8393d7501ee5e0e35cd32f2ad4 (diff) |
gentoo auto-resync : 24:02:2023 - 09:47:15
Diffstat (limited to 'sci-physics/yoda/yoda-1.9.7.ebuild')
-rw-r--r-- | sci-physics/yoda/yoda-1.9.7.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sci-physics/yoda/yoda-1.9.7.ebuild b/sci-physics/yoda/yoda-1.9.7.ebuild new file mode 100644 index 000000000000..e812e9d72c77 --- /dev/null +++ b/sci-physics/yoda/yoda-1.9.7.ebuild @@ -0,0 +1,52 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit bash-completion-r1 autotools python-single-r1 + +DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis" +HOMEPAGE="https://yoda.hepforge.org/" +SRC_URI="https://yoda.hepforge.org/downloads?f=${P^^}.tar.bz2 -> ${P^^}.tar.bz2" +S="${WORKDIR}/${P^^}" + +LICENSE="GPL-3" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="root python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) root? ( python )" + +RDEPEND=" + root? ( sci-physics/root:=[${PYTHON_SINGLE_USEDEP}] ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + # reconf due to python3_10 patch + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use_enable root) \ + $(use_enable python pyext) +} + +src_test() { + # PYTESTS and SHTESTS both require python tools to be installed already + emake check PYTESTS= SHTESTS= +} + +src_install() { + # prevent double installation of python library + emake install DESTDIR="${ED}" + find "${ED}" -name '*.la' -delete || die + newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion yoda + python_optimize + rm "${ED}"/etc/bash_completion.d/${PN}-completion || die +} |