/[gentoo-x86]/sci-libs/udunits/udunits-1.12.0.ebuild
Gentoo

Contents of /sci-libs/udunits/udunits-1.12.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jun 23 08:29:31 2010 UTC (10 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump, removed old version
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/udunits/udunits-1.12.0.ebuild,v 1.4 2007/07/13 06:57:51 mr_bones_ Exp $
4
5 inherit eutils
6
7 # This is the Unidata Units library, which supports conversion of unit
8 # specifications between formatted and binary forms, arithmetic
9 # manipulation of unit specifications, and conversion of values between
10 # compatible scales of measurement.
11
12 #inherit perl-app
13
14 IUSE=""
15 S=${WORKDIR}/${P}/src
16 SP=${WORKDIR}/${P}/src/perl
17 DESCRIPTION="The UCAR/Unidata Units library"
18 HOMEPAGE="http://www.unidata.ucar.edu/packages/udunits/"
19 SRC_URI="ftp://unidata.ucar.edu/pub/udunits/udunits-${PV}.tar.Z"
20
21 SLOT="0"
22 LICENSE="UCAR-Unidata"
23 KEYWORDS="x86 ~ppc ~sparc alpha ~mips ~hppa"
24
25 DEPEND="dev-lang/perl"
26
27 src_unpack() {
28 unpack ${A}
29 cd ${S}
30 epatch ${FILESDIR}/udunits_configure_in.patch
31 epatch ${FILESDIR}/udunits_lib_make.patch
32 epatch ${FILESDIR}/udunits_master_mk.patch
33 }
34
35 src_compile() {
36 export CPPFLAGS=-Df2cFortran
37 econf || die "econf failed"
38 cd perl
39 perl Makefile.PL PREFIX=${D}/usr
40 cd ..
41 make ld_math=-lm || die
42 # make test || die
43 }
44
45 src_install() {
46 sed "s?/usr?${D}/usr?" Makefile > Makefile.install
47 emake -f Makefile.install install
48 dodir /etc /usr/share/man/man3 /usr/share/man/man3f
49 insinto /etc
50 insopts -m 644
51 doins lib/udunits.dat
52 insinto /usr/share/man/man3
53 doins lib/udunits.3
54 insinto /usr/share/man/man3f
55 doins lib/udunits.3f
56
57 cd perl
58 make PREFIX=${D}/usr install INSTALLSITEMAN1DIR=${D}/usr/share/man/man1
59 cd ..
60 find ${D} -type f -a \( -name perllocal.pod -o -name .packlist \
61 -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
62 find ${D} -type d -depth -exec rmdir {} 2>/dev/null ';'
63 chmod -R u+w ${D}/*
64
65 dodoc COPYRIGHT README RELEASE_NOTES VERSION CUSTOMIZE INSTALL
66 }

  ViewVC Help
Powered by ViewVC 1.1.20