Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sci-physics/xfoil: EAPI8 bump, fix bug #820623, #725718 #36004

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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"
Expand All @@ -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 )
Expand Down Expand Up @@ -52,14 +51,21 @@ 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
emake -C bin \
PLTOBJ="../plotlib/libPlt_gSP.a" \
CFLAGS="${CFLAGS} -DUNDERSCORE" \
FTNLIB="${LDFLAGS}" \
CC="$(tc-getCC)" \
AR="$(tc-getAR) r" \
RANLIB="$(tc-getRANLIB)" \
$i
done
}
Expand Down