summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2024-03-30 21:27:54 +0100
committerGuilherme Amadio <amadio@gentoo.org>2024-04-11 08:04:59 +0200
commit8029cc3cdcc002d98e46cced54851893ffa3f19c (patch)
treee098c75988bdc770310cfd1b76dc95567ba92afe
parentapp-metrics/postfix_exporter: add 0.3.0, EAPI8 (diff)
downloadgentoo-8029cc3cdcc002d98e46cced54851893ffa3f19c.tar.gz
gentoo-8029cc3cdcc002d98e46cced54851893ffa3f19c.tar.bz2
gentoo-8029cc3cdcc002d98e46cced54851893ffa3f19c.zip
sci-physics/xfoil: EAPI8 bump, fix bug #820623, #725718
Closes: https://bugs.gentoo.org/820623 Closes: https://bugs.gentoo.org/725718 Closes: https://github.com/gentoo/gentoo/pull/36004 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
-rw-r--r--sci-physics/xfoil/xfoil-6.99-r1.ebuild (renamed from sci-physics/xfoil/xfoil-6.99.ebuild)24
1 files changed, 15 insertions, 9 deletions
diff --git a/sci-physics/xfoil/xfoil-6.99.ebuild b/sci-physics/xfoil/xfoil-6.99-r1.ebuild
index 36047f4e3d56..23bffe5c71d6 100644
--- a/sci-physics/xfoil/xfoil-6.99.ebuild
+++ b/sci-physics/xfoil/xfoil-6.99-r1.ebuild
@@ -1,17 +1,18 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
inherit fortran-2 flag-o-matic toolchain-funcs
DESCRIPTION="Design and analysis of subsonic isolated airfoils"
-HOMEPAGE="http://raphael.mit.edu/xfoil/"
+HOMEPAGE="https://web.mit.edu/drela/Public/web/xfoil/"
SRC_URI="
- http://web.mit.edu/drela/Public/web/${PN}/${PN}${PV}.tgz
- doc? ( http://web.mit.edu/drela/Public/web/${PN}/dataflow.pdf )"
+ https://web.mit.edu/drela/Public/web/${PN}/${PN}${PV}.tgz
+ doc? ( https://web.mit.edu/drela/Public/web/${PN}/dataflow.pdf )"
+S="${WORKDIR}/${PN^}"
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples"
@@ -21,8 +22,6 @@ DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}"/${P}-overflow.patch )
-S="${WORKDIR}/${PN^}"
-
src_prepare() {
# fix bug #147033
[[ $(tc-getFC) == *gfortran ]] && PATCHES+=( "${FILESDIR}"/${PN}-6.96-gfortran.patch )
@@ -52,7 +51,11 @@ src_compile() {
pushd orrs >/dev/null || die
bin/osgen osmaps_ns.lst || die
popd >/dev/null || die
- emake -C plotlib CFLAGS="${CFLAGS} -DUNDERSCORE"
+ emake -C plotlib \
+ CFLAGS="${CFLAGS} -DUNDERSCORE" \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR) r" \
+ RANLIB="$(tc-getRANLIB)"
local i
for i in blu pplot pxplot xfoil; do
@@ -60,6 +63,9 @@ src_compile() {
PLTOBJ="../plotlib/libPlt_gSP.a" \
CFLAGS="${CFLAGS} -DUNDERSCORE" \
FTNLIB="${LDFLAGS}" \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR) r" \
+ RANLIB="$(tc-getRANLIB)" \
$i
done
}