aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-05-11 14:01:56 +0200
committerJustin Lecher <jlec@gentoo.org>2010-05-11 14:01:56 +0200
commit4e94db74e4c463837e4af01f26e29ee82c316097 (patch)
tree94b46dabba48627d28d96427f45814f738de0e0d /dev-libs
parentNew Addition (diff)
downloadsci-4e94db74e4c463837e4af01f26e29ee82c316097.tar.gz
sci-4e94db74e4c463837e4af01f26e29ee82c316097.tar.bz2
sci-4e94db74e4c463837e4af01f26e29ee82c316097.zip
libf2c added temporarly
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libf2c/ChangeLog138
-rw-r--r--dev-libs/libf2c/Manifest20
-rw-r--r--dev-libs/libf2c/files/20051004-add-ofiles-dep.patch14
-rw-r--r--dev-libs/libf2c/files/20070912-link-shared-libf2c-correctly.patch11
-rw-r--r--dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch11
-rw-r--r--dev-libs/libf2c/files/20090407-main.patch15
-rw-r--r--dev-libs/libf2c/libf2c-20070912.ebuild56
-rw-r--r--dev-libs/libf2c/libf2c-20090407-r1.ebuild60
-rw-r--r--dev-libs/libf2c/metadata.xml5
9 files changed, 330 insertions, 0 deletions
diff --git a/dev-libs/libf2c/ChangeLog b/dev-libs/libf2c/ChangeLog
new file mode 100644
index 000000000..763f807f5
--- /dev/null
+++ b/dev-libs/libf2c/ChangeLog
@@ -0,0 +1,138 @@
+# ChangeLog for dev-libs/libf2c
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.36 2010/05/11 10:58:13 jlec Exp $
+
+ 11 May 2010; Justin Lecher <jlec@gentoo.org> libf2c-20090407-r1.ebuild:
+ Keyworded for ~amd64-linux ~x86-linux
+
+*libf2c-20090407-r1 (07 May 2010)
+
+ 07 May 2010; Justin Lecher <jlec@gentoo.org>
+ files/20090407-link-shared-libf2c-correctly.patch,
+ -libf2c-20090407.ebuild, +files/20090407-main.patch,
+ +libf2c-20090407-r1.ebuild:
+ Fixed undefined symbols
+
+ 31 Mar 2010; Justin Lecher <jlec@gentoo.org> libf2c-20090407.ebuild:
+ USE static -> statis-libs, #312465
+
+ 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> libf2c-20070912.ebuild:
+ Remove virtual/libc
+
+*libf2c-20090407 (07 Apr 2009)
+
+ 07 Apr 2009; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/libf2c-20021004-shared-object.patch,
+ files/20070912-link-shared-libf2c-correctly.patch,
+ +files/20090407-link-shared-libf2c-correctly.patch,
+ -libf2c-20021004-r1.ebuild, +libf2c-20090407.ebuild:
+ Version bump (bug #263725, thanks to jlec) and fixed for as-needed (bug
+ #248350). Added a static use flag for static library building switch.
+
+ 26 Nov 2008; Brent Baude <ranger@gentoo.org> libf2c-20070912.ebuild:
+ stable ppc64, bug 245830
+
+ 14 Nov 2008; Raúl Porcel <armin76@gentoo.org> libf2c-20070912.ebuild:
+ alpha/sparc stable wrt #245830
+
+ 08 Nov 2008; Markus Meier <maekke@gentoo.org> libf2c-20070912.ebuild:
+ amd64/x86 stable, bug #245830
+
+ 08 Nov 2008; nixnut <nixnut@gentoo.org> libf2c-20070912.ebuild:
+ Stable on ppc wrt bug 245830
+
+ 06 Nov 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ files/20070912-link-shared-libf2c-correctly.patch, libf2c-20070912.ebuild:
+ Really including soname into shared library
+
+ 08 Jul 2008; Donnie Berkholz <dberkholz@gentoo.org>;
+ libf2c-20070912.ebuild:
+ Explicitly specify RDEPEND so unzip doesn't get sucked into it (Sébastien
+ Fabbro).
+
+ 08 Jul 2008; Donnie Berkholz <dberkholz@gentoo.org>;
+ libf2c-20070912.ebuild:
+ Fix minor syntax errors.
+
+*libf2c-20070912 (08 Jul 2008)
+
+ 08 Jul 2008; Donnie Berkholz <dberkholz@gentoo.org>;
+ +files/20070912-link-shared-libf2c-correctly.patch,
+ +libf2c-20070912.ebuild:
+ Bump to latest upstream code. (#164397) Provide SONAME in libf2c.so. Also
+ links libf2c with libm so we don't get any undefined symbols.
+
+ 25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
+ Removing kugelfang from metadata.xml as per #46972.
+
+ 23 Aug 2007; Roy Marples <uberlord@gentoo.org> libf2c-20051004.ebuild:
+ Keyworded ~x86-fbsd.
+
+ 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
+ Transition to Manifest2.
+
+*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
+
+ 15 May 2005; Danny van Dyk <kugelfang@gentoo.org>
+ libf2c-20021004-r1.ebuild:
+ Inherits toolchain-funcs now instead of deprecated gcc eclass.
+
+ 05 May 2005; Danny van Dyk <kugelfang@gentoo.org>
+ libf2c-20021004-r1.ebuild, -libf2c-20021004.ebuild:
+ Removed libf2c-20021004. Fixed DEPEND in -r1, (thx to Jeremy Warren).
+
+ 17 Feb 2005; Bryan Østergaard <kloeri@gentoo.org>
+ libf2c-20021004-r1.ebuild:
+ ~alpha keyword.
+
+ 10 Jan 2005; Markus Rothe <corsair@gentoo.org> libf2c-20021004-r1.ebuild:
+ Stable on ppc64
+
+ 09 Sep 2004; Philippe Trottier <tchiwam@gentoo.org> libf2c-20021004-r1.ebuild:
+ Marked ~ppc64
+
+ 06 Aug 2004; Ferris McCormick <fmccor@gentoo.org> libf2c-20021004-r1.ebuild:
+ Stable for sparc (part of bug 55386).
+
+ 06 Aug 2004; Danny van Dyk <kugelfang@gentoo.org> libf2c-20021004-r1.ebuild:
+ Marked stable on amd64, ppc and x86.
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ libf2c-20021004-r1.ebuild, libf2c-20021004.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 01 Jul 2004; Danny van Dyk <kugelfang@gentoo.org> libf2c-20021004-r1.ebuild:
+ Marked ~sparc on behalf of ciaranm.
+
+ 01 Jul 2004; David Holm <dholm@gentoo.org> libf2c-20021004-r1.ebuild:
+ Added to ~ppc.
+
+*libf2c-20021004-r1 (01 Jul 2004)
+
+ 01 Jul 2004; Danny van Dyk <kugelfang@gentoo.org>
+ +files/libf2c-20021004-shared-object.patch, +libf2c-20021004-r1.ebuild:
+ Patched the makefile.u to produce a shared object with -fPIC. (see BUG #55386)
+
+ 07 Apr 2004; Travis Tilley <lv@gentoo.org> libf2c-20021004.ebuild:
+ added ~amd64 to keywords
+
+ 07 Jul 2003; Michael Sterrett <msterret@gentoo.org> libf2c-20021004.ebuild:
+ more error checking
+
+ 02 Nov 2002; Hannes Mehnert <hannes@gentoo.org> libf2c-20021004.ebuild:
+ marked stable for x86
+
+*libf2c-20021004 (28 Oct 2002)
+
+ 28 Oct 2002; Hannes Mehnert <hannes@gentoo.org> libf2c-20021004.ebuild,
+ ChangeLog: Initial ebuild. Thanks to a-tenderholt@northwestern.edu.
diff --git a/dev-libs/libf2c/Manifest b/dev-libs/libf2c/Manifest
new file mode 100644
index 000000000..62beae2f6
--- /dev/null
+++ b/dev-libs/libf2c/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 20051004-add-ofiles-dep.patch 439 RMD160 c4ca7645c0df795c8cc9be31cb6e9704a9b6285a SHA1 4453a9f1e4d59e87cd4a1a0ef1bc780bca6917d0 SHA256 3f688297b45515c1e386bb7f94ad36bf0f6a3497a0baff759b54d943cbec7d8f
+AUX 20070912-link-shared-libf2c-correctly.patch 356 RMD160 e979e8870e063f2f5b6764b0c199a13e940f2c64 SHA1 f8192db58e9c66984c77da74db4b07b6913d9023 SHA256 23e36c6802d29bdec559b59fbd9713f21a28896307647149601a99767c4c58db
+AUX 20090407-link-shared-libf2c-correctly.patch 358 RMD160 a0836cce704351571c0abaf95022091042f7f50d SHA1 cced6bdb9ca5cf1d2f2fcc4dd1be80f2f070285b SHA256 28e04d4fe1279ad37fba92f1fc9acb3110778a02f4c15da6b659b04baa3d2df0
+AUX 20090407-main.patch 242 RMD160 e177c559022f00c4cc7af71e2b10f059e2ef3bd8 SHA1 2e322d3b129da68d5d118e1584da38f03ef60a90 SHA256 66e666adbcc5362b8cc31776932ef3e572811a1dff8700cac8a73cfba482c832
+DIST libf2c-20070912.zip 128622 RMD160 bc2da3c0a61583cca238995c43871cf2221aa404 SHA1 d84e692cc295adb45a80ae888db920b582fa49d6 SHA256 9403da6e0ea3f20012f351ff1525efd7fc0d696b82ab7219f711f21e73d09ec0
+DIST libf2c-20090407.zip 128822 RMD160 090023bc8cb548d1f1ed9684d22e30c01293a4d5 SHA1 786a282571ffb9ade10e63ceff80ca33d452c821 SHA256 5b3503d1560f0f12649baa94ad5ce8ff7e363ca3507c10bfc4afc8cfdb07fe92
+EBUILD libf2c-20070912.ebuild 1397 RMD160 5b1ee8bdf78a2bd1814cf61838e0f8d2d7d6e2c7 SHA1 2a70ccf171b9b3541ffd2447b1cb0e29403a2dc8 SHA256 aa0ae1682adbeafb0e99e521e3ee540041763e3af7ed9ce69316344d75ec4f87
+EBUILD libf2c-20090407-r1.ebuild 1542 RMD160 c29066ab3c19798fa81e730e35f8eec2189edaa5 SHA1 dbe7c991ca372a8371839cb963a66d0de5d8126b SHA256 6ddbe502758f1a35a79c0e2d262c12495ca9933491b72e7869ad60c86c3cf374
+MISC ChangeLog 5156 RMD160 1a9563018e172a25cf5a39258e11f6e21cd6cca1 SHA1 936cc2eddc0c2578b3faa64b413e1cc921e753cd SHA256 28ac93776c67c367c07ce5bf2b59657842669d2509bd31690b7be187f7c0077b
+MISC metadata.xml 157 RMD160 ed43b99e7bf8bbf62cf4e46152138ab42d3a88c5 SHA1 2182a6de0b10959aad51af2990f1a6c69e34dd97 SHA256 750cb9e46ac2b77e1adf73de43c186a8c2d2234a9c6a89d9358d0969dc5cf8ac
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAkvpOEoACgkQgAnW8HDreRZa8ACfReR7yLq0UrmPmVdNjz7E6CHM
+iCcAn1HN1nkhaA9Qn28d5DVXfDxWw1Zx
+=rh8I
+-----END PGP SIGNATURE-----
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 000000000..509726820
--- /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/20070912-link-shared-libf2c-correctly.patch b/dev-libs/libf2c/files/20070912-link-shared-libf2c-correctly.patch
new file mode 100644
index 000000000..261b76eb6
--- /dev/null
+++ b/dev-libs/libf2c/files/20070912-link-shared-libf2c-correctly.patch
@@ -0,0 +1,11 @@
+--- makefile.u.orig 2008-07-07 23:27:41.000000000 -0700
++++ makefile.u 2008-07-07 23:28:39.000000000 -0700
+@@ -82,7 +82,7 @@
+ ## of "cc -shared".
+
+ libf2c.so: $(OFILES)
+- cc -shared -o libf2c.so $(OFILES)
++ $(CC) -shared $(LDFLAGS) -Wl,-soname,libf2c.so.2 -lm $(OFILES) -o libf2c.so.2
+
+ ### If your system lacks ranlib, you don't need it; see README.
+
diff --git a/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch b/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch
new file mode 100644
index 000000000..d35e60bed
--- /dev/null
+++ b/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch
@@ -0,0 +1,11 @@
+--- makefile.u.orig 2008-07-07 23:27:41.000000000 -0700
++++ makefile.u 2008-07-07 23:28:39.000000000 -0700
+@@ -82,7 +82,7 @@
+ ## of "cc -shared".
+
+ libf2c.so: $(OFILES)
+- $(CC) -shared -o libf2c.so $(OFILES)
++ $(CC) -shared $(LDFLAGS) -Wl,-soname,libf2c.so.2 $(OFILES) -o libf2c.so.2 -lm
+
+ ### If your system lacks ranlib, you don't need it; see README.
+
diff --git a/dev-libs/libf2c/files/20090407-main.patch b/dev-libs/libf2c/files/20090407-main.patch
new file mode 100644
index 000000000..5e16b9f2f
--- /dev/null
+++ b/dev-libs/libf2c/files/20090407-main.patch
@@ -0,0 +1,15 @@
+diff --git a/main.c b/main.c
+index d95fdc9..cf15b7d 100644
+--- a/main.c
++++ b/main.c
+@@ -135,7 +135,9 @@ f_init();
+ #ifndef NO_ONEXIT
+ ONEXIT(f_exit);
+ #endif
+-MAIN__();
++int MAIN__( )
++ { return(0);
++}
+ #ifdef NO_ONEXIT
+ f_exit();
+ #endif
diff --git a/dev-libs/libf2c/libf2c-20070912.ebuild b/dev-libs/libf2c/libf2c-20070912.ebuild
new file mode 100644
index 000000000..4a743da3a
--- /dev/null
+++ b/dev-libs/libf2c/libf2c-20070912.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/libf2c-20070912.ebuild,v 1.10 2009/09/23 17:22:32 patrick 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="http://dev.gentoo.org/~dberkholz/distfiles/${P}.zip
+ mirror://gentoo/${P}.zip"
+
+LICENSE="libf2c"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/20051004-add-ofiles-dep.patch
+ epatch "${FILESDIR}"/20070912-link-shared-libf2c-correctly.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.2 || die "dolib failed"
+ dosym libf2c.so.2 /usr/$(get_libdir)/libf2c.so
+ insinto /usr/include
+ doins f2c.h || die "f2c.h install failed"
+ dodoc README Notice || die "doc install failed"
+}
diff --git a/dev-libs/libf2c/libf2c-20090407-r1.ebuild b/dev-libs/libf2c/libf2c-20090407-r1.ebuild
new file mode 100644
index 000000000..644be4335
--- /dev/null
+++ b/dev-libs/libf2c/libf2c-20090407-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/libf2c-20090407-r1.ebuild,v 1.2 2010/05/11 10:58:13 jlec Exp $
+
+EAPI=2
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Library that converts FORTRAN to C source."
+HOMEPAGE="ftp://ftp.netlib.org/f2c/index.html"
+# copy this one and rename it on the gentoo mirrors
+#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 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/20051004-add-ofiles-dep.patch
+ epatch "${FILESDIR}"/${PV}-link-shared-libf2c-correctly.patch
+ epatch "${FILESDIR}"/${PV}-main.patch
+}
+
+src_compile() {
+ emake \
+ -f makefile.u \
+ libf2c.so \
+ CFLAGS="${CFLAGS} -fPIC" \
+ CC="$(tc-getCC)" \
+ || die "libf2c.so failed"
+
+ # Clean up files so we can recompile without PIC for the static lib
+ if use static-libs; then
+ rm *.o || die "clean failed"
+ emake \
+ -f makefile.u \
+ all \
+ CFLAGS="${CFLAGS}" \
+ CC="$(tc-getCC)" \
+ || die "all failed"
+ fi
+}
+
+src_install () {
+ dolib libf2c.so.2 || die "dolib failed"
+ dosym libf2c.so.2 /usr/$(get_libdir)/libf2c.so
+ if use static-libs; then
+ dolib.a libf2c.a || die "dolib.a failed"
+ fi
+ insinto /usr/include
+ doins f2c.h || die "f2c.h install failed"
+ dodoc README Notice || die "doc install failed"
+}
diff --git a/dev-libs/libf2c/metadata.xml b/dev-libs/libf2c/metadata.xml
new file mode 100644
index 000000000..d369d068f
--- /dev/null
+++ b/dev-libs/libf2c/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+</pkgmetadata>