diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-24 01:25:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-24 01:25:20 +0100 |
commit | d80b870c42fbe218389ffaf86f0f2a39404deca1 (patch) | |
tree | 3be15ebcfb876f660fe2f2b0d02f8bca68e41622 /sci-physics | |
parent | de59eb4554f5fe0d506a66bb96630a35f99c09f7 (diff) |
gentoo auto-resync : 24:09:2024 - 01:25:19
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/Manifest.gz | bin | 4366 -> 4368 bytes | |||
-rw-r--r-- | sci-physics/rivet/Manifest | 6 | ||||
-rw-r--r-- | sci-physics/rivet/metadata.xml | 1 | ||||
-rw-r--r-- | sci-physics/rivet/rivet-4.0.1.ebuild | 114 | ||||
-rw-r--r-- | sci-physics/rivet/rivet-9999.ebuild | 37 | ||||
-rw-r--r-- | sci-physics/yoda/Manifest | 3 | ||||
-rw-r--r-- | sci-physics/yoda/yoda-2.0.1.ebuild | 95 | ||||
-rw-r--r-- | sci-physics/yoda/yoda-9999.ebuild | 101 |
8 files changed, 336 insertions, 21 deletions
diff --git a/sci-physics/Manifest.gz b/sci-physics/Manifest.gz Binary files differindex 38dbdb72c658..7859925cd1fd 100644 --- a/sci-physics/Manifest.gz +++ b/sci-physics/Manifest.gz diff --git a/sci-physics/rivet/Manifest b/sci-physics/rivet/Manifest index c014fee5e230..67a684f3b364 100644 --- a/sci-physics/rivet/Manifest +++ b/sci-physics/rivet/Manifest @@ -3,7 +3,9 @@ AUX rivet-3.1.6-binreloc.patch 626 BLAKE2B 2d3d14b334e3dd826534401ef2613643da030 AUX rivet-3.1.9-pythontests.patch 508 BLAKE2B 76f758a47643efbe2b997b184c8af7d86055456d84e8bcbdcd67f0836d631f3e38d9b7c53c69133c17ff0f15ae212710e253fa68f794583a321b541baa58a331 SHA512 98fb734113b4639ead244ae044df2ddd85d62247a669f1e3e23ec35b63eb7db56e7999fb4d5144ac313eb6f5bd71e25ca31338f51c0256a4290af8e74cff9a78 DIST rivet-3.1.10.tar.gz 36327949 BLAKE2B 76d8ed8b3ee0eda2f7f03b4e423c46f49d39006a4ab0b66622ab2b2a7817f91f1f7bc648ecfb2e9d2d73da1619069c25fe9078c9b04a54cce8e1a71c33dc6b1a SHA512 9a0a3516686b82c7cf667bab230229553e9e49e5656d763046a86baa1f2d3fdb3167e53540533ebe5da532e71f15140ab8dd16de4075fd76e634e0c6919155e4 DIST rivet-3.1.9.tar.gz 37599489 BLAKE2B a470254b8d4303f5738ca9c4ff0061a000d06e37ee805d909dfc709f14e5ebc8958739912f9b9bbf80bb38e79f4b8df057d7ac59c6924fddd56918102243aeed SHA512 21c1ca6eda7ac7d0394875cd8b972d3e65df1bf0e773d2094bab1997c6fab67381d6202aef8024eaa363c03b2345bae95d54dca1ce38c2499ddc24a7e7f93bdc +DIST rivet-4.0.1.tar.gz 29061104 BLAKE2B 33bb4d003c817e44c2b5ecbf36f0c1d16954b52eb4883531f030af30608e5c499378fc3b3157a4608de63cc07617acbfa56cc124cdf61bbaf2a42841b28d478c SHA512 11704dd4f5c2d6981683f3e0f2d201c2554693dbc5a16c50a064cf9ff890b5dc7039ed2fb09720de21693fcd4ffaf10aba52a6240c65bbcb987a6f48512a0543 EBUILD rivet-3.1.10.ebuild 2812 BLAKE2B 52ce856a54f65a804e08314cf951f89c7a4bc1e25114ab9cca55c31725c0805473ecf1c94c9eea8d6cf22dcf59e5578cef03da9ba84982191f2cd9bc955f829b SHA512 21ad5dc23d0d150f0e2fa33602b9ae703eeb08930687e1f233624a1cdefafcb0680462c431890c7c1ec888d3c18f5866a84817cb09cf81dda0b84a60cd89c78c EBUILD rivet-3.1.9.ebuild 2900 BLAKE2B a47c46505beff3595c236976923b74ce795dbb7ac7ff140d74f1c8f5d20978b5406be8ddea8b44983ee0ab9a2cfebb600b35632644b7cdc3dd82d3692631c5fd SHA512 3039bcaced8628e69d396d6bd9b59fd8fe345ce0abe12f173959f081d92aa9a400ff93b608a8b3ed5c65817fd7a797e28cb2c3bad0a4ee2f29a79838ec2fe7ad -EBUILD rivet-9999.ebuild 2742 BLAKE2B eeb12ef46c8b9bd5a674bd6d0faaaff85888d6115cddad778f8bfb5fcc03a0975e4cb920fbdf222586738d58e0c03a87de6b086252e0a3ec867debf9340e782f SHA512 443202305dbd2825a9e874a568ed313ddd4ea64b7f0fef53d6bc12852f74381f456fe745bf278e48c63c1ad606ac3bb01f211879d3877fae837ebf880d9a4b1f -MISC metadata.xml 1139 BLAKE2B 0a112878c1f9fed11832dd0fc7087aec215f598f81e124a978c35dd9dab9abef65cdb6125623498b04d0b92e4009425a1847d0823ae759011bb4f2a6c29be6eb SHA512 c2eece47abff9d2c8910fe315b6aa6a18cca5d94d8a9601513f1936c397d18b2cf6d0ed4dca6471641949198f39d6ce30e0763c59444932d553f679a9b858dcf +EBUILD rivet-4.0.1.ebuild 2603 BLAKE2B 15fbf948fc75eb5fb3fe727b001b6f6daba19fc906136920f527498aa32e782e9da3fe3c46bc951dd4ef481d647d6976643090b11de441bd2efbf8a51f447743 SHA512 78f9fa5dfe764863f4bf3633081fe5d0db7564665753a4fe2a2fcdac158153c5ce38dfebe41ae5096ee4099ec42982a4925cb670d3a309172603e62a64fdfa58 +EBUILD rivet-9999.ebuild 2603 BLAKE2B 15fbf948fc75eb5fb3fe727b001b6f6daba19fc906136920f527498aa32e782e9da3fe3c46bc951dd4ef481d647d6976643090b11de441bd2efbf8a51f447743 SHA512 78f9fa5dfe764863f4bf3633081fe5d0db7564665753a4fe2a2fcdac158153c5ce38dfebe41ae5096ee4099ec42982a4925cb670d3a309172603e62a64fdfa58 +MISC metadata.xml 1199 BLAKE2B b9210bcdd53714c46011b09479110fe4a6a43b0b935e438dc6d003217184903bdc3f963ed60f62f1a0e232028c763bc0e97182a6f4747fa3c7d96fe40c2f4caf SHA512 4177092e5f5e69fdd7733cf21c46ee88db0c276ad4b4c6dc2b0dacbe38d0d3deceaa34042c1ba0b11e8602fbac4720cb078ca60f651271e4e4397ee9bb49b36d diff --git a/sci-physics/rivet/metadata.xml b/sci-physics/rivet/metadata.xml index a004d00e7bbe..23bb49548be9 100644 --- a/sci-physics/rivet/metadata.xml +++ b/sci-physics/rivet/metadata.xml @@ -18,6 +18,7 @@ <flag name="zlib">Build with zlib</flag> <flag name="hepmc3">Build with HepMC3</flag> <flag name="hepmc2">Build with HepMC2</flag> + <flag name="highfive">Build with hdf5 and highfive</flag> </use> <upstream> <remote-id type="gitlab">hepcedar/rivet</remote-id> diff --git a/sci-physics/rivet/rivet-4.0.1.ebuild b/sci-physics/rivet/rivet-4.0.1.ebuild new file mode 100644 index 000000000000..6c8d466288de --- /dev/null +++ b/sci-physics/rivet/rivet-4.0.1.ebuild @@ -0,0 +1,114 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) + +inherit python-single-r1 flag-o-matic autotools optfeature bash-completion-r1 + +MY_PN="Rivet" +MY_PF=${MY_PN}-${PV} + +DESCRIPTION="Rivet toolkit (Robust Independent Validation of Experiment and Theory)" +HOMEPAGE=" + https://rivet.hepforge.org/ + https://gitlab.com/hepcedar/rivet +" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/hepcedar/rivet" +else + SRC_URI="https://www.hepforge.org/archive/rivet/${MY_PF}.tar.gz -> ${P}.tar.gz" + S=${WORKDIR}/${MY_PF} + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="4" +IUSE="+zlib +python +highfive" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RDEPEND=" + >=sci-physics/fastjet-3.4.0[plugins] + >=sci-physics/fastjet-contrib-1.048 + >=sci-physics/hepmc-3.1.1:3=[-cm(-),gev(+)] + highfive? ( + sci-libs/HighFive + sci-libs/hdf5[cxx] + ) + + sci-libs/gsl + zlib? ( sys-libs/zlib ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/matplotlib[${PYTHON_USEDEP}] + ') + >=sci-physics/yoda-2[${PYTHON_SINGLE_USEDEP}] + ) + !python? ( + >=sci-physics/yoda-2 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-shells/bash + python? ( + $(python_gen_cond_dep ' + >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.6-binreloc.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # Eigen complains about alignment (see https://gitlab.com/libeigen/eigen/-/issues/2523). + # does this affect more cpus? + replace-cpu-flags znver1 x86-64 + # not posix compatible, only bash + CONFIG_SHELL=${ESYSROOT}/bin/bash econf \ + $(use_with zlib zlib "${ESYSROOT}/usr") \ + --with-hepmc3="${ESYSROOT}/usr" \ + $(usex highfive "--with-highfive=${ESYSROOT}/usr" "") \ + --with-yoda="${ESYSROOT}/usr" \ + --with-fastjet="${ESYSROOT}/usr" \ + $(use_enable python pyext) \ + $(usex python CYTHON="${ESYSROOT}/usr/bin/cython") +} + +src_install() { + default + use python && python_optimize + find "${ED}" -name '*.la' -delete || die + if use python ; then + newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN} + bashcomp_alias ${PN} \ + ${PN}-config \ + ${PN}-build \ + ${PN}-cmphistos \ + make-plots \ + ${PN}-mkhtml-tex \ + ${PN}-mkhtml + rm "${ED}"/etc/bash_completion.d/${PN}-completion || die + fi +} + +pkg_postinstall() { + optfeature "latex plotting support" virtual/latex-base media-gfx/imagemagick app-text/ghostscript-gpl + optfeature "python plotting support" dev-python/matplotlib +} diff --git a/sci-physics/rivet/rivet-9999.ebuild b/sci-physics/rivet/rivet-9999.ebuild index ab878070845d..6c8d466288de 100644 --- a/sci-physics/rivet/rivet-9999.ebuild +++ b/sci-physics/rivet/rivet-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{11..12} ) inherit python-single-r1 flag-o-matic autotools optfeature bash-completion-r1 @@ -18,7 +18,6 @@ HOMEPAGE=" if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://gitlab.com/hepcedar/rivet" - EGIT_BRANCH="release-3-1-x" else SRC_URI="https://www.hepforge.org/archive/rivet/${MY_PF}.tar.gz -> ${P}.tar.gz" S=${WORKDIR}/${MY_PF} @@ -26,18 +25,20 @@ else fi LICENSE="GPL-3+" -SLOT="3" -IUSE="+hepmc3 hepmc2 +zlib +python" +SLOT="4" +IUSE="+zlib +python +highfive" REQUIRED_USE=" - ^^ ( hepmc3 hepmc2 ) python? ( ${PYTHON_REQUIRED_USE} ) " RDEPEND=" >=sci-physics/fastjet-3.4.0[plugins] >=sci-physics/fastjet-contrib-1.048 - hepmc2? ( sci-physics/hepmc:2=[-cm(-),gev(+)] ) - hepmc3? ( sci-physics/hepmc:3=[-cm(-),gev(+)] ) + >=sci-physics/hepmc-3.1.1:3=[-cm(-),gev(+)] + highfive? ( + sci-libs/HighFive + sci-libs/hdf5[cxx] + ) sci-libs/gsl zlib? ( sys-libs/zlib ) @@ -46,12 +47,10 @@ RDEPEND=" $(python_gen_cond_dep ' dev-python/matplotlib[${PYTHON_USEDEP}] ') - >=sci-physics/yoda-1.9.8[${PYTHON_SINGLE_USEDEP}] - <sci-physics/yoda-2[${PYTHON_SINGLE_USEDEP}] + >=sci-physics/yoda-2[${PYTHON_SINGLE_USEDEP}] ) !python? ( - >=sci-physics/yoda-1.9.8 - <sci-physics/yoda-2 + >=sci-physics/yoda-2 ) " DEPEND="${RDEPEND}" @@ -66,7 +65,6 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-3.1.6-binreloc.patch - "${FILESDIR}"/${PN}-3.1.9-pythontests.patch ) pkg_setup() { @@ -85,8 +83,8 @@ src_configure() { # not posix compatible, only bash CONFIG_SHELL=${ESYSROOT}/bin/bash econf \ $(use_with zlib zlib "${ESYSROOT}/usr") \ - $(usex hepmc2 "--with-hepmc=${ESYSROOT}/usr" "") \ - $(usex hepmc3 "--with-hepmc3=${ESYSROOT}/usr" "") \ + --with-hepmc3="${ESYSROOT}/usr" \ + $(usex highfive "--with-highfive=${ESYSROOT}/usr" "") \ --with-yoda="${ESYSROOT}/usr" \ --with-fastjet="${ESYSROOT}/usr" \ $(use_enable python pyext) \ @@ -99,17 +97,18 @@ src_install() { find "${ED}" -name '*.la' -delete || die if use python ; then newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN} - bashcomp_alias ${PN} ${PN}-config \ + bashcomp_alias ${PN} \ + ${PN}-config \ ${PN}-build \ - ${PN}-buildplugin \ ${PN}-cmphistos \ make-plots \ - ${PN}-mkhtml \ - ${PN}-mkhtml-mpl + ${PN}-mkhtml-tex \ + ${PN}-mkhtml rm "${ED}"/etc/bash_completion.d/${PN}-completion || die fi } pkg_postinstall() { - optfeature "plotting support" virtual/latex-base media-gfx/imagemagick app-text/ghostscript-gpl + optfeature "latex plotting support" virtual/latex-base media-gfx/imagemagick app-text/ghostscript-gpl + optfeature "python plotting support" dev-python/matplotlib } 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 +} |