summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2019-02-22 18:06:59 +0100
committerPatrice Clement <monsieurp@gentoo.org>2019-02-22 22:08:04 +0100
commitf3569f09a07b665a228959d14ad46b824b8f287f (patch)
tree21910288be4d394b7422f5e0a95d836cec061774 /dev-util/ftnchek
parentnet-ftp/proftpd: apply SIGHUP crash fix, bug #678490 (diff)
downloadgentoo-f3569f09a07b665a228959d14ad46b824b8f287f.tar.gz
gentoo-f3569f09a07b665a228959d14ad46b824b8f287f.tar.bz2
gentoo-f3569f09a07b665a228959d14ad46b824b8f287f.zip
dev-util/ftnchek: EAPI7, use https.
Closes: https://bugs.gentoo.org/632428 Closes: https://bugs.gentoo.org/678598 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/11142 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-util/ftnchek')
-rw-r--r--dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild b/dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild
new file mode 100644
index 00000000000..8543e828e99
--- /dev/null
+++ b/dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Static analyzer a la 'lint' for Fortran 77"
+HOMEPAGE="https://www.dsm.fordham.edu/~ftnchek/"
+SRC_URI="https://www.dsm.fordham.edu/~${PN}/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ mv dcl2inc.{man,1} || die
+
+ #1 Do not strip
+ #2 CFLAGS is used internally, so append to it
+ sed -i Makefile.in \
+ -e '/-$(STRIP)/d' \
+ -e 's|CFLAGS\([[:space:]]*\)=|CFLAGS\1+=|' \
+ || die "sed Makefile.in"
+
+ #1 Respect CFLAGS
+ #2 Respect LDFLAGS
+ sed -i configure.ac \
+ -e 's|OPT=".*"|OPT=""|g' \
+ -e '/^LDFLAGS=/d' \
+ || die "sed configure.ac"
+
+ eautoreconf
+}
+
+src_install() {
+ dobin ${PN} dcl2inc
+ doman ${PN}.1 dcl2inc.1
+ insinto /usr/share/${PN}
+ doins dcl2inc.awk
+ doins -r test
+ dodoc FAQ PATCHES README ToDo
+ docinto html
+ dodoc -r html/*
+}