summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2006-05-14 05:41:27 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2006-05-14 05:41:27 +0000
commit9b6668a898854c852c0390f698810aee9bf1ba92 (patch)
treec98b37d1e6e27e8e10c445a140132e0ce619e6cc /dev-libs/libf2c
parentVersion bump, #133240. Remove old vulnerable versions. (diff)
downloadgentoo-2-9b6668a898854c852c0390f698810aee9bf1ba92.tar.gz
gentoo-2-9b6668a898854c852c0390f698810aee9bf1ba92.tar.bz2
gentoo-2-9b6668a898854c852c0390f698810aee9bf1ba92.zip
Bump. Changes: Work correctly when writing to a file after reading from it; Add libf2c.so makefile rule; Stop forcing the rounding precision on x86 (only affects use of 'f2c -trapuv'). Also, mirror a versioned zip file instead of the unversioned upstream one.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'dev-libs/libf2c')
-rw-r--r--dev-libs/libf2c/ChangeLog13
-rw-r--r--dev-libs/libf2c/files/20051004-add-ofiles-dep.patch14
-rw-r--r--dev-libs/libf2c/files/digest-libf2c-20021004-r12
-rw-r--r--dev-libs/libf2c/files/digest-libf2c-200510043
-rw-r--r--dev-libs/libf2c/libf2c-20051004.ebuild52
5 files changed, 82 insertions, 2 deletions
diff --git a/dev-libs/libf2c/ChangeLog b/dev-libs/libf2c/ChangeLog
index 470a41f0411b..009e94cdca86 100644
--- a/dev-libs/libf2c/ChangeLog
+++ b/dev-libs/libf2c/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-libs/libf2c
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.19 2005/09/10 11:42:52 agriffis Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.20 2006/05/14 05:41:27 spyderous Exp $
+
+*libf2c-20051004 (14 May 2006)
+
+ 14 May 2006; Donnie Berkholz <spyderous@gentoo.org>;
+ +files/20051004-add-ofiles-dep.patch, +libf2c-20051004.ebuild:
+ Bump. Changes: Work correctly when writing to a file after reading from it;
+ Add libf2c.so makefile rule; Stop forcing the rounding precision on x86
+ (only affects use of 'f2c -trapuv'). Also, mirror a versioned zip file
+ instead of the unversioned upstream one.
10 Sep 2005; Aron Griffis <agriffis@gentoo.org> libf2c-20021004-r1.ebuild:
Mark 20021004-r1 stable on alpha
diff --git a/dev-libs/libf2c/files/20051004-add-ofiles-dep.patch b/dev-libs/libf2c/files/20051004-add-ofiles-dep.patch
new file mode 100644
index 000000000000..509726820ae5
--- /dev/null
+++ b/dev-libs/libf2c/files/20051004-add-ofiles-dep.patch
@@ -0,0 +1,14 @@
+diff -urN libf2c.orig/makefile.u libf2c/makefile.u
+--- libf2c.orig/makefile.u 2006-05-13 15:41:29.000000000 -0700
++++ libf2c/makefile.u 2006-05-13 15:42:04.000000000 -0700
+@@ -69,7 +69,9 @@
+ OFILES = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \
+ $(HALF) $(CMP) $(EFL) $(CHAR) $(I77) $(TIME)
+
+-all: f2c.h signal1.h sysdep1.h libf2c.a
++all: libf2c.a
++
++$(OFILES): f2c.h signal1.h sysdep1.h
+
+ libf2c.a: $(OFILES)
+ ar r libf2c.a $?
diff --git a/dev-libs/libf2c/files/digest-libf2c-20021004-r1 b/dev-libs/libf2c/files/digest-libf2c-20021004-r1
index ff8b0164d2d2..ccc7f9109c70 100644
--- a/dev-libs/libf2c/files/digest-libf2c-20021004-r1
+++ b/dev-libs/libf2c/files/digest-libf2c-20021004-r1
@@ -1 +1,3 @@
MD5 64b87b3804fad207aa476894e00cd496 libf2c.zip 123393
+RMD160 8407a1e801a136fd3388cbc71aab6c8b578100c7 libf2c.zip 123393
+SHA256 0a23ed0d677711c0e2691fc45422cfeaab08258c367fdd04854d4067d3058c06 libf2c.zip 123393
diff --git a/dev-libs/libf2c/files/digest-libf2c-20051004 b/dev-libs/libf2c/files/digest-libf2c-20051004
new file mode 100644
index 000000000000..df6b90cbcf3e
--- /dev/null
+++ b/dev-libs/libf2c/files/digest-libf2c-20051004
@@ -0,0 +1,3 @@
+MD5 b9ee5e6e0a2aabd2e9f3df718ecdfbec libf2c-20051004.zip 124001
+RMD160 767567f0f0b487e3d2248bea7ba5918f45e6afc4 libf2c-20051004.zip 124001
+SHA256 0fc76f3b482273aae0ad084121f44cadff66502c03adce4cbf926f6222ace1f8 libf2c-20051004.zip 124001
diff --git a/dev-libs/libf2c/libf2c-20051004.ebuild b/dev-libs/libf2c/libf2c-20051004.ebuild
new file mode 100644
index 000000000000..a67a079a7e7d
--- /dev/null
+++ b/dev-libs/libf2c/libf2c-20051004.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/libf2c-20051004.ebuild,v 1.1 2006/05/14 05:41:27 spyderous Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Library that converts FORTRAN to C source."
+HOMEPAGE="ftp://ftp.netlib.org/f2c/index.html"
+#SRC_URI="ftp://ftp.netlib.org/f2c/${PN}.zip"
+SRC_URI="mirror://gentoo/${P}.zip"
+
+LICENSE="libf2c"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/libc
+ app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PV}-add-ofiles-dep.patch
+}
+
+src_compile() {
+ emake \
+ -f makefile.u \
+ all \
+ CFLAGS="${CFLAGS}" \
+ CC="$(tc-getCC)" \
+ || die "all failed"
+
+ # Clean up files so we can recompile PIC for the shared lib
+ rm *.o || die "clean failed"
+
+ emake \
+ -f makefile.u \
+ libf2c.so \
+ CFLAGS="${CFLAGS} -fPIC" \
+ CC="$(tc-getCC)" \
+ || die "libf2c.so failed"
+}
+
+src_install () {
+ dolib.a libf2c.a || die "dolib.a failed"
+ dolib libf2c.so || die "dolib failed"
+ insinto /usr/include
+ doins f2c.h || die "f2c.h install failed"
+ dodoc README Notice || die "doc install failed"
+}