Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/f2c/, dev-lang/f2c/files/
Date: Sat, 07 Sep 2019 11:56:35
Message-Id: 1567857358.1e69d70fdc5e3588b243fa6701512f61d387daec.soap@gentoo
1 commit: 1e69d70fdc5e3588b243fa6701512f61d387daec
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 7 11:55:58 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 7 11:55:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e69d70f
7
8 dev-lang/f2c: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.75, Repoman-2.3.17
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 dev-lang/f2c/f2c-20100827-r1.ebuild | 53 ++++++++++++++++++++++
14 ...c-20100827-Wimplicit-function-declaration.patch | 10 ++++
15 .../f2c/files/f2c-20100827-fix-buildsystem.patch | 28 ++++++++++++
16 3 files changed, 91 insertions(+)
17
18 diff --git a/dev-lang/f2c/f2c-20100827-r1.ebuild b/dev-lang/f2c/f2c-20100827-r1.ebuild
19 new file mode 100644
20 index 00000000000..dd624e40d48
21 --- /dev/null
22 +++ b/dev-lang/f2c/f2c-20100827-r1.ebuild
23 @@ -0,0 +1,53 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit toolchain-funcs
30 +
31 +DEB_PV=20100827
32 +DEB_PR=1
33 +DEB_P=${PN}_${DEB_PV}
34 +
35 +DESCRIPTION="Fortran to C converter"
36 +HOMEPAGE="http://www.netlib.org/f2c"
37 +SRC_URI="
38 + mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.orig.tar.gz
39 + mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}-${DEB_PR}.debian.tar.gz"
40 +
41 +LICENSE="HPND"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
44 +
45 +RDEPEND=">=dev-libs/libf2c-20130927-r1"
46 +
47 +S="${WORKDIR}/${PN}"
48 +
49 +PATCHES=(
50 + # selective list of patches from debian
51 + "${WORKDIR}"/debian/patches/0000-prequilt-tweaks.patch
52 + "${WORKDIR}"/debian/patches/0002-prototype-rmdir.patch
53 + "${WORKDIR}"/debian/patches/0003-struct-init-braces.patch
54 + "${WORKDIR}"/debian/patches/0004-man-dash-hyphen-slash.patch
55 +
56 + "${FILESDIR}"/${PN}-20100827-fix-buildsystem.patch
57 + "${FILESDIR}"/${PN}-20100827-Wimplicit-function-declaration.patch
58 +)
59 +
60 +src_configure() {
61 + tc-export CC
62 +}
63 +
64 +src_compile() {
65 + emake -C src -f makefile.u f2c
66 +}
67 +
68 +src_install() {
69 + dobin src/f2c
70 +
71 + doman f2c.1
72 + dodoc src/README src/Notice
73 +
74 + dodoc f2c.pdf
75 + newdoc "${WORKDIR}"/debian/changelog debian.changelog
76 +}
77
78 diff --git a/dev-lang/f2c/files/f2c-20100827-Wimplicit-function-declaration.patch b/dev-lang/f2c/files/f2c-20100827-Wimplicit-function-declaration.patch
79 new file mode 100644
80 index 00000000000..901bcd50706
81 --- /dev/null
82 +++ b/dev-lang/f2c/files/f2c-20100827-Wimplicit-function-declaration.patch
83 @@ -0,0 +1,10 @@
84 +--- a/src/sysdeptest.c
85 ++++ b/src/sysdeptest.c
86 +@@ -2,6 +2,7 @@
87 + /* presence of mkdtemp and mkstemp by whether this links without error. */
88 +
89 + #include <stdio.h>
90 ++#include <stdlib.h>
91 + #include <unistd.h>
92 +
93 + int
94
95 diff --git a/dev-lang/f2c/files/f2c-20100827-fix-buildsystem.patch b/dev-lang/f2c/files/f2c-20100827-fix-buildsystem.patch
96 new file mode 100644
97 index 00000000000..56fbb869fc2
98 --- /dev/null
99 +++ b/dev-lang/f2c/files/f2c-20100827-fix-buildsystem.patch
100 @@ -0,0 +1,28 @@
101 +--- a/src/makefile.u
102 ++++ b/src/makefile.u
103 +@@ -1,15 +1,10 @@
104 + # Makefile for f2c, a Fortran 77 to C converter
105 +
106 + .SUFFIXES: .c .o
107 +-CC = cc
108 +-CFLAGS = -O
109 + SHELL = /bin/sh
110 + YACC = yacc
111 + YFLAGS =
112 +
113 +-.c.o:
114 +- $(CC) -c $(CFLAGS) $*.c
115 +-
116 + OBJECTSd = main.o init.o gram.o lex.o proc.o equiv.o data.o format.o \
117 + expr.o exec.o intr.o io.o misc.o error.o mem.o names.o \
118 + output.o p1output.o pread.o put.o putpcc.o vax.o formatdata.o \
119 +@@ -100,9 +95,6 @@
120 + parse.h parse_args.c pccdefs.h pread.c proc.c put.c putpcc.c \
121 + sysdep.c sysdep.h sysdeptest.c tokens usignal.h vax.c version.c xsum.c
122 +
123 +-xsum: xsum.c
124 +- $(CC) $(CFLAGS) -o xsum xsum.c
125 +-
126 + #Check validity of transmitted source...
127 + xsum.out: xsum $b
128 + ./xsum $b >xsum1.out