summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-06-19 23:11:55 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-06-19 23:11:55 +0000
commit5f742cfb3e05fc7d5264cd34046aa2c4d16d96c6 (patch)
tree570c0351a162cbd895cde8f45e0515c1397e8922 /dev-libs
parentStable for HPPA (bug #421489). (diff)
downloadgentoo-2-5f742cfb3e05fc7d5264cd34046aa2c4d16d96c6.tar.gz
gentoo-2-5f742cfb3e05fc7d5264cd34046aa2c4d16d96c6.tar.bz2
gentoo-2-5f742cfb3e05fc7d5264cd34046aa2c4d16d96c6.zip
Version bump. Switch to EAPI4, use tc-getLD and added longdescription
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libf2c/ChangeLog8
-rw-r--r--dev-libs/libf2c/libf2c-20110801.ebuild56
-rw-r--r--dev-libs/libf2c/metadata.xml6
3 files changed, 68 insertions, 2 deletions
diff --git a/dev-libs/libf2c/ChangeLog b/dev-libs/libf2c/ChangeLog
index 43a324a75cec..e8b7146c480d 100644
--- a/dev-libs/libf2c/ChangeLog
+++ b/dev-libs/libf2c/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/libf2c
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.45 2012/06/06 03:32:37 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/ChangeLog,v 1.46 2012/06/19 23:11:55 bicatali Exp $
+
+*libf2c-20110801 (19 Jun 2012)
+
+ 19 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> +libf2c-20110801.ebuild,
+ metadata.xml:
+ Version bump. Switch to EAPI4, use tc-getLD and added longdescription
06 Jun 2012; Zac Medico <zmedico@gentoo.org> libf2c-20070912.ebuild,
libf2c-20090407-r1.ebuild:
diff --git a/dev-libs/libf2c/libf2c-20110801.ebuild b/dev-libs/libf2c/libf2c-20110801.ebuild
new file mode 100644
index 000000000000..1803ac570e73
--- /dev/null
+++ b/dev-libs/libf2c/libf2c-20110801.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libf2c/libf2c-20110801.ebuild,v 1.1 2012/06/19 23:11:55 bicatali Exp $
+
+EAPI=4
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Library that converts FORTRAN to C source"
+HOMEPAGE="http://www.netlib.org/f2c/"
+SRC_URI="${HOMEPAGE}/${PN}.zip -> ${P}.zip"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/20051004-add-ofiles-dep.patch \
+ "${FILESDIR}"/20090407-link-shared-libf2c-correctly.patch \
+ "${FILESDIR}"/20090407-main.patch
+ sed -i -e "s/ld /$(tc-getLD) /" makefile.u || die
+}
+
+src_compile() {
+ emake \
+ -f makefile.u \
+ libf2c.so \
+ CFLAGS="${CFLAGS} -fPIC" \
+ CC="$(tc-getCC)"
+
+ # 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)"
+ fi
+}
+
+src_install () {
+ dolib libf2c.so.2
+ dosym libf2c.so.2 /usr/$(get_libdir)/libf2c.so
+ use static-libs && dolib.a libf2c.a
+ insinto /usr/include
+ doins f2c.h
+ dodoc README Notice
+}
diff --git a/dev-libs/libf2c/metadata.xml b/dev-libs/libf2c/metadata.xml
index d369d068ffb8..5e648252d26c 100644
--- a/dev-libs/libf2c/metadata.xml
+++ b/dev-libs/libf2c/metadata.xml
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>sci</herd>
+<herd>sci</herd>
+<longdescription lang='en'>
+ A library to conver FORTRAN 77 to C/C++ source code.
+</longdescription>
</pkgmetadata>
+