diff options
Diffstat (limited to 'sci-physics/fastjet')
-rw-r--r-- | sci-physics/fastjet/Manifest | 5 | ||||
-rw-r--r-- | sci-physics/fastjet/fastjet-3.4.3.ebuild | 89 | ||||
-rw-r--r-- | sci-physics/fastjet/fastjet-9999.ebuild | 89 | ||||
-rw-r--r-- | sci-physics/fastjet/metadata.xml | 3 |
4 files changed, 185 insertions, 1 deletions
diff --git a/sci-physics/fastjet/Manifest b/sci-physics/fastjet/Manifest index 800b2971a8d7..31942e960997 100644 --- a/sci-physics/fastjet/Manifest +++ b/sci-physics/fastjet/Manifest @@ -2,6 +2,9 @@ AUX fastjet-3.4.0-gfortran.patch 460 BLAKE2B 59fc23a0326274363bdaa325b279c3b7987 AUX fastjet-3.4.0-system-siscone.patch 3905 BLAKE2B dbd08874af57cf611b40d4a0ec8c8acff5acff5a6a0959e45b486926a3e50e5ff2c4ac9992161e11666cf09ca52a189c51cb192f907c97b2d8b60c96f5a90fed SHA512 448171e01cc608b0b8e84d1a1bb4e2a146e81fefd6b660e149d181b5c6fdd71f8317e92fe301d47e359819cb03a757034d66a2ab5be96cc2b2d7fc500de6afcc DIST fastjet-3.4.0.tar.gz 2959127 BLAKE2B c99e89ee5cea3fd4e3edebdfebb50efd3c58e7ab15215a384c44120ac930882bd2d4e446b61977fe65dcc49056b958c6510abb7c5889024ae49776b1955bd023 SHA512 af8aeb6197f6bd82ec5f127647f49cd5d455c20e614c23d928b850fc97bc12c70cf6e3b09f1bb0308c2a080fcd4fa13416eea0195695060efaa0e400a687d7b7 DIST fastjet-3.4.2.tar.gz 2973605 BLAKE2B f51b26fdb2611084679a79905c6da460edcf3ad3139bdb2384fe95600e474f4bdb028b24c43456e018c5fb9535491c929d1ec2032d184536efd6b2ef16d54ae1 SHA512 e7702699e67ba5af73f1fe931fe5f67b9f52bb2f0cfdc57dbacf408741e6271ed160503fe6142c92621287df49b441ce7562af589353b199fed09a4c4c839f3f +DIST fastjet-3.4.3.tar.gz 2984798 BLAKE2B ba203a21c5658555606e4ed83fce4cb3dc0a077b0407c336255a7be2ea861a196d57c2f7db03dbd4dad946b8c68827d0d967b3c009d62232d39827342c7ae492 SHA512 9df7fb6ea1082473929d5963eb58c3d420557a2f52e793432f5bd838e8f7212d0a3c3606b98c3dfeeb3a76ffac73926cb7822aaf499d64a65b2cb2bb845fdb77 EBUILD fastjet-3.4.0-r1.ebuild 1725 BLAKE2B 74e7f6f3f5227f5da9f14a51fead044f38a9c8cad0301b8f975366c9110bf32c9b00ae362c3b01a2625be50945883f3691fe7429fe8382e0df27871d20ba7616 SHA512 29f965ddb89b1dfbb5d698105426f75ec35d3d7c40e7751f08b73094db72ee1ad6f61f41a3b9fe4b5846f91ce1b1fc69f71936443cffd1d2830c5ea83b966e3c EBUILD fastjet-3.4.2.ebuild 1911 BLAKE2B 777d04f8f1038edfc1e60bf7b24f88fbf9e3c9d3ba4ec14e70cd8e8a41662a4911293b65604ead8e406db834538822324be596bad77ab4f94cbf5a8a386ccbb9 SHA512 399c5a9d7a3cf298bb014790e5754664b620c0dc2f00feffc6fece7526475658605e53db0146ee97cd19311040632219df7349f83e69a1ec332fb39e8208113a -MISC metadata.xml 847 BLAKE2B e83be614f0f62c0134590b689846e3fd481d49268bc45d2cd0a8fcf4628d56551a76336843da0c596e992dd0aefa829de07cb0877d3bba8aa1123c7f9f54d062 SHA512 b9fc075c1fb0cd8da6f44ddc2ce55b4f3492bf23a6ec3a56865559afdfbd2a1d79bcd07d34974c5f44e96edca08830c057852fa85a7ab88b8b2f784c4a34519f +EBUILD fastjet-3.4.3.ebuild 2018 BLAKE2B 97546ebdc14b4da0518506313696d9368a780d3c357f6c14c643441cde76794827555bc95f6cc55588e9851af842cf2ea7c0460da2dcd9419ad28c6e8ad12e4e SHA512 3c25afabb726b10d845f82b9f4533af84c068b22628f64308112ffd37c50d2fe7bde0311aea060ba38953443a1d313d09228e6c1f98894f3ef28c91e1a1d4d6c +EBUILD fastjet-9999.ebuild 2018 BLAKE2B 97546ebdc14b4da0518506313696d9368a780d3c357f6c14c643441cde76794827555bc95f6cc55588e9851af842cf2ea7c0460da2dcd9419ad28c6e8ad12e4e SHA512 3c25afabb726b10d845f82b9f4533af84c068b22628f64308112ffd37c50d2fe7bde0311aea060ba38953443a1d313d09228e6c1f98894f3ef28c91e1a1d4d6c +MISC metadata.xml 925 BLAKE2B e34aa8e2826ac86680e4ef327e189811907d9a2b9a7df5821649aaa379e3e0024d9804b03287987c99b6a40c4caaa3d31d832a6dc69fbb84b234ddf430f79d75 SHA512 43b54c4ada8c10ba0d8ec4bd660ad6561b6edba379d6eacd1999bb2b108488bd8bb41973760c274471c68c7fc0c9745a7843ea04d9339b847c8057f7284d24e8 diff --git a/sci-physics/fastjet/fastjet-3.4.3.ebuild b/sci-physics/fastjet/fastjet-3.4.3.ebuild new file mode 100644 index 000000000000..f8b55a9cec69 --- /dev/null +++ b/sci-physics/fastjet/fastjet-3.4.3.ebuild @@ -0,0 +1,89 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=plugins +PYTHON_COMPAT=( python3_{10..12} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND=" + media-gfx/graphviz + media-libs/freetype + virtual/latex-base +" + +inherit autotools docs flag-o-matic fortran-2 python-single-r1 + +DESCRIPTION="A software package for jet finding in pp and e+e- collisions" +HOMEPAGE="https://fastjet.fr/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/fastjet" +else + SRC_URI="https://fastjet.fr/repo/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="cgal examples python +plugins" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# cgal is header-only in version 5.4 and up. We need to use the +# special --enable-cgal-header-only argument to use these versions. +DEPEND=" + cgal? ( >=sci-mathematics/cgal-5.4:=[shared(+)] ) + plugins? ( sci-physics/siscone:= ) + python? ( ${PYTHON_DEPS} ) +" +RDEPEND="${DEPEND}" +BDEPEND="app-shells/bash" + +PATCHES=( + "${FILESDIR}"/${PN}-3.4.0-system-siscone.patch + "${FILESDIR}"/${PN}-3.4.0-gfortran.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use cgal && \ + has_version 'sci-mathematics/cgal[gmp]' && append-libs -lgmp + # only bash compatible + sed -i 's#/bin/sh#/bin/bash#g' ./configure || die + econf \ + $(use_enable cgal cgal-header-only) \ + $(use_enable plugins allplugins) \ + $(use_enable plugins allcxxplugins) \ + --enable-shared \ + --enable-static=no \ + --disable-static \ + --disable-auto-ptr \ + $(use_enable python pyext) +} + +src_compile() { + default + docs_compile +} + +src_install() { + default + use python && python_optimize + if use examples; then + emake -C example maintainer-clean + find example -iname 'makefile*' -delete || die + + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/fastjet/fastjet-9999.ebuild b/sci-physics/fastjet/fastjet-9999.ebuild new file mode 100644 index 000000000000..f8b55a9cec69 --- /dev/null +++ b/sci-physics/fastjet/fastjet-9999.ebuild @@ -0,0 +1,89 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=plugins +PYTHON_COMPAT=( python3_{10..12} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND=" + media-gfx/graphviz + media-libs/freetype + virtual/latex-base +" + +inherit autotools docs flag-o-matic fortran-2 python-single-r1 + +DESCRIPTION="A software package for jet finding in pp and e+e- collisions" +HOMEPAGE="https://fastjet.fr/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/fastjet" +else + SRC_URI="https://fastjet.fr/repo/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="cgal examples python +plugins" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# cgal is header-only in version 5.4 and up. We need to use the +# special --enable-cgal-header-only argument to use these versions. +DEPEND=" + cgal? ( >=sci-mathematics/cgal-5.4:=[shared(+)] ) + plugins? ( sci-physics/siscone:= ) + python? ( ${PYTHON_DEPS} ) +" +RDEPEND="${DEPEND}" +BDEPEND="app-shells/bash" + +PATCHES=( + "${FILESDIR}"/${PN}-3.4.0-system-siscone.patch + "${FILESDIR}"/${PN}-3.4.0-gfortran.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use cgal && \ + has_version 'sci-mathematics/cgal[gmp]' && append-libs -lgmp + # only bash compatible + sed -i 's#/bin/sh#/bin/bash#g' ./configure || die + econf \ + $(use_enable cgal cgal-header-only) \ + $(use_enable plugins allplugins) \ + $(use_enable plugins allcxxplugins) \ + --enable-shared \ + --enable-static=no \ + --disable-static \ + --disable-auto-ptr \ + $(use_enable python pyext) +} + +src_compile() { + default + docs_compile +} + +src_install() { + default + use python && python_optimize + if use examples; then + emake -C example maintainer-clean + find example -iname 'makefile*' -delete || die + + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/fastjet/metadata.xml b/sci-physics/fastjet/metadata.xml index 8a82eeb2f12f..8e41b6b197d7 100644 --- a/sci-physics/fastjet/metadata.xml +++ b/sci-physics/fastjet/metadata.xml @@ -18,4 +18,7 @@ <flag name="cgal"> Use <pkg>sci-mathematics/cgal</pkg> instead of bundled algorithms</flag> </use> +<upstream> + <remote-id type="gitlab">fastjet/fastjet</remote-id> +</upstream> </pkgmetadata> |