Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libf2c: ChangeLog libf2c-20110801-r4.ebuild
Date: Mon, 02 Feb 2015 08:28:57
Message-Id: 20150202082851.D1F3A10E1C@oystercatcher.gentoo.org
1 jlec 15/02/02 08:28:51
2
3 Modified: ChangeLog
4 Added: libf2c-20110801-r4.ebuild
5 Log:
6 dev-libs/libf2c: Add patch for format-security, #538342; thanks Ted Tanberry for the patch
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.63 dev-libs/libf2c/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 3 Feb 2014 09:34:00 -0000 1.62
24 +++ ChangeLog 2 Feb 2015 08:28:51 -0000 1.63
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/libf2c
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.62 2014/02/03 09:34:00 jlec Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.63 2015/02/02 08:28:51 jlec Exp $
31 +
32 +*libf2c-20110801-r4 (02 Feb 2015)
33 +
34 + 02 Feb 2015; Justin Lecher <jlec@g.o> +libf2c-20110801-r4.ebuild,
35 + +files/libf2c-20110801-format-security.patch:
36 + Add patch for format-security, #538342; thanks Ted Tanberry for the patch
37
38 03 Feb 2014; Justin Lecher <jlec@g.o>
39 -files/20070912-link-shared-libf2c-correctly.patch,
40
41
42
43 1.1 dev-libs/libf2c/libf2c-20110801-r4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/libf2c-20110801-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libf2c/libf2c-20110801-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libf2c-20110801-r4.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/libf2c-20110801-r4.ebuild,v 1.1 2015/02/02 08:28:51 jlec Exp $
53
54 EAPI=5
55
56 inherit eutils multilib toolchain-funcs
57
58 DESCRIPTION="Library that converts FORTRAN to C source"
59 HOMEPAGE="http://www.netlib.org/f2c/"
60 SRC_URI="${HOMEPAGE}/${PN}.zip -> ${P}.zip"
61
62 LICENSE="HPND"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
65 IUSE="static-libs"
66
67 RDEPEND=""
68 DEPEND="${RDEPEND}
69 app-arch/unzip"
70
71 S="${WORKDIR}"
72
73 src_prepare() {
74 epatch \
75 "${FILESDIR}"/20051004-add-ofiles-dep.patch \
76 "${FILESDIR}"/20090407-link-shared-libf2c-correctly.patch \
77 "${FILESDIR}"/${P}-main.patch\
78 "${FILESDIR}"/${P}-64bit-long.patch \
79 "${FILESDIR}"/${P}-format-security.patch
80 sed -i -e "s/ld /$(tc-getLD) /" makefile.u || die
81 }
82
83 src_compile() {
84 emake \
85 -f makefile.u \
86 libf2c.so \
87 CFLAGS="${CFLAGS} -fPIC" \
88 CC="$(tc-getCC)"
89
90 # Clean up files so we can recompile without PIC for the static lib
91 if use static-libs; then
92 rm *.o || die "clean failed"
93 emake \
94 -f makefile.u \
95 all \
96 CFLAGS="${CFLAGS}" \
97 CC="$(tc-getCC)"
98 fi
99 }
100
101 src_install () {
102 dolib libf2c.so.2
103 dosym libf2c.so.2 /usr/$(get_libdir)/libf2c.so
104 use static-libs && dolib.a libf2c.a
105 doheader f2c.h
106 dodoc README Notice
107 }