mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-14 22:19:55 +00:00
Closes: https://bugs.gentoo.org/950330 Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/40790 Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
54 lines
1.3 KiB
Bash
54 lines
1.3 KiB
Bash
# Copyright 2025 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.1[plugins]"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.049-ar.patch
|
|
"${FILESDIR}"/${PN}-1.055-ar-part2.patch # https://github.com/fjcontrib/fjcontrib/issues/3
|
|
"${FILESDIR}"/${PN}-1.101-ldflags.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
|
|
}
|