blob: 2b9fc0e89d62141063376bdd7177d9bf1829a4ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/udunits/udunits-2.1.24.ebuild,v 1.3 2012/10/16 19:34:33 jlec Exp $
EAPI=4
inherit eutils fortran-2 autotools
DESCRIPTION="Library for manipulating units of physical quantities"
HOMEPAGE="http://www.unidata.ucar.edu/packages/udunits/"
SRC_URI="ftp://ftp.unidata.ucar.edu/pub/udunits/${P}.tar.gz"
SLOT="0"
LICENSE="UCAR-Unidata"
IUSE="doc static-libs"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="dev-libs/expat"
DEPEND="${RDEPEND}"
src_prepare() {
# respect user's flags, compile with system libexpat
epatch "${FILESDIR}"/${PN}-2.1.15-autotools.patch
rm -rf expat
eautoreconf
}
src_configure() {
econf \
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
$(use_enable static-libs static)
}
src_install() {
default
dodoc CHANGE_LOG ANNOUNCEMENT
doinfo udunits2.info prog/udunits2prog.info
if use doc; then
insinto /usr/share/doc/${PF}
doins udunits2.html udunits2.pdf
doins prog/udunits2prog.html prog/udunits2prog.pdf
fi
}
|