[gentoo-commits] repo/gentoo:master commit in: sci-physics/xfoil/, sci-physics/xfoil/files/
commit: 2a5e31933be5976e472cddcf73f65ecf4cb4b308 Author: Guilherme Amadio gentoo org> AuthorDate: Thu Apr 11 06:06:20 2024 + Commit: Guilherme Amadio gentoo org> CommitDate: Thu Apr 11 06:06:20 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a5e3193 sci-physics/xfoil: fix bug 771615 Closes: https://bugs.gentoo.org/771615 Signed-off-by: Guilherme Amadio gentoo.org> sci-physics/xfoil/files/xfoil-6.99-ldflags.patch | 12 sci-physics/xfoil/xfoil-6.99-r1.ebuild | 5 - 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch b/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch new file mode 100644 index ..4667a891d8a7 --- /dev/null +++ b/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch @@ -0,0 +1,12 @@ +Fix bug #771615 + +--- a/bin/Makefile 2024-04-11 08:00:24.832420892 +0200 b/bin/Makefile 2024-04-11 07:59:56.052410291 +0200 +@@ -152,7 +152,7 @@ + $(INSTALLCMD) pplot $(BINDIR) + + blu: blu.o profil.o +- $(FC) -o blu blu.o profil.o ++ $(FC) -o blu blu.o profil.o $(FTNLIB) + $(INSTALLCMD) blu $(BINDIR) + diff --git a/sci-physics/xfoil/xfoil-6.99-r1.ebuild b/sci-physics/xfoil/xfoil-6.99-r1.ebuild index 23bffe5c71d6..9628062e61ee 100644 --- a/sci-physics/xfoil/xfoil-6.99-r1.ebuild +++ b/sci-physics/xfoil/xfoil-6.99-r1.ebuild @@ -20,7 +20,10 @@ IUSE="doc examples" RDEPEND="x11-libs/libX11" DEPEND="${RDEPEND}" -PATCHES=( "${FILESDIR}"/${P}-overflow.patch ) +PATCHES=( + "${FILESDIR}"/${P}-overflow.patch + "${FILESDIR}"/${P}-ldflags.patch +) src_prepare() { # fix bug #147033
[gentoo-commits] repo/gentoo:master commit in: sci-physics/xfoil/, sci-physics/xfoil/files/
commit: 3d656adb54ef2b718e3b14d720ff78ebae5af7d5 Author: Andrew Savchenko gentoo org> AuthorDate: Sun Mar 5 21:23:43 2017 + Commit: Andrew Savchenko gentoo org> CommitDate: Sun Mar 5 21:23:43 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d656adb sci-physics/xfoil: version bump Bug: 556688 Package-Manager: Portage-2.3.3, Repoman-2.3.1 Signed-off-by: Andrew Savchenko gentoo.org> sci-physics/xfoil/Manifest| 1 + sci-physics/xfoil/files/xfoil-6.99-overflow.patch | 11 sci-physics/xfoil/xfoil-6.99.ebuild | 76 +++ 3 files changed, 88 insertions(+) diff --git a/sci-physics/xfoil/Manifest b/sci-physics/xfoil/Manifest index 75de844ff4e..8d653871e2a 100644 --- a/sci-physics/xfoil/Manifest +++ b/sci-physics/xfoil/Manifest @@ -1,2 +1,3 @@ DIST dataflow.pdf 7654 SHA256 4596c77a3fa24cd334b35c34fcbd0b4f1d9055273c0862643e2d07b5e774aff5 SHA512 1bb5be8e70fca1fa90f28d214140e96a8795c7d82a37f4fe4d68606fa3eb28252913b8fb13eb3e97a3cf05c3001c88dbfcdb8a2f20d4baed5e730770a2d602b1 WHIRLPOOL 8e13137933ae0e8edc2890ccdd0537444d5fa9530e76caefb3701173c7720d2cb68d9073b70e7948a11ed6668dcd64b3685c750f5cef889c31d1506d3788a530 DIST xfoil6.97.tar.gz 3972497 SHA256 293e28e269bd88a62f8b6ba6bf684f16843f6776736e6b77aaa8b6bebc467a81 SHA512 02c0a123fb99fa20de1e3577ca7c6ce00d494058f2ef3ec82e3fdea48901f4346180aea3436e001c5b90401007ccdd5b7e9daa6a96794f0d6b5781a5b36e36e7 WHIRLPOOL 3de5e6c56a906a71b2be1fcf39ea031454c9192b4a649a23aaa889566fea2e92b37239fa6ed90c4b050bdb5759943d0265881f316ecd5b48a06fe4217af36ef7 +DIST xfoil6.99.tgz 4515991 SHA256 5c0250643f52ce0e75d7338ae2504ce7907f2d49a30f921826717b8ac12ebe40 SHA512 6f5bed520826dba2efd1b191b1f90dd810b53d9041cbbaddde09207ba9042f99dd0c9e9aa8b8cdf48767bf2695e328ac8fbd297e1510e53ac10b0f1eea35cfef WHIRLPOOL 88ca7c92fb1335f416577dc7df67e22581a32b56affb234f440b9523122429ad7ad37455e3270461909b0eb3d181013daa3db0e869086e218e2eaf5bf5f4e3ce diff --git a/sci-physics/xfoil/files/xfoil-6.99-overflow.patch b/sci-physics/xfoil/files/xfoil-6.99-overflow.patch new file mode 100644 index 000..d35528caa08 --- /dev/null +++ b/sci-physics/xfoil/files/xfoil-6.99-overflow.patch @@ -0,0 +1,11 @@ +--- Xfoil/src/xoper.f.orig 2013-12-08 22:21:22.0 +0400 Xfoil/src/xoper.f 2017-03-05 23:02:33.214895357 +0300 +@@ -114,7 +114,7 @@ + C don't try to read integers, since might get integer overflow + DO I=1, NINPUT + IF(ABS(RINPUT(I)) .GT. 2.1E9) THEN +- IINPUT(I) = 2**30 ++ IINPUT(I) = HUGE(0) + ELSE + IINPUT(I) = INT(RINPUT(I)) + ENDIF diff --git a/sci-physics/xfoil/xfoil-6.99.ebuild b/sci-physics/xfoil/xfoil-6.99.ebuild new file mode 100644 index 000..f50b8bace44 --- /dev/null +++ b/sci-physics/xfoil/xfoil-6.99.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit fortran-2 + +DESCRIPTION="Design and analysis of subsonic isolated airfoils" +HOMEPAGE="http://raphael.mit.edu/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 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RDEPEND="x11-libs/libX11" +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 ) + default + + sed \ + -e '/^FC/d' \ + -e '/^CC/d' \ + -e '/^FFLAGS/d' \ + -e '/^CFLAGS/d' \ + -e '/INSTALLCMD/d' \ + -e 's/^\(FFLOPT .*\)/FFLOPT = $(FFLAGS)/g' \ + -i {bin,plotlib,orrs/bin}/Makefile plotlib/config.make \ + || die "sed for flags and compilers failed" + + sed \ + -e "s:/var/local/codes/orrs/osmap.dat:${EPREFIX}/usr/share/xfoil/orrs/osmap.dat:" \ + -i orrs/src/osmap.f || die "sed osmap.f failed" +} + +src_compile() { + emake -C orrs/bin FLG="${FFLAGS}" FTNLIB="${LDFLAGS}" OS + pushd orrs >/dev/null || die + bin/osgen osmaps_ns.lst || die + popd >/dev/null || die + emake -C plotlib CFLAGS="${CFLAGS} -DUNDERSCORE" + + local i + for i in blu pplot pxplot xfoil; do + emake -C bin \ + PLTOBJ="../plotlib/libPlt_gSP.a" \ + CFLAGS="${CFLAGS} -DUNDERSCORE" \ + FTNLIB="${LDFLAGS}" \ + $i + done +} + +src_install() { + dobin bin/{blu,pplot,pxplot,xfoil} + insinto /usr/share/xfoil/orrs + doins orrs/osm*.dat + + local DOCS=( *.txt README ) + use doc && DOCS+=( "${DISTDIR}"/dataflow.pdf
[gentoo-commits] repo/gentoo:master commit in: sci-physics/xfoil/, sci-physics/xfoil/files/
commit: 0901cd7e3583035b2ec33cde89b4bdcd4c0bdb40 Author: Gerhard Bräunlich gmx net> AuthorDate: Sat Nov 12 15:44:25 2016 + Commit: David Seifert gentoo org> CommitDate: Sun Nov 13 21:48:30 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0901cd7e sci-physics/xfoil: EAPI bump 4 -> 6 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2826 Signed-off-by: David Seifert gentoo.org> sci-physics/xfoil/files/xfoil-6.96-gfortran.patch | 4 +- sci-physics/xfoil/files/xfoil-6.97-overflow.patch | 8 +-- sci-physics/xfoil/xfoil-6.97-r1.ebuild| 75 +++ 3 files changed, 81 insertions(+), 6 deletions(-) diff --git a/sci-physics/xfoil/files/xfoil-6.96-gfortran.patch b/sci-physics/xfoil/files/xfoil-6.96-gfortran.patch index 67fc19c..b63db05 100644 --- a/sci-physics/xfoil/files/xfoil-6.96-gfortran.patch +++ b/sci-physics/xfoil/files/xfoil-6.96-gfortran.patch @@ -1,5 +1,5 @@ plotlib/ps_subs.f.orig 2004-08-21 19:02:44.0 +0100 -+++ plotlib/ps_subs.f 2007-05-03 19:14:28.901490750 +0100 +--- a/plotlib/ps_subs.f b/plotlib/ps_subs.f @@ -559,7 +559,7 @@ c in the iout array (3,1,3,1,3,1,3,1) c Note: the bit mask is shifted to always start counting on a '1' bit. diff --git a/sci-physics/xfoil/files/xfoil-6.97-overflow.patch b/sci-physics/xfoil/files/xfoil-6.97-overflow.patch index 73656f9..6f71440 100644 --- a/sci-physics/xfoil/files/xfoil-6.97-overflow.patch +++ b/sci-physics/xfoil/files/xfoil-6.97-overflow.patch @@ -1,5 +1,5 @@ src/pplot.f.orig 2008-08-21 20:21:08.0 +0100 -+++ src/pplot.f2008-08-21 20:21:42.0 +0100 +--- a/src/pplot.f b/src/pplot.f @@ -36,7 +36,7 @@ PROGRAM PPLOT INCLUDE 'PPLOT.INC' @@ -9,8 +9,8 @@ REAL RINP(10) REAL CPOLO(NAX,IPTOT,NPX), VPOLO(NAX,2,NPX) C src/xoper.f.orig 2008-08-22 15:55:27.0 +0100 -+++ src/xoper.f2008-08-22 15:53:36.0 +0100 +--- a/src/xoper.f b/src/xoper.f @@ -114,7 +114,7 @@ C don't try to read integers, since might get integer overflow DO I=1, NINPUT diff --git a/sci-physics/xfoil/xfoil-6.97-r1.ebuild b/sci-physics/xfoil/xfoil-6.97-r1.ebuild new file mode 100644 index ..d835141 --- /dev/null +++ b/sci-physics/xfoil/xfoil-6.97-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit fortran-2 + +DESCRIPTION="Design and analysis of subsonic isolated airfoils" +HOMEPAGE="http://raphael.mit.edu/xfoil/; +SRC_URI=" + http://web.mit.edu/drela/Public/web/${PN}/${PN}${PV}.tar.gz + doc? ( http://web.mit.edu/drela/Public/web/${PN}/dataflow.pdf )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RDEPEND="x11-libs/libX11" +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 ) + default + + sed \ + -e '/^FC/d' \ + -e '/^CC/d' \ + -e '/^FFLAGS/d' \ + -e '/^CFLAGS/d' \ + -e 's/^\(FFLOPT .*\)/FFLOPT = $(FFLAGS)/g' \ + -i {bin,plotlib,orrs/bin}/Makefile plotlib/config.make \ + || die "sed for flags and compilers failed" + + sed \ + -e "s:/var/local/codes/orrs/osmap.dat:${EPREFIX}/usr/share/xfoil/orrs/osmap.dat:" \ + -i orrs/src/osmap.f || die "sed osmap.f failed" +} + +src_compile() { + emake -C orrs/bin FLG="${FFLAGS}" FTNLIB="${LDFLAGS}" OS + pushd orrs >/dev/null || die + bin/osgen osmaps_ns.lst + popd >/dev/null || die + emake -C plotlib CFLAGS="${CFLAGS} -DUNDERSCORE" + + local i + for i in xfoil pplot pxplot; do + emake -C bin \ + PLTOBJ="../plotlib/libPlt.a" \ + CFLAGS="${CFLAGS} -DUNDERSCORE" \ + FTNLIB="${LDFLAGS}" \ + $i + done +} + +src_install() { + dobin bin/{pplot,pxplot,xfoil} + insinto /usr/share/xfoil/orrs + doins orrs/osm*.dat + + local DOCS=( *.txt README ) + use doc && DOCS+=( "${DISTDIR}"/dataflow.pdf ) + einstalldocs + if use examples; then + dodoc -r runs + docompress -x /usr/share/doc/${PF}/runs + fi +}