1 |
commit: f3569f09a07b665a228959d14ad46b824b8f287f |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 22 17:06:59 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 22 21:08:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3569f09 |
7 |
|
8 |
dev-util/ftnchek: EAPI7, use https. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/632428 |
11 |
Closes: https://bugs.gentoo.org/678598 |
12 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/11142 |
14 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
15 |
|
16 |
dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild | 47 ++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 47 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild b/dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..8543e828e99 |
22 |
--- /dev/null |
23 |
+++ b/dev-util/ftnchek/ftnchek-3.3.1-r2.ebuild |
24 |
@@ -0,0 +1,47 @@ |
25 |
+# Copyright 1999-2019 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit autotools |
31 |
+ |
32 |
+DESCRIPTION="Static analyzer a la 'lint' for Fortran 77" |
33 |
+HOMEPAGE="https://www.dsm.fordham.edu/~ftnchek/" |
34 |
+SRC_URI="https://www.dsm.fordham.edu/~${PN}/download/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="MIT" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~ppc ~x86" |
39 |
+ |
40 |
+src_prepare() { |
41 |
+ default |
42 |
+ mv configure.{in,ac} || die |
43 |
+ mv dcl2inc.{man,1} || die |
44 |
+ |
45 |
+ #1 Do not strip |
46 |
+ #2 CFLAGS is used internally, so append to it |
47 |
+ sed -i Makefile.in \ |
48 |
+ -e '/-$(STRIP)/d' \ |
49 |
+ -e 's|CFLAGS\([[:space:]]*\)=|CFLAGS\1+=|' \ |
50 |
+ || die "sed Makefile.in" |
51 |
+ |
52 |
+ #1 Respect CFLAGS |
53 |
+ #2 Respect LDFLAGS |
54 |
+ sed -i configure.ac \ |
55 |
+ -e 's|OPT=".*"|OPT=""|g' \ |
56 |
+ -e '/^LDFLAGS=/d' \ |
57 |
+ || die "sed configure.ac" |
58 |
+ |
59 |
+ eautoreconf |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ dobin ${PN} dcl2inc |
64 |
+ doman ${PN}.1 dcl2inc.1 |
65 |
+ insinto /usr/share/${PN} |
66 |
+ doins dcl2inc.awk |
67 |
+ doins -r test |
68 |
+ dodoc FAQ PATCHES README ToDo |
69 |
+ docinto html |
70 |
+ dodoc -r html/* |
71 |
+} |