/[gentoo-x86]/dev-lang/f2c/f2c-20100827.ebuild
Gentoo

Contents of /dev-lang/f2c/f2c-20100827.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Dec 6 19:57:42 2012 UTC (5 months, 2 weeks ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Keyword amd64-linux and x86-linux

(Portage version: 2.2.01.21313-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/f2c/f2c-20100827.ebuild,v 1.3 2012/11/06 06:35:59 ulm Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DEB_PV=20100827
10 DEB_PR=1
11 DEB_P=${PN}_${DEB_PV}
12
13 DESCRIPTION="Fortran to C converter"
14 HOMEPAGE="http://www.netlib.org/f2c"
15 SRC_URI="
16 mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.orig.tar.gz
17 mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}-${DEB_PR}.debian.tar.gz"
18
19 LICENSE="HPND"
20 SLOT="0"
21 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
22 IUSE="doc"
23
24 RDEPEND="dev-libs/libf2c"
25 DEPEND=""
26
27 S="${WORKDIR}/${PN}"
28
29 src_prepare() {
30 # selective list of patches from debian
31 epatch \
32 "${WORKDIR}"/debian/patches/0000-prequilt-tweaks.patch \
33 "${WORKDIR}"/debian/patches/0002-prototype-rmdir.patch \
34 "${WORKDIR}"/debian/patches/0003-struct-init-braces.patch \
35 "${WORKDIR}"/debian/patches/0004-man-dash-hyphen-slash.patch
36 sed -i -e '/^CC/d' -e '/^CFLAGS/d' src/makefile.u || die
37 tc-export CC
38 }
39
40 src_compile() {
41 emake -C src -f makefile.u
42 }
43
44 src_install() {
45 doman f2c.1
46 use doc && dodoc f2c.pdf
47 newdoc "${WORKDIR}"/debian/changelog debian.changelog
48 cd src
49 dobin f2c
50 dodoc README Notice
51 }

  ViewVC Help
Powered by ViewVC 1.1.13