summaryrefslogtreecommitdiff
path: root/sci-physics/fastjet-contrib
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/fastjet-contrib')
-rw-r--r--sci-physics/fastjet-contrib/Manifest4
-rw-r--r--sci-physics/fastjet-contrib/fastjet-contrib-1.049.ebuild39
-rw-r--r--sci-physics/fastjet-contrib/files/fastjet-contrib-1.049-soname.patch11
-rw-r--r--sci-physics/fastjet-contrib/metadata.xml15
4 files changed, 69 insertions, 0 deletions
diff --git a/sci-physics/fastjet-contrib/Manifest b/sci-physics/fastjet-contrib/Manifest
new file mode 100644
index 000000000000..11efbb258b01
--- /dev/null
+++ b/sci-physics/fastjet-contrib/Manifest
@@ -0,0 +1,4 @@
+AUX fastjet-contrib-1.049-soname.patch 772 BLAKE2B 88c50c5f425aba7d4eaf760def43baa145d15c550a3e857b70b3a98d0796e2a2f912e7ac652ae559fcf26ddb67013df392851398f92eb2b8362cbf84ebb8dae3 SHA512 715c269c80421baa682b2eda604ff60e21cf08a754ba8051dd684f9c846e444f57735f98102582ee81d975294b7f5873d265e4c8951dade91c5817f065970bef
+DIST fjcontrib-1.049.tar.gz 850931 BLAKE2B ed80c231220794cda36fb0cbbad225eb8d741f2de5558878f17d1774e16e3046d2af4b0cb895d5fc897f382c36f50def0b3ecb0fba06010347752e0a59ee402f SHA512 21dc066cc8f2667f41377924bad6c3df625fa73d16b6bc3dd49ff76e6e15abbfeac0317850699e7047a7c2445c4a94a67d0f37119922163eae8bf77a56edd9e6
+EBUILD fastjet-contrib-1.049.ebuild 1017 BLAKE2B e06a205ac569fb59a80e007cba0aa00264fa14856caa05e621de7e02cb70a6f538e9f46eaaf92d18904ab7aeb202118bff162b9f206363418a6bdce51fdcbf64 SHA512 bb413688d0f482d434726ca46f2657c1c9ff154260297223503a68888217ea839fcb599b6dedf93d64d509868a24abad661542e74214b4c715dee7b1f675c464
+MISC metadata.xml 539 BLAKE2B a45a74080df65fd40841789ca8465301103cea5c6da01882f17d3153b45ef1bba36440d776ceea6214cf1fa63195fd4c425f249ecd78782116a31c5b3288dc56 SHA512 1e76b7065a64af7bb43284d20817827227d0a70070c7684348f8a093b2330c6e407fa6c237570bb4d002088a7cbcbaa7f150f6d6cc95eab2cb3d3ead4755c5c5
diff --git a/sci-physics/fastjet-contrib/fastjet-contrib-1.049.ebuild b/sci-physics/fastjet-contrib/fastjet-contrib-1.049.ebuild
new file mode 100644
index 000000000000..c5de8596605c
--- /dev/null
+++ b/sci-physics/fastjet-contrib/fastjet-contrib-1.049.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=">=sci-physics/fastjet-3.4.0"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-soname.patch
+)
+
+src_configure() {
+ ./configure --prefix=/usr --fastjet-config=/usr/bin/fastjet-config 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
+}
diff --git a/sci-physics/fastjet-contrib/files/fastjet-contrib-1.049-soname.patch b/sci-physics/fastjet-contrib/files/fastjet-contrib-1.049-soname.patch
new file mode 100644
index 000000000000..5f69900cdc30
--- /dev/null
+++ b/sci-physics/fastjet-contrib/files/fastjet-contrib-1.049-soname.patch
@@ -0,0 +1,11 @@
+--- fjcontrib-1.046.orig/Makefile.in 2022-03-10 13:44:33.963887464 +0100
++++ fjcontrib-1.046/Makefile.in 2022-03-10 13:45:02.573890763 +0100
+@@ -54,7 +54,7 @@
+
+ fragile_SHARED_SRC_LIST=@FRAGILE_SHARED_SRC_LIST@
+ libfastjetcontribfragile.@DYNLIBEXT@: $(fragile_SHARED_SRC_LIST)
+- $(CXX) @DYNLIBOPT@ -fPIC -DPIC $(CXXFLAGS) `$(FASTJETCONFIG) --cxxflags --libs` $(fragile_SHARED_SRC_LIST) -o libfastjetcontribfragile.@DYNLIBEXT@
++ $(CXX) @DYNLIBOPT@ -fPIC -DPIC -Wl,-Ol -Wl,--as-needed -Wl,-soname,fastjetcontribfragile.so.0 $(LDFLAGS) $(CXXFLAGS) `$(FASTJETCONFIG) --cxxflags --libs` $(fragile_SHARED_SRC_LIST) -o libfastjetcontribfragile.@DYNLIBEXT@
+
+ fragile-shared-install: fragile-shared
+ utils/install-sh -c -m 755 libfastjetcontribfragile.@DYNLIBEXT@ $(PREFIX)/lib
diff --git a/sci-physics/fastjet-contrib/metadata.xml b/sci-physics/fastjet-contrib/metadata.xml
new file mode 100644
index 000000000000..2ba65cdb8045
--- /dev/null
+++ b/sci-physics/fastjet-contrib/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-physics@gentoo.org</email>
+ <name>Gentoo Physics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ The fastjet-contrib space is intended to provide a common location for access to 3rd party extensions of FastJet.
+ </longdescription>
+</pkgmetadata>