summaryrefslogtreecommitdiff
path: root/sci-physics/yoda
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/yoda')
-rw-r--r--sci-physics/yoda/Manifest3
-rw-r--r--sci-physics/yoda/yoda-2.0.1.ebuild95
-rw-r--r--sci-physics/yoda/yoda-9999.ebuild101
3 files changed, 199 insertions, 0 deletions
diff --git a/sci-physics/yoda/Manifest b/sci-physics/yoda/Manifest
index 93eedd3680db..ec8a0ff6147c 100644
--- a/sci-physics/yoda/Manifest
+++ b/sci-physics/yoda/Manifest
@@ -5,10 +5,13 @@ DIST YODA-1.9.5.tar.bz2 1077442 BLAKE2B 010ab725c57dfab8160e0304d461dc44c140d1ce
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
+DIST YODA-2.0.1.tar.bz2 1842004 BLAKE2B 56c2de8acad92510a49abab0d19568f19de3442f1f941784b85c9bded9c14f82fc2cf0eb555721cedcab81e024a9d89ffcf200b54598ed87c1d6de4c7bc59824 SHA512 abd2728e4dc76474d3bf4d478143f4b2b15a596259c49080be37269386f8353cb3f961cc850718ff8fec5d73f96377d6a9103b5bf3cc7f7c703f47c91d929549
EBUILD yoda-1.9.0.ebuild 843 BLAKE2B 94946e19f1b8f36dd4151592207d99ccf0c0d4a46e29323d3cce470dcfcb2f07fe050ce712726a12394f4388de43c5af1ccab56cbf8d4d2f861725d70c8c1634 SHA512 8aa5189d75b21b1d88b56952557c1be48ffa9b81e2ba0d292a99fbbab47f792bbcb89454c055d0c0319fe31b43243a369e6b0d88fdab792e36f15d401d49a0d5
EBUILD yoda-1.9.10.ebuild 2342 BLAKE2B 6f96d2a8cc866ed5d409cd5614a4ea20f2d10700d24a81d51fdcbce8056978b1faa95d8b319287cc24585dd1256d58cb560f9748fe9595df2abd58194a2af4bb SHA512 6e4d30b90b0965572364c763d1c9d838b6ff884221dc61a7542e711727ddf1a80044532daf9b345747672028caf687436054a739162e5d6b88cdbed9a5d179cc
EBUILD yoda-1.9.5.ebuild 884 BLAKE2B 04511d2040cc8c22d994d51653b7c0f3bc9bb38097eaa770cf28f2dcc2a365a770e3bcbc89840415ab9e13d6975f9cca474b292dd47f24f3ff917259aa0340cf SHA512 17bc971c8b57cdb7dd0823f74a5dcc24206e2ebb2c5e93e445b1babfa459c18803944a516fa01bd20cd55003710d50192a51b94721933dd26098ffe23a6194da
EBUILD yoda-1.9.6.ebuild 1246 BLAKE2B f5a104613618e6506a05b1e943964d03adb43b60e3caae2cc170162b2f34a4849c8629e0b021d8212343368d552aca97fc25056c24e11623eff5307a83b430d6 SHA512 b8fa53023b0351c52d072070e0c5b1a6078ecd6f8be4372f5e85b322688b6bf04f7c987bfbf63505ad10bdb8f38ad7cd3ab9a75c16e9954ca751704256356f9b
EBUILD yoda-1.9.7.ebuild 1246 BLAKE2B ba358ba36dd8906922dd78e3fd0e905dd58595d5f7a5e1422bd5b4a29dfbb1d13ea336be5b8484291a7882c3daf7edbf37efbe98830f3dbb1937a427ad0bdadc SHA512 6ed1f48251b3e185e68fb93501e9a6dd4e3c64b0c0c52a74feb8605d9f5f84e78220c2ebd6aa345debc1b6ed6475f7268ec2fabfde2a81b70b81302f87976caa
EBUILD yoda-1.9.9.ebuild 2335 BLAKE2B 18b944660e14da1c43113ea437fb8a358b8f67b8d9308146e1d806d6d6daf8060a4f9fc2536d12c51408b8a7568a358d827bffbf4997d1f910249cc09dc799f3 SHA512 451f6a59fdb98528aac876f6ffeab1530144e2d7748973ff39fe6c733db8ccd54d52f3de10e68f1645e634b242fb4bdff50e769777dcae400cec5b1c5924e9b3
+EBUILD yoda-2.0.1.ebuild 2105 BLAKE2B 34b00ff438d340bd32e48109f8879338f9aff6e1ce2ad4cef70f08445fdc3abf0fa86f20e552d5245828d2c18b6e6897ca8a95a9f5e38d80c16fa6ae17575952 SHA512 fbe4bcddbf5d0618e541382279d9a97e518bcfb95ac984a59e1d0842041c2144417c992cdf4ea81a060713574f4257744105cd2082ec8933ae502dd64868c978
+EBUILD yoda-9999.ebuild 2186 BLAKE2B 31a9813a2d65b699ec741499db2ec8052960686154fdef33d8c9b6d2ecd518edaefc045a3a4552d8d3c39384994a4520de83085ea80048f2bffaa1beb4dd651a SHA512 57ceecf28cace2d63100e80ea942ecd5ec6259843d6b3c07a3c8c9089269b7bb1cd3593da627692e03366ee72704ebdae14ffd090b02fcee40b13e7f200f32f2
MISC metadata.xml 660 BLAKE2B 7bc7ad4089af06b0a7b80028e99a551c8adf18c7066f4b9743e74bbcdb8b831b47917faa98f6183e6fd70856f385c2a45a84366cdb5b9f25ec3881efecb4a723 SHA512 64002092f2032d225f2bd4dcc4668c00cc23b9e60b58052b93a0618794f4e17104ab11a0982428ad956ca6b894e93e230523b52918bc9d41d2c01d22abe18e90
diff --git a/sci-physics/yoda/yoda-2.0.1.ebuild b/sci-physics/yoda/yoda-2.0.1.ebuild
new file mode 100644
index 000000000000..14b1bcbf85a9
--- /dev/null
+++ b/sci-physics/yoda/yoda-2.0.1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+
+inherit bash-completion-r1 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}]
+ ')
+ )
+ )
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+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}"
+
+ if use python ; then
+ newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}-config
+ bashcomp_alias ${PN}-config \
+ ${PN}ls \
+ ${PN}diff \
+ ${PN}merge \
+ ${PN}stack \
+ ${PN}scale \
+ ${PN}plot \
+ ${PN}envelope \
+ ${PN}cnv \
+ ${PN}2root
+ rm "${ED}"/etc/bash_completion.d/${PN}-completion || die
+ python_optimize
+ fi
+
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ optfeature "latex plotting support" virtual/latex-base
+ optfeature "python plotting support" dev-python/matplotlib
+}
diff --git a/sci-physics/yoda/yoda-9999.ebuild b/sci-physics/yoda/yoda-9999.ebuild
new file mode 100644
index 000000000000..658d4c265c1a
--- /dev/null
+++ b/sci-physics/yoda/yoda-9999.ebuild
@@ -0,0 +1,101 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+
+inherit bash-completion-r1 python-single-r1 optfeature autotools
+
+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}]
+ ')
+ )
+ )
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ # reconf due to 9999 version
+ 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}"
+
+ if use python ; then
+ newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}-config
+ bashcomp_alias ${PN}-config \
+ ${PN}ls \
+ ${PN}diff \
+ ${PN}merge \
+ ${PN}stack \
+ ${PN}scale \
+ ${PN}plot \
+ ${PN}envelope \
+ ${PN}cnv \
+ ${PN}2root
+ rm "${ED}"/etc/bash_completion.d/${PN}-completion || die
+ python_optimize
+ fi
+
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ optfeature "latex plotting support" virtual/latex-base
+ optfeature "python plotting support" dev-python/matplotlib
+}