mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
dev-libs/libf2c: Remove old
Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST libf2c-20110801.zip 128845 BLAKE2B f948693c0aace5725f3a4ab3406396a9f16fbb3c08681fe200ba2ba0b48dadb3c051a510cf9b4714d9fbfebc43e52ba13d6fdbff3590c19a164acc710ebe2958 SHA512 7a7b7b02ca2b11456aa0deba5094aebc1e9f7070d1742ad76450ec79de7eed967fbd7446524b66c52295ed911471d2dc396d171569b5d37079bdca8220fd2fb6
|
||||
DIST libf2c-20130927.zip 129082 BLAKE2B 09f818bde8888b569858784c39e93a6a11b3103039f44c3f6a1246b29efb5f8ae6e45f787ed0c2216bea383a79b9554aff30e1fbb00668bbc872b4bc30d87ba8 SHA512 1a12093dec3c250f4775eebd06f1a9144fdb956ea3162202fb67569fdd956ac5591bc563a0726ca65ea10d465efaac1c1d8024d63bc4a4b5c88bf46242607c8a
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
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="HPND"
|
||||
SLOT="0"
|
||||
KEYWORDS="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}"/${P}-main.patch\
|
||||
"${FILESDIR}"/${P}-64bit-long.patch \
|
||||
"${FILESDIR}"/${P}-format-security.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
|
||||
doheader f2c.h
|
||||
dodoc README Notice
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
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="HPND"
|
||||
SLOT="0"
|
||||
KEYWORDS="~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}"/${PN}-20110801-main.patch\
|
||||
"${FILESDIR}"/${PN}-20110801-64bit-long.patch \
|
||||
"${FILESDIR}"/${PN}-20110801-format-security.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
|
||||
doheader f2c.h
|
||||
dodoc README Notice
|
||||
}
|
||||
Reference in New Issue
Block a user