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