diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-07-22 11:39:50 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-07-22 11:42:44 +0200 |
commit | 806ecc0d4efdc7a87df9798508ad27eb49dcc6d6 (patch) | |
tree | d90cc976c02b4ea85054a5a95ee51d5c06828cf5 /sci-physics/fastjet-contrib | |
parent | sci-physics/fastjet: add 3.4.0 (diff) | |
download | gentoo-806ecc0d4efdc7a87df9798508ad27eb49dcc6d6.tar.gz gentoo-806ecc0d4efdc7a87df9798508ad27eb49dcc6d6.tar.bz2 gentoo-806ecc0d4efdc7a87df9798508ad27eb49dcc6d6.zip |
sci-physics/fastjet-contrib: new package, add 1.049
Closes: https://github.com/gentoo/sci/pull/1158
Co-authored-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-physics/fastjet-contrib')
-rw-r--r-- | sci-physics/fastjet-contrib/Manifest | 1 | ||||
-rw-r--r-- | sci-physics/fastjet-contrib/fastjet-contrib-1.049.ebuild | 39 | ||||
-rw-r--r-- | sci-physics/fastjet-contrib/files/fastjet-contrib-1.049-soname.patch | 11 | ||||
-rw-r--r-- | sci-physics/fastjet-contrib/metadata.xml | 15 |
4 files changed, 66 insertions, 0 deletions
diff --git a/sci-physics/fastjet-contrib/Manifest b/sci-physics/fastjet-contrib/Manifest new file mode 100644 index 000000000000..286bd2321c57 --- /dev/null +++ b/sci-physics/fastjet-contrib/Manifest @@ -0,0 +1 @@ +DIST fjcontrib-1.049.tar.gz 850931 BLAKE2B ed80c231220794cda36fb0cbbad225eb8d741f2de5558878f17d1774e16e3046d2af4b0cb895d5fc897f382c36f50def0b3ecb0fba06010347752e0a59ee402f SHA512 21dc066cc8f2667f41377924bad6c3df625fa73d16b6bc3dd49ff76e6e15abbfeac0317850699e7047a7c2445c4a94a67d0f37119922163eae8bf77a56edd9e6 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> |