diff options
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/Manifest.gz | bin | 4201 -> 4205 bytes | |||
-rw-r--r-- | sci-physics/yoda/Manifest | 6 | ||||
-rw-r--r-- | sci-physics/yoda/metadata.xml | 1 | ||||
-rw-r--r-- | sci-physics/yoda/yoda-2.1.0.ebuild | 109 | ||||
-rw-r--r-- | sci-physics/yoda/yoda-9999.ebuild | 15 |
5 files changed, 123 insertions, 8 deletions
diff --git a/sci-physics/Manifest.gz b/sci-physics/Manifest.gz Binary files differindex 8193d48a9f2a..7833420a2a2e 100644 --- a/sci-physics/Manifest.gz +++ b/sci-physics/Manifest.gz diff --git a/sci-physics/yoda/Manifest b/sci-physics/yoda/Manifest index 90ec5ab54298..c5c3a4e6ea6f 100644 --- a/sci-physics/yoda/Manifest +++ b/sci-physics/yoda/Manifest @@ -4,9 +4,11 @@ DIST YODA-1.9.10.tar.bz2 1278729 BLAKE2B f6ae9b579d79b6be62e9644e327f0b449882c0f DIST YODA-1.9.5.tar.bz2 1077442 BLAKE2B 010ab725c57dfab8160e0304d461dc44c140d1ce234f3b70834ee58b8f269159529122095a94e6b79ef752612a6659a17e1874fda2941cfbcec1f53802916b6a SHA512 46e30b33d369f5d28ec228b71eaa298f3010cc06fe568785c74bbaf3d7468c26738cc2ee40da9bcc54d978f394187a2ee9289197283c86a3358583a3c0ecd247 DIST YODA-2.0.1.tar.bz2 1842004 BLAKE2B 56c2de8acad92510a49abab0d19568f19de3442f1f941784b85c9bded9c14f82fc2cf0eb555721cedcab81e024a9d89ffcf200b54598ed87c1d6de4c7bc59824 SHA512 abd2728e4dc76474d3bf4d478143f4b2b15a596259c49080be37269386f8353cb3f961cc850718ff8fec5d73f96377d6a9103b5bf3cc7f7c703f47c91d929549 DIST YODA-2.0.2.tar.bz2 1869694 BLAKE2B cb5628bbfe0ecdd59073ff49496cd79ff6df95d94bbb36463c9de2cd6f576d0a8b8b4c1373f7f06354bb1ceb190a461cf61b4367085c44c44c5fb3982061a3ba SHA512 214f2caa2610a959588b1440fc66e238023829ca2fe7cf0e2f818891dd8db62fc0db288ac03c885c26c8de2a8813cd08deb53cefa0fb7d659b9b129d94d707c7 +DIST YODA-2.1.0.tar.bz2 1935119 BLAKE2B fe8e50759dd4191fb5f1ea8c20ff5a2bdaf444c81234b635c9566ac6f8248991eb998a31a0504bae1ac6ec47f8735ce263382ccdd800f201072cfe4c1d44dc57 SHA512 e17ec7e64082c835e98e4c03eb9d3128a2345b999d3d3a30b7b5b4b34afafd6d51c164011c5357c6fc38b35a511d8f98183de0d9edb13e32a73d5024733b02fc EBUILD yoda-1.9.10.ebuild 2342 BLAKE2B 6f96d2a8cc866ed5d409cd5614a4ea20f2d10700d24a81d51fdcbce8056978b1faa95d8b319287cc24585dd1256d58cb560f9748fe9595df2abd58194a2af4bb SHA512 6e4d30b90b0965572364c763d1c9d838b6ff884221dc61a7542e711727ddf1a80044532daf9b345747672028caf687436054a739162e5d6b88cdbed9a5d179cc EBUILD yoda-1.9.5.ebuild 884 BLAKE2B 04511d2040cc8c22d994d51653b7c0f3bc9bb38097eaa770cf28f2dcc2a365a770e3bcbc89840415ab9e13d6975f9cca474b292dd47f24f3ff917259aa0340cf SHA512 17bc971c8b57cdb7dd0823f74a5dcc24206e2ebb2c5e93e445b1babfa459c18803944a516fa01bd20cd55003710d50192a51b94721933dd26098ffe23a6194da EBUILD yoda-2.0.1.ebuild 2105 BLAKE2B 34b00ff438d340bd32e48109f8879338f9aff6e1ce2ad4cef70f08445fdc3abf0fa86f20e552d5245828d2c18b6e6897ca8a95a9f5e38d80c16fa6ae17575952 SHA512 fbe4bcddbf5d0618e541382279d9a97e518bcfb95ac984a59e1d0842041c2144417c992cdf4ea81a060713574f4257744105cd2082ec8933ae502dd64868c978 EBUILD yoda-2.0.2.ebuild 2139 BLAKE2B dfb9def070c2180a15b4693c89af782c1225ab96b3894f5ccf7b2c7bfca4f339c68176083886b03455382027ec9c4f5a260b40ba0ffc124659e8b41692e310f1 SHA512 f09412dd5db251ac9552e572a070ba62b7e2b6a6ef37a11680c8dca99d1049e21f19d9eba936c12725870906009b6d12d4b6837f566a7e0909a5c0bf9cc2c577 -EBUILD yoda-9999.ebuild 2293 BLAKE2B 57f7ae000e06b4b4c09d778f5d240c010d504a8f560e2dd73d3bfc6aa6ac0d1b0eca6f198878cd3c2b00267e2517775253ce8234062097aa6835a31aaa3e0a44 SHA512 4e60ec0eb7732d765559c50a8b7f1f28af6131bc62584cb93dd82b572043940ef0ac3d7dcf1d9804bc6d0a3893250f4dac5bd8971cca926457dd8010034a83be -MISC metadata.xml 1066 BLAKE2B 26894343b45e88b699be9e0c11bd627e42650a12f0bf91c13e244785e67106dccd9a9fd8269eae7137d3639a62956b672e162e63e8453fa628feff51c2bac75e SHA512 49282b8f0c981c50cf1d8d2f214110ffc0dcc44602ab90ed638caa0d61bb90695e29f49d849e6e85290380848d9c4443d8b38d19e79d56d11e2c297087a02a4b +EBUILD yoda-2.1.0.ebuild 2335 BLAKE2B 246cc6baaba6d2081cff4a39dc50f6eb900f4dac4e2ebb415c72e3df76a46448bd895bfc47cd6a4c9fba37dfbe828a4aed36350b51617a24ccbfe624a3f55e57 SHA512 22a7c38a76a961e1d45baa209eb98ed4b6796c7b132fe2948104e6c04cd95b8b798815f5fb722d2dba895edd7a310ac88ee08cf4da8e340cec82d3491d05ba99 +EBUILD yoda-9999.ebuild 2335 BLAKE2B 246cc6baaba6d2081cff4a39dc50f6eb900f4dac4e2ebb415c72e3df76a46448bd895bfc47cd6a4c9fba37dfbe828a4aed36350b51617a24ccbfe624a3f55e57 SHA512 22a7c38a76a961e1d45baa209eb98ed4b6796c7b132fe2948104e6c04cd95b8b798815f5fb722d2dba895edd7a310ac88ee08cf4da8e340cec82d3491d05ba99 +MISC metadata.xml 1168 BLAKE2B fc77d3b3da79a4bb73e03b057c54768429673f3f6a19d6c794f7910b76ceb314dc6b51883a01cf5c8e72e499d3818d90b08b7082e4763c3e0acceae6e4921c77 SHA512 7f6985f5b8caed19fca307827cec76785f18290e6c00ba28c77a327ebf0cb662ecc4fd8270f7e843f0652d51449447c2414a9e9151e17f6fd80dbdeec10eabf8 diff --git a/sci-physics/yoda/metadata.xml b/sci-physics/yoda/metadata.xml index 0d6af921fec9..bcc241999531 100644 --- a/sci-physics/yoda/metadata.xml +++ b/sci-physics/yoda/metadata.xml @@ -22,6 +22,7 @@ </longdescription> <use> <flag name="root">Adds support for <pkg>sci-physics/root</pkg></flag> + <flag name="highfive">Build with <pkg>sci-libs/HighFive</pkg> and <pkg>sci-libs/hdf5</pkg></flag> </use> <upstream> <remote-id type="gitlab">hepcedar/yoda</remote-id> diff --git a/sci-physics/yoda/yoda-2.1.0.ebuild b/sci-physics/yoda/yoda-2.1.0.ebuild new file mode 100644 index 000000000000..7972bc49c7ac --- /dev/null +++ b/sci-physics/yoda/yoda-2.1.0.ebuild @@ -0,0 +1,109 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) + +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? ( 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 \ + --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-9999.ebuild b/sci-physics/yoda/yoda-9999.ebuild index 949e13b94b55..7972bc49c7ac 100644 --- a/sci-physics/yoda/yoda-9999.ebuild +++ b/sci-physics/yoda/yoda-9999.ebuild @@ -22,14 +22,16 @@ fi LICENSE="GPL-3" SLOT="0/${PV}" -IUSE="root test +python +zlib" +IUSE="test +highfive +python +zlib" RESTRICT="!test? ( test )" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) root? ( python )" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND=" dev-cpp/yaml-cpp - dev-libs/tinyxml - root? ( sci-physics/root:=[${PYTHON_SINGLE_USEDEP}] ) + highfive? ( + sci-libs/HighFive + sci-libs/hdf5[cxx] + ) python? ( ${PYTHON_DEPS} ) zlib? ( sys-libs/zlib ) " @@ -62,8 +64,8 @@ src_configure() { # we need to use the prefix cython here econf --disable-static \ --with-yaml-cpp="${EPREFIX}/usr" \ - --with-tinyxml="${EPREFIX}/usr" \ - $(use_enable root) \ + $(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") @@ -101,6 +103,7 @@ src_install() { } pkg_postinst() { + optfeature "root conversion" sci-physics/root optfeature "latex plotting support" virtual/latex-base optfeature "python plotting support" dev-python/matplotlib } |