summaryrefslogtreecommitdiff
path: root/sci-physics
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-01-01 07:16:20 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-01-01 07:16:20 +0000
commit8446bb4fefb0fb8db8cae6e11d2e66d050a95d32 (patch)
tree1c4ef6558532728c8232385137ef64b556c7230c /sci-physics
parenta4e87863708e0c8dffd3750d50695de7274e9554 (diff)
downloadbaldeagleos-repo-8446bb4fefb0fb8db8cae6e11d2e66d050a95d32.tar.gz
baldeagleos-repo-8446bb4fefb0fb8db8cae6e11d2e66d050a95d32.tar.xz
baldeagleos-repo-8446bb4fefb0fb8db8cae6e11d2e66d050a95d32.zip
Adding metadata
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/yoda/Manifest4
-rw-r--r--sci-physics/yoda/files/yoda-2.0.2-yamlcpp.patch22
-rw-r--r--sci-physics/yoda/files/yoda-2.0.2-zstr.patch24
-rw-r--r--sci-physics/yoda/files/yoda-2.1.1-testpaths.patch26
-rw-r--r--sci-physics/yoda/files/yoda-2.1.1-testwriter.patch42
-rw-r--r--sci-physics/yoda/yoda-1.9.5.ebuild39
-rw-r--r--sci-physics/yoda/yoda-2.0.2-r1.ebuild101
-rw-r--r--sci-physics/yoda/yoda-2.0.2.ebuild99
-rw-r--r--sci-physics/yoda/yoda-2.1.0.ebuild109
-rw-r--r--sci-physics/yoda/yoda-2.1.1.ebuild114
10 files changed, 0 insertions, 580 deletions
diff --git a/sci-physics/yoda/Manifest b/sci-physics/yoda/Manifest
index a3050b37d98e..f323558ad865 100644
--- a/sci-physics/yoda/Manifest
+++ b/sci-physics/yoda/Manifest
@@ -1,6 +1,2 @@
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-2.0.2.tar.bz2 1869694 BLAKE2B cb5628bbfe0ecdd59073ff49496cd79ff6df95d94bbb36463c9de2cd6f576d0a8b8b4c1373f7f06354bb1ceb190a461cf61b4367085c44c44c5fb3982061a3ba SHA512 214f2caa2610a959588b1440fc66e238023829ca2fe7cf0e2f818891dd8db62fc0db288ac03c885c26c8de2a8813cd08deb53cefa0fb7d659b9b129d94d707c7
-DIST YODA-2.1.0.tar.bz2 1935119 BLAKE2B fe8e50759dd4191fb5f1ea8c20ff5a2bdaf444c81234b635c9566ac6f8248991eb998a31a0504bae1ac6ec47f8735ce263382ccdd800f201072cfe4c1d44dc57 SHA512 e17ec7e64082c835e98e4c03eb9d3128a2345b999d3d3a30b7b5b4b34afafd6d51c164011c5357c6fc38b35a511d8f98183de0d9edb13e32a73d5024733b02fc
-DIST YODA-2.1.1.tar.bz2 1023366 BLAKE2B de09ddfaddf365e35c83ba8e514638b91180c251bedb3009252be7bb2c08dbe64f98bea54dad3867906f20dac633c53182da7395d765e3a18cfa1157b7388222 SHA512 961426b17abbdee271a156965bb12a502a57e844e5ea4e5e7d201629aaf0b586684f99a71cba61de19fafc209cfbd653ff2601bc4915b2727cc36400c49ff5c8
DIST YODA-2.1.2.tar.bz2 1022526 BLAKE2B 75f13b04b66b632c66e2442f8bf8ccdb23ce15eec88e9b26a7924d0dc0e4ca80be0eadaf032aeec489a48b2b21beb9656d4f8fdf03ece02dca81133e23850d8d SHA512 39c21f97333c98744006d39903c3cdfd617a8ab6fc253f08412898e8998678963912bd6c6fb0b7bb58e162f48658606d9cdb891f12bc64ff730b158292ff9a85
diff --git a/sci-physics/yoda/files/yoda-2.0.2-yamlcpp.patch b/sci-physics/yoda/files/yoda-2.0.2-yamlcpp.patch
deleted file mode 100644
index ad20bc717f7c..000000000000
--- a/sci-physics/yoda/files/yoda-2.0.2-yamlcpp.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 3e74499ba8bbbd6a872e0563625193505c14df90 Mon Sep 17 00:00:00 2001
-From: Christian Gutschow <chris.g@cern.ch>
-Date: Wed, 11 Dec 2024 19:10:11 +0000
-Subject: [PATCH] add missing header
-
----
- src/yamlcpp/emitterutils.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/yamlcpp/emitterutils.cpp b/src/yamlcpp/emitterutils.cpp
-index 5e5f00ea..78615970 100644
---- a/src/yamlcpp/emitterutils.cpp
-+++ b/src/yamlcpp/emitterutils.cpp
-@@ -1,4 +1,5 @@
- #include <algorithm>
-+#include <cstdint>
- #include <iomanip>
- #include <sstream>
-
---
-GitLab
-
diff --git a/sci-physics/yoda/files/yoda-2.0.2-zstr.patch b/sci-physics/yoda/files/yoda-2.0.2-zstr.patch
deleted file mode 100644
index 1f33e46e2ee6..000000000000
--- a/sci-physics/yoda/files/yoda-2.0.2-zstr.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 31c9ad99ac3dbd34ad8c4285a689c5028490f776 Mon Sep 17 00:00:00 2001
-From: Christian Gutschow <chris.g@cern.ch>
-Date: Wed, 5 Feb 2025 19:02:38 +0000
-Subject: [PATCH] add missing header
-
----
- src/zstr/zstr.hpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/zstr/zstr.hpp b/src/zstr/zstr.hpp
-index 66c21f847..61c587345 100644
---- a/src/zstr/zstr.hpp
-+++ b/src/zstr/zstr.hpp
-@@ -9,6 +9,7 @@
- #pragma once
-
- #include <cassert>
-+#include <cstdint>
- #include <fstream>
- #include <sstream>
- #include <zlib.h>
---
-GitLab
-
diff --git a/sci-physics/yoda/files/yoda-2.1.1-testpaths.patch b/sci-physics/yoda/files/yoda-2.1.1-testpaths.patch
deleted file mode 100644
index 4e6eb8f821c0..000000000000
--- a/sci-physics/yoda/files/yoda-2.1.1-testpaths.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-https://gitlab.com/hepcedar/yoda/-/merge_requests/362
-From 9a47654ff88dffc94cefa89b52819941364f1259 Mon Sep 17 00:00:00 2001
-From: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
-Date: Tue, 19 Aug 2025 09:28:35 +0000
-Subject: [PATCH] Allow lib64 in testpaths too
-
----
- tests/TestPaths.cc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tests/TestPaths.cc b/tests/TestPaths.cc
-index 5c9ec5ce3..13cf2407a 100644
---- a/tests/TestPaths.cc
-+++ b/tests/TestPaths.cc
-@@ -9,7 +9,7 @@ using namespace YODA;
- auto testPaths() {
-
- const std::string libPath = getLibPath();
-- if ( !Utils::endswith(libPath, "/lib") ) return CHECK_TEST_RES(false);
-+ if ( !Utils::endswith(libPath, "/lib") && !Utils::endswith(libPath, "/lib64") ) return CHECK_TEST_RES(false);
-
- const std::string dataPath = getDataPath();
- if ( !Utils::endswith(dataPath, "/share/YODA") ) return CHECK_TEST_RES(false);
---
-GitLab
-
diff --git a/sci-physics/yoda/files/yoda-2.1.1-testwriter.patch b/sci-physics/yoda/files/yoda-2.1.1-testwriter.patch
deleted file mode 100644
index 3639923f40a0..000000000000
--- a/sci-physics/yoda/files/yoda-2.1.1-testwriter.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-https://gitlab.com/hepcedar/yoda/-/merge_requests/363
-From 9ea39901ed84e1b2c76c08830cc2df927216eda2 Mon Sep 17 00:00:00 2001
-From: Christian Gutschow <chris.g@cern.ch>
-Date: Tue, 19 Aug 2025 11:47:50 +0100
-Subject: [PATCH] add H5 protection
-
----
- include/YODA/Writer.h | 2 +-
- tests/TestWriter.cc | 2 ++
- 2 files changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/include/YODA/Writer.h b/include/YODA/Writer.h
-index 0372533e8..5f9c0e5e6 100644
---- a/include/YODA/Writer.h
-+++ b/include/YODA/Writer.h
-@@ -9,8 +9,8 @@
- #include "YODA/AnalysisObject.h"
- #include "YODA/Utils/Traits.h"
-
--#ifdef HAVE_HDF5
- #include <YODA/Config/BuildConfig.h>
-+#ifdef HAVE_HDF5
- #ifdef WITH_HIGHFIVE
- #include <YODA/highfive/H5File.hpp>
- #else
-diff --git a/tests/TestWriter.cc b/tests/TestWriter.cc
-index fc0bd0792..8750f225e 100644
---- a/tests/TestWriter.cc
-+++ b/tests/TestWriter.cc
-@@ -5,7 +5,9 @@
- #include "YODA/Scatter.h"
- #include "YODA/WriterYODA.h"
- #include "YODA/WriterYODA1.h"
-+#ifdef HAVE_HDF5
- #include "YODA/WriterH5.h"
-+#endif
- #include <cmath>
- #include <vector>
- #include <iostream>
---
-GitLab
-
diff --git a/sci-physics/yoda/yoda-1.9.5.ebuild b/sci-physics/yoda/yoda-1.9.5.ebuild
deleted file mode 100644
index 3f12370c67d9..000000000000
--- a/sci-physics/yoda/yoda-1.9.5.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit bash-completion-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"
-
-LICENSE="GPL-2"
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~x86"
-IUSE="root"
-
-RDEPEND="root? ( sci-physics/root:= )"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}/${P^^}"
-
-src_configure() {
- econf \
- --disable-pyext \
- --disable-static \
- $(use_enable root)
-}
-
-src_test() {
- # PYTESTS and SHTESTS both require python tools
- emake check PYTESTS= SHTESTS=
-}
-
-src_install() {
- default
- find "${ED}" -name '*.la' -delete || die
- newbashcomp "${ED}"/etc/bash_completion.d/yoda-completion yoda
- rm "${ED}"/etc/bash_completion.d/yoda-completion || die
-}
diff --git a/sci-physics/yoda/yoda-2.0.2-r1.ebuild b/sci-physics/yoda/yoda-2.0.2-r1.ebuild
deleted file mode 100644
index efac3820b4f0..000000000000
--- a/sci-physics/yoda/yoda-2.0.2-r1.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 2022-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..14} )
-
-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? ( virtual/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}-yamlcpp.patch # 937405
- # https://gitlab.com/hepcedar/yoda/-/merge_requests/287
- "${FILESDIR}"/${P}-zstr.patch # 948090
-)
-
-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() {
- default
-
- 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-2.0.2.ebuild b/sci-physics/yoda/yoda-2.0.2.ebuild
deleted file mode 100644
index 4e9bda9257e9..000000000000
--- a/sci-physics/yoda/yoda-2.0.2.ebuild
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright 2022-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..14} )
-
-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? ( virtual/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}-yamlcpp.patch # 937405
-)
-
-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() {
- default
-
- 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-2.1.0.ebuild b/sci-physics/yoda/yoda-2.1.0.ebuild
deleted file mode 100644
index 23324314735b..000000000000
--- a/sci-physics/yoda/yoda-2.1.0.ebuild
+++ /dev/null
@@ -1,109 +0,0 @@
-# Copyright 2022-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..14} )
-
-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"
- EGIT_BRANCH="main"
-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="test +highfive +python +zlib"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="
- dev-cpp/yaml-cpp
- highfive? (
- sci-libs/highfive
- sci-libs/hdf5[cxx]
- )
- python? ( ${PYTHON_DEPS} )
- zlib? ( virtual/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 \
- --with-yaml-cpp="${EPREFIX}/usr" \
- $(use_enable highfive h5) \
- $(use_with highfive highfive "${ESYSROOT}/usr") \
- $(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() {
- default
-
- 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 "root conversion" sci-physics/root
- optfeature "latex plotting support" virtual/latex-base
- optfeature "python plotting support" dev-python/matplotlib
-}
diff --git a/sci-physics/yoda/yoda-2.1.1.ebuild b/sci-physics/yoda/yoda-2.1.1.ebuild
deleted file mode 100644
index 8af4048a4ee5..000000000000
--- a/sci-physics/yoda/yoda-2.1.1.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 2022-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..14} )
-
-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"
- EGIT_BRANCH="main"
-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="test +highfive +python +zlib"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="
- dev-cpp/yaml-cpp
- highfive? (
- sci-libs/highfive
- sci-libs/hdf5[cxx]
- )
- python? ( ${PYTHON_DEPS} )
- zlib? ( virtual/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}-testpaths.patch
- "${FILESDIR}"/${P}-testwriter.patch
-)
-
-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 \
- --with-yaml-cpp="${EPREFIX}/usr" \
- $(use_enable highfive h5) \
- $(use_with highfive highfive "${ESYSROOT}/usr") \
- $(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() {
- default
-
- 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 "root conversion" sci-physics/root
- optfeature "latex plotting support" virtual/latex-base
- optfeature "python plotting support" dev-python/matplotlib
-}