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/yoda/
Date: Tue, 23 Aug 2022 12:34:37
Message-Id: 1661258052.f011a8f478b183b84da6805263ff81b7a5415642.andrewammerlaan@gentoo
1 commit: f011a8f478b183b84da6805263ff81b7a5415642
2 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
3 AuthorDate: Wed Jul 27 02:08:34 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 12:34:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f011a8f4
7
8 sci-physics/yoda: add version 1.9.6
9
10 Closes: https://github.com/gentoo/gentoo/pull/26613
11 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-physics/yoda/Manifest | 1 +
15 sci-physics/yoda/yoda-1.9.6.ebuild | 52 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 53 insertions(+)
17
18 diff --git a/sci-physics/yoda/Manifest b/sci-physics/yoda/Manifest
19 index 0dfe8252bde5..d6600391198d 100644
20 --- a/sci-physics/yoda/Manifest
21 +++ b/sci-physics/yoda/Manifest
22 @@ -1,2 +1,3 @@
23 DIST YODA-1.9.0.tar.bz2 1061105 BLAKE2B 70d68d31456747fcb14e27585aae245930061b5135b8a96c8ff3fe0375175d00a1c2d24a6c1ca3f18fc8464e610ef6287184f3990e12ff3fb108def600e34189 SHA512 eb82f1df832c2124dd81e07c06f165ddf13c4c4b70fcd0113f85045e22085d82751325bc57bfbd167649580980d98a15b666de56dada639160f24682b58b2f71
24 DIST YODA-1.9.5.tar.bz2 1077442 BLAKE2B 010ab725c57dfab8160e0304d461dc44c140d1ce234f3b70834ee58b8f269159529122095a94e6b79ef752612a6659a17e1874fda2941cfbcec1f53802916b6a SHA512 46e30b33d369f5d28ec228b71eaa298f3010cc06fe568785c74bbaf3d7468c26738cc2ee40da9bcc54d978f394187a2ee9289197283c86a3358583a3c0ecd247
25 +DIST YODA-1.9.6.tar.bz2 1069530 BLAKE2B 23d782723c5b2429e9e9a70abe8dbf3d58a2204437a46b6e2e196cacc9b6ce55464d5600dd53492f43801866fc7da0e82d1e765cc04c493f40b2da95413aba25 SHA512 2433f2d685ccc97aa41e5f44e0c7ca560de01e3b746f2e4837ee6259cd142106e9aa0066aaa106e5298f8d4d9df3a09f5a2d058d6b1593792c9afe06b65d1a22
26
27 diff --git a/sci-physics/yoda/yoda-1.9.6.ebuild b/sci-physics/yoda/yoda-1.9.6.ebuild
28 new file mode 100644
29 index 000000000000..5802ef26d25b
30 --- /dev/null
31 +++ b/sci-physics/yoda/yoda-1.9.6.ebuild
32 @@ -0,0 +1,52 @@
33 +# Copyright 2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +
40 +inherit bash-completion-r1 autotools python-single-r1
41 +
42 +DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis"
43 +HOMEPAGE="https://yoda.hepforge.org/"
44 +SRC_URI="https://yoda.hepforge.org/downloads?f=${P^^}.tar.bz2 -> ${P^^}.tar.bz2"
45 +S="${WORKDIR}/${P^^}"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0/${PV}"
49 +KEYWORDS="~amd64"
50 +IUSE="root python"
51 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) root? ( python )"
52 +
53 +RDEPEND="
54 + root? ( sci-physics/root:=[${PYTHON_SINGLE_USEDEP}] )
55 + python? ( ${PYTHON_DEPS} )
56 +"
57 +DEPEND="${RDEPEND}"
58 +
59 +src_prepare() {
60 + default
61 + # reconf due to python3_10 patch
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + econf \
67 + --disable-static \
68 + $(use_enable root) \
69 + $(use_enable python pyext)
70 +}
71 +
72 +src_test() {
73 + # PYTESTS and SHTESTS both require python tools to be installed already
74 + emake check PYTESTS= SHTESTS=
75 +}
76 +
77 +src_install() {
78 + # prevent double installation of python library
79 + emake install DESTDIR="${ED}"
80 + find "${ED}" -name '*.la' -delete || die
81 + newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion yoda
82 + python_optimize
83 + rm "${ED}"/etc/bash_completion.d/${PN}-completion || die
84 +}