blob: 337881026f94e4fbe797d39ef29bb4ffcfdb4db5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fortran-2
DESCRIPTION="Higher Order Perturbative Parton Evolution Toolkit"
HOMEPAGE="
https://hoppet.hepforge.org/
https://github.com/gavinsalam/hoppet
"
SRC_URI="https://hoppet.hepforge.org/downloads/${P}.tgz"
SLOT="0"
LICENSE="GPL-3+"
KEYWORDS="~amd64"
src_configure() {
default
# own custom configure
./configure --prefix="${EPREFIX}"/usr FFLAGS="${FFLAGS} -fPIC" || die
}
src_install() {
# Fix install to ED
sed -i "s#scripts/install-sh hoppet-config#\##g" Makefile || die
sed -i "s#/usr/lib/libhoppet#${ED}/usr/$(get_libdir)/libhoppet#g" src/Makefile || die
sed -i "s#/usr/include/hoppet#${ED}/usr/include/hoppet#g" src/Makefile || die
emake install
emake install-mod
dobin hoppet-config
find "${ED}" -name '*.la' -delete || die
}
|