Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libf2c: ChangeLog libf2c-20090407.ebuild libf2c-20021004-r1.ebuild
Date: Tue, 07 Apr 2009 12:16:46
Message-Id: E1LrAEO-00029a-D3@stork.gentoo.org
1 bicatali 09/04/07 12:16:44
2
3 Modified: ChangeLog
4 Added: libf2c-20090407.ebuild
5 Removed: libf2c-20021004-r1.ebuild
6 Log:
7 Version bump (bug #263725, thanks to jlec) and fixed for as-needed (bug #248350). Added a static use flag for static library building switch.
8 (Portage version: 2.2_rc28/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.32 dev-libs/libf2c/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libf2c/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libf2c/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libf2c/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 26 Nov 2008 16:43:36 -0000 1.31
24 +++ ChangeLog 7 Apr 2009 12:16:44 -0000 1.32
25 @@ -1,6 +1,16 @@
26 # ChangeLog for dev-libs/libf2c
27 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.31 2008/11/26 16:43:36 ranger Exp $
29 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.32 2009/04/07 12:16:44 bicatali Exp $
31 +
32 +*libf2c-20090407 (07 Apr 2009)
33 +
34 + 07 Apr 2009; Sébastien Fabbro <bicatali@g.o>
35 + -files/libf2c-20021004-shared-object.patch,
36 + files/20070912-link-shared-libf2c-correctly.patch,
37 + +files/20090407-link-shared-libf2c-correctly.patch,
38 + -libf2c-20021004-r1.ebuild, +libf2c-20090407.ebuild:
39 + Version bump (bug #263725, thanks to jlec) and fixed for as-needed (bug
40 + #248350). Added a static use flag for static library building switch.
41
42 26 Nov 2008; Brent Baude <ranger@g.o> libf2c-20070912.ebuild:
43 stable ppc64, bug 245830
44
45
46
47 1.1 dev-libs/libf2c/libf2c-20090407.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libf2c/libf2c-20090407.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libf2c/libf2c-20090407.ebuild?rev=1.1&content-type=text/plain
51
52 Index: libf2c-20090407.ebuild
53 ===================================================================
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/libf2c-20090407.ebuild,v 1.1 2009/04/07 12:16:44 bicatali Exp $
57
58 EAPI=2
59 inherit toolchain-funcs eutils
60
61 DESCRIPTION="Library that converts FORTRAN to C source."
62 HOMEPAGE="ftp://ftp.netlib.org/f2c/index.html"
63 # copy this one and rename it on the gentoo mirrors
64 #SRC_URI="ftp://ftp.netlib.org/f2c/${PN}.zip"
65 SRC_URI="mirror://gentoo/${P}.zip"
66
67 LICENSE="libf2c"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
70 IUSE="static"
71
72 RDEPEND=""
73 DEPEND="${RDEPEND}
74 app-arch/unzip"
75
76 S="${WORKDIR}/${PN}"
77
78 src_prepare() {
79 epatch "${FILESDIR}"/20051004-add-ofiles-dep.patch
80 epatch "${FILESDIR}"/${PV}-link-shared-libf2c-correctly.patch
81 }
82
83 src_compile() {
84 emake \
85 -f makefile.u \
86 libf2c.so \
87 CFLAGS="${CFLAGS} -fPIC" \
88 CC="$(tc-getCC)" \
89 || die "libf2c.so failed"
90
91 # Clean up files so we can recompile without PIC for the static lib
92 if use static; then
93 rm *.o || die "clean failed"
94 emake \
95 -f makefile.u \
96 all \
97 CFLAGS="${CFLAGS}" \
98 CC="$(tc-getCC)" \
99 || die "all failed"
100 fi
101 }
102
103 src_install () {
104 dolib libf2c.so.2 || die "dolib failed"
105 dosym libf2c.so.2 /usr/$(get_libdir)/libf2c.so
106 if use static; then
107 dolib.a libf2c.a || die "dolib.a failed"
108 fi
109 insinto /usr/include
110 doins f2c.h || die "f2c.h install failed"
111 dodoc README Notice || die "doc install failed"
112 }