summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2024-03-17 22:06:26 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-03-18 11:58:50 +0100
commitd9bb768e10e2b3f8b4754b7cb00a66b894aad278 (patch)
tree23dbd149de1d97cd0b41f365ecea6245934385e5 /sci-physics
parentsci-physics/fastjet: add 3.4.2 (diff)
downloadgentoo-d9bb768e10e2b3f8b4754b7cb00a66b894aad278.tar.gz
gentoo-d9bb768e10e2b3f8b4754b7cb00a66b894aad278.tar.bz2
gentoo-d9bb768e10e2b3f8b4754b7cb00a66b894aad278.zip
sci-physics/fastjet-contrib: add 1.053
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/35810 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/fastjet-contrib/Manifest1
-rw-r--r--sci-physics/fastjet-contrib/fastjet-contrib-1.053.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/sci-physics/fastjet-contrib/Manifest b/sci-physics/fastjet-contrib/Manifest
index 286bd2321c57..c107593243e9 100644
--- a/sci-physics/fastjet-contrib/Manifest
+++ b/sci-physics/fastjet-contrib/Manifest
@@ -1 +1,2 @@
+DIST fastjet-contrib-1.053.tar.gz 912109 BLAKE2B b195c415163d9ebf8e48d2516ea44014f0f4b112307a86d536e82d62121b0e22d8c862468fddcc8570eea6137c1d757586941af80112459a528e261764a0fb96 SHA512 b8888d30abaead7ec084d551d05dbd53f5a03e226fd58ec1e4c236cb022868c5134a4199dde262f18334628f4b58d532bd0e7955e81d8d964a985646d376878b
DIST fjcontrib-1.049.tar.gz 850931 BLAKE2B ed80c231220794cda36fb0cbbad225eb8d741f2de5558878f17d1774e16e3046d2af4b0cb895d5fc897f382c36f50def0b3ecb0fba06010347752e0a59ee402f SHA512 21dc066cc8f2667f41377924bad6c3df625fa73d16b6bc3dd49ff76e6e15abbfeac0317850699e7047a7c2445c4a94a67d0f37119922163eae8bf77a56edd9e6
diff --git a/sci-physics/fastjet-contrib/fastjet-contrib-1.053.ebuild b/sci-physics/fastjet-contrib/fastjet-contrib-1.053.ebuild
new file mode 100644
index 000000000000..f4141ddfd6d1
--- /dev/null
+++ b/sci-physics/fastjet-contrib/fastjet-contrib-1.053.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_PN=fjcontrib
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="3rd party extensions of FastJet."
+HOMEPAGE="https://fastjet.hepforge.org/contrib/"
+SRC_URI="https://fastjet.hepforge.org/contrib/downloads/${MY_P}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=">=sci-physics/fastjet-3.4.0"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.049-soname.patch
+ "${FILESDIR}"/${PN}-1.049-ar.patch
+ "${FILESDIR}"/${PN}-1.049-musl.patch
+)
+
+src_configure() {
+ tc-export CXX AR RANLIB
+ ./configure \
+ --prefix="${ESYSROOT}/usr" \
+ --fastjet-config="${ESYSROOT}/usr/bin/fastjet-config" \
+ RANLIB="${RANLIB}" \
+ AR="${AR}" \
+ CXX="${CXX}" \
+ CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" \
+ FFLAGS="${FFLAGS}" \
+ LDFLAGS="${LDFLAGS}" || die
+}
+
+src_compile() {
+ emake
+ emake fragile-shared
+}
+
+src_install() {
+ emake install PREFIX="${ED}/usr"
+ dolib.so libfastjetcontribfragile.so
+ # The name used for requesting this library varies
+ dosym libfastjetcontribfragile.so /usr/$(get_libdir)/libfastjetcontribfragile.so.0
+ dosym libfastjetcontribfragile.so /usr/$(get_libdir)/fastjetcontribfragile.so.0
+}