Diff cfortran-20110621 with a cfortran-20210827
/usr/portage/dev-lang/cfortran/cfortran-20210827.ebuild 2025-02-03 17:39:32.834666942 +0300 | ||
---|---|---|
9 | 9 | |
10 | 10 |
DEB_PR="1" |
11 | 11 | |
12 |
# https://github.com/bastien-roucaries/cfortran is for the Debian fork |
|
12 | 13 |
DESCRIPTION="Header file allowing to call Fortran routines from C and C++" |
13 |
HOMEPAGE="https://www-zeus.desy.de/~burow/cfortran/" |
|
14 |
SRC_URI=" |
|
15 |
mirror://debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.gz |
|
16 |
mirror://debian/pool/main/c/${PN}/${PN}_${PV}-${DEB_PR}.debian.tar.xz" |
|
14 |
HOMEPAGE="https://www-zeus.desy.de/~burow/cfortran/ https://github.com/bastien-roucaries/cfortran" |
|
15 |
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.gz" |
|
16 |
SRC_URI+=" mirror://debian/pool/main/c/${PN}/${PN}_${PV}-${DEB_PR}.debian.tar.xz" |
|
17 | 17 | |
18 |
SLOT="0" |
|
19 | 18 |
LICENSE="LGPL-2" |
19 |
SLOT="0" |
|
20 | 20 |
KEYWORDS="~alpha amd64 ~arm64 ~hppa ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" |
21 | 21 |
IUSE="examples test" |
22 | ||
23 | 22 |
RESTRICT="!test? ( test )" |
24 | 23 | |
25 |
DOCS=( cfortran.doc ) |
|
26 | ||
27 | 24 |
src_prepare() { |
28 |
eapply "${WORKDIR}"/debian/patches/*.patch |
|
29 | 25 |
default |
26 | ||
27 |
if [[ -d "${WORKDIR}"/debian/patches ]] ; then |
|
28 |
eapply "${WORKDIR}"/debian/patches/ |
|
29 |
fi |
|
30 | ||
30 | 31 |
eautoreconf |
31 | 32 | |
32 | 33 |
if use examples; then |
... | ... | |
39 | 40 |
} |
40 | 41 | |
41 | 42 |
src_configure() { |
42 |
use sparc && append-fflags $(test-flags-FC -fno-store-merging -fno-tree-slp-vectorize) # bug 818400 |
|
43 |
use sparc && append-fflags $(test-flags-FC -fno-store-merging -fno-tree-slp-vectorize) # bug #818400 |
|
44 |
# bug #866560 |
|
45 |
filter-lto |
|
46 |
append-flags -fno-strict-aliasing |
|
47 |
append-cflags $(test-flags-CC -fcommon) # bug #899452 |
|
43 | 48 |
default |
44 | 49 |
} |
45 | 50 | |
... | ... | |
52 | 57 | |
53 | 58 |
docinto debian |
54 | 59 |
dodoc "${WORKDIR}"/debian/{NEWS,changelog,copyright} |
55 |
docinto html |
|
56 |
dodoc cfortran.html index.htm |
|
57 | 60 | |
58 | 61 |
if use examples; then |
59 | 62 |
docinto examples |