summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/yoda/Manifest2
-rw-r--r--sci-physics/yoda/files/yoda-1.9.9-configure.patch56
-rw-r--r--sci-physics/yoda/yoda-1.9.10.ebuild92
-rw-r--r--sci-physics/yoda/yoda-1.9.9.ebuild92
4 files changed, 242 insertions, 0 deletions
diff --git a/sci-physics/yoda/Manifest b/sci-physics/yoda/Manifest
index 6cb5d1036f33..aa6f35fa911b 100644
--- a/sci-physics/yoda/Manifest
+++ b/sci-physics/yoda/Manifest
@@ -1,4 +1,6 @@
DIST YODA-1.9.0.tar.bz2 1061105 BLAKE2B 70d68d31456747fcb14e27585aae245930061b5135b8a96c8ff3fe0375175d00a1c2d24a6c1ca3f18fc8464e610ef6287184f3990e12ff3fb108def600e34189 SHA512 eb82f1df832c2124dd81e07c06f165ddf13c4c4b70fcd0113f85045e22085d82751325bc57bfbd167649580980d98a15b666de56dada639160f24682b58b2f71
+DIST YODA-1.9.10.tar.bz2 1278729 BLAKE2B f6ae9b579d79b6be62e9644e327f0b449882c0f1a0efaac09ac97eae90a2ced10bf2b13447d75390552b3e4d8c128e7a33184bf8b2d308236f828e611df6d7a4 SHA512 54a455a1b2772ea3201477d4dddcf0c92c85bfee8825d8726d62331ebacb37fc8d1f6e02cdfe592722f2a747a46786d2bdb3c36cc982794a30b25e718d32e998
DIST YODA-1.9.5.tar.bz2 1077442 BLAKE2B 010ab725c57dfab8160e0304d461dc44c140d1ce234f3b70834ee58b8f269159529122095a94e6b79ef752612a6659a17e1874fda2941cfbcec1f53802916b6a SHA512 46e30b33d369f5d28ec228b71eaa298f3010cc06fe568785c74bbaf3d7468c26738cc2ee40da9bcc54d978f394187a2ee9289197283c86a3358583a3c0ecd247
DIST YODA-1.9.6.tar.bz2 1069530 BLAKE2B 23d782723c5b2429e9e9a70abe8dbf3d58a2204437a46b6e2e196cacc9b6ce55464d5600dd53492f43801866fc7da0e82d1e765cc04c493f40b2da95413aba25 SHA512 2433f2d685ccc97aa41e5f44e0c7ca560de01e3b746f2e4837ee6259cd142106e9aa0066aaa106e5298f8d4d9df3a09f5a2d058d6b1593792c9afe06b65d1a22
DIST YODA-1.9.7.tar.bz2 1084794 BLAKE2B 86a1d061c6c16ceb994878d734642fe2be18dcce4391e7f8cb57df27b5944ba4edc6573915b150993c921a4a7b5eda2b3f598b7984466f6706348ca137e4981a SHA512 923e51a5783638304841bdc7aad6351c109c1806ce3f87d1ed9d965c4c95179bb1e416c9db77e39cd8f81417d08a7668cdde4f56cd893ce528b7cf9fe0e67c01
+DIST YODA-1.9.9.tar.bz2 1278231 BLAKE2B 74b759d5e152a28359ab244690a0c8e8cf10d2eb130bbf4017d602a98b28264b4f9f05842b6ef261b990e62908db6cad490aa85dde54cae3dc948eaa5f9f8440 SHA512 76e80891878712c6576cc13013b332dc48711c9b19ba1257a6c2128bdde5eb483c61f9a7d7f7946b8f0c44fd3940afe699c8dd6a45083917bf8f30351d9ce191
diff --git a/sci-physics/yoda/files/yoda-1.9.9-configure.patch b/sci-physics/yoda/files/yoda-1.9.9-configure.patch
new file mode 100644
index 000000000000..47872f64097a
--- /dev/null
+++ b/sci-physics/yoda/files/yoda-1.9.9-configure.patch
@@ -0,0 +1,56 @@
+From a9267acfaadf93cd4fbe6d5a91e766bfb3bf154a Mon Sep 17 00:00:00 2001
+From: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
+Date: Fri, 15 Mar 2024 20:36:32 +0000
+Subject: [PATCH 1/2] Fix configure failure for uncommon shells
+
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 86de6b35..e9db8ee7 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -131,11 +131,11 @@ if test x$enable_pyext = xyes; then
+ enable_pyext=no
+ fi
+ fi
+-AM_CONDITIONAL(ENABLE_PYEXT, [test x$enable_pyext == xyes])
++AM_CONDITIONAL(ENABLE_PYEXT, [test x$enable_pyext = xyes])
+
+
+ ## Cython checks
+-if test x$enable_pyext == xyes; then
++if test x$enable_pyext = xyes; then
+ AM_CHECK_CYTHON([0.24], [:], [:])
+ if test x$CYTHON_FOUND = xyes; then
+ AC_PATH_PROGS(CYTHON, [$CYTHON cython-$PYTHON_VERSION cython$PYTHON_VERSION cython-$PYTHON_MAJOR_VERSION cython$PYTHON_MAJOR_VERSION cython])
+--
+GitLab
+
+
+From 62f321a54d83a3937d5061759ca04b97aa8e2616 Mon Sep 17 00:00:00 2001
+From: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
+Date: Fri, 15 Mar 2024 20:41:19 +0000
+Subject: [PATCH 2/2] Update configure.ac
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e9db8ee7..6a8a34cb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -194,7 +194,7 @@ AC_CONFIG_FILES([yodaenv.sh yoda.pc])
+
+ AC_OUTPUT
+
+-if test x$enable_pyext == xyes; then
++if test x$enable_pyext = xyes; then
+ cat <<EOF
+
+ ************************************************************
+--
+GitLab
+
diff --git a/sci-physics/yoda/yoda-1.9.10.ebuild b/sci-physics/yoda/yoda-1.9.10.ebuild
new file mode 100644
index 000000000000..ea206e059b09
--- /dev/null
+++ b/sci-physics/yoda/yoda-1.9.10.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit bash-completion-r1 autotools python-single-r1 optfeature
+
+DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis"
+HOMEPAGE="https://yoda.hepforge.org/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/hepcedar/yoda"
+else
+ SRC_URI="https://yoda.hepforge.org/downloads?f=${P^^}.tar.bz2 -> ${P^^}.tar.bz2"
+ S="${WORKDIR}/${P^^}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+IUSE="root test +python +zlib"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) root? ( python )"
+
+RDEPEND="
+ root? ( sci-physics/root:=[${PYTHON_SINGLE_USEDEP}] )
+ python? ( ${PYTHON_DEPS} )
+ zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ python? (
+ $(python_gen_cond_dep '
+ >=dev-python/cython-0.29.24[${PYTHON_USEDEP}]
+ ')
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ ')
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9.9-configure.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ # reconf due to python3_10 patch
+ eautoreconf
+}
+
+src_configure() {
+ # we need to use the prefix cython here
+ econf --disable-static \
+ $(use_enable root) \
+ $(use_enable python pyext) \
+ $(use_with zlib zlib "${ESYSROOT}/usr") \
+ $(usex python CYTHON="${ESYSROOT}/usr/bin/cython")
+}
+
+src_test() {
+ # PYTESTS and SHTESTS both require python tools
+ if use python; then
+ emake check
+ else
+ emake check PYTESTS= SHTESTS= NO_PYTHON=1
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${ED}"
+
+ newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}
+ rm "${ED}"/etc/bash_completion.d/${PN}-completion || die
+
+ use python && python_optimize
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ optfeature "plotting support" virtual/latex-base dev-python/matplotlib
+}
diff --git a/sci-physics/yoda/yoda-1.9.9.ebuild b/sci-physics/yoda/yoda-1.9.9.ebuild
new file mode 100644
index 000000000000..bb8f1e8ffb59
--- /dev/null
+++ b/sci-physics/yoda/yoda-1.9.9.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit bash-completion-r1 autotools python-single-r1 optfeature
+
+DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis"
+HOMEPAGE="https://yoda.hepforge.org/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/hepcedar/yoda"
+else
+ SRC_URI="https://yoda.hepforge.org/downloads?f=${P^^}.tar.bz2 -> ${P^^}.tar.bz2"
+ S="${WORKDIR}/${P^^}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+IUSE="root test +python +zlib"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) root? ( python )"
+
+RDEPEND="
+ root? ( sci-physics/root:=[${PYTHON_SINGLE_USEDEP}] )
+ python? ( ${PYTHON_DEPS} )
+ zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ python? (
+ $(python_gen_cond_dep '
+ >=dev-python/cython-0.29.24[${PYTHON_USEDEP}]
+ ')
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ ')
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ # reconf due to python3_10 patch
+ eautoreconf
+}
+
+src_configure() {
+ # we need to use the prefix cython here
+ econf --disable-static \
+ $(use_enable root) \
+ $(use_enable python pyext) \
+ $(use_with zlib zlib "${ESYSROOT}/usr") \
+ $(usex python CYTHON="${ESYSROOT}/usr/bin/cython")
+}
+
+src_test() {
+ # PYTESTS and SHTESTS both require python tools
+ if use python; then
+ emake check
+ else
+ emake check PYTESTS= SHTESTS= NO_PYTHON=1
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${ED}"
+
+ newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}
+ rm "${ED}"/etc/bash_completion.d/${PN}-completion || die
+
+ use python && python_optimize
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ optfeature "plotting support" virtual/latex-base dev-python/matplotlib
+}