commit: bf6d2fe2c594c7a376c02fb570e7c39461444800 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Mon Dec 2 14:29:38 2024 +0000 Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org> CommitDate: Mon Dec 2 15:02:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf6d2fe2
sci-physics/siscone: add 3.0.6, 9999 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/39564 Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org> sci-physics/siscone/Manifest | 1 + sci-physics/siscone/siscone-3.0.6.ebuild | 53 ++++++++++++++++++++++++++++++++ sci-physics/siscone/siscone-9999.ebuild | 53 ++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) diff --git a/sci-physics/siscone/Manifest b/sci-physics/siscone/Manifest index 327617f555ec..a5c8f500f3d4 100644 --- a/sci-physics/siscone/Manifest +++ b/sci-physics/siscone/Manifest @@ -1 +1,2 @@ DIST siscone-3.0.5.tar.gz 544738 BLAKE2B 7136acfc46d9414831d4e07cc428ad3858c1da02bdcd66817eb6406b9ae1d9d582800412dfcfae5477a720b7893ba070c9ef84816a517992be1762d356840bf8 SHA512 fb9f5e6b6677968e77eb9476abe8345711c69213209c153932adacd69b3c1219abe79655238fec1c0ca4e8ca91795c7693c68e2a48ec41a6afff1f046a781a61 +DIST siscone-3.0.6.tar.gz 553221 BLAKE2B e472fb0ee4ce23b420af9978f95225acf8a7c27a1534a85bf69da1235621770aa7a1c1c64b3775c30c81d3161058be6dae8aa446c795805f074bdda001a76edb SHA512 ee2d07e24912aefa5a1626182e60ecdc60e11442530e602cb4dd610d5e9c33bf28faac1359597aafbb92bba3758a181bd41e38fba5746ba3f39f61d8248081ea diff --git a/sci-physics/siscone/siscone-3.0.6.ebuild b/sci-physics/siscone/siscone-3.0.6.ebuild new file mode 100644 index 000000000000..e646896d056d --- /dev/null +++ b/sci-physics/siscone/siscone-3.0.6.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Hadron Seedless Infrared-Safe Cone jet algorithm" +HOMEPAGE="https://siscone.hepforge.org/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/siscone" +else + SRC_URI="https://siscone.hepforge.org/downloads/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples" +BDEPEND="dev-build/autoconf-archive" + +PATCHES=( + "${FILESDIR}"/0001-configure-fix-broken-bashisms-resulting-in-logic-fai.patch +) + +src_prepare() { + default + + # The included copy of this macro is from 2008 and totally broken. + # https://bugs.gentoo.org/890780 + rm m4/ax_prefix_config_h.m4 || die + + # Rebuild after patch to configure.ac, removal of broken macro + eautoreconf +} + +src_configure() { + econf --disable-static +} + +src_install() { + default + if use examples; then + docinto examples + dodoc examples/*.{cpp,h} + docinto examples/events + dodoc examples/events/*.dat + docompress -x /usr/share/doc/${PF}/examples + fi + + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/siscone/siscone-9999.ebuild b/sci-physics/siscone/siscone-9999.ebuild new file mode 100644 index 000000000000..e646896d056d --- /dev/null +++ b/sci-physics/siscone/siscone-9999.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Hadron Seedless Infrared-Safe Cone jet algorithm" +HOMEPAGE="https://siscone.hepforge.org/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/siscone" +else + SRC_URI="https://siscone.hepforge.org/downloads/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples" +BDEPEND="dev-build/autoconf-archive" + +PATCHES=( + "${FILESDIR}"/0001-configure-fix-broken-bashisms-resulting-in-logic-fai.patch +) + +src_prepare() { + default + + # The included copy of this macro is from 2008 and totally broken. + # https://bugs.gentoo.org/890780 + rm m4/ax_prefix_config_h.m4 || die + + # Rebuild after patch to configure.ac, removal of broken macro + eautoreconf +} + +src_configure() { + econf --disable-static +} + +src_install() { + default + if use examples; then + docinto examples + dodoc examples/*.{cpp,h} + docinto examples/events + dodoc examples/events/*.dat + docompress -x /usr/share/doc/${PF}/examples + fi + + find "${ED}" -name '*.la' -delete || die +}