blob: a8073d217de1df80afeeb5064288c7ed31c40d6d (
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-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $ Header: $
S=${WORKDIR}/${P}
DESCRIPTION="Units is a program for units conversion and units calculation."
SRC_URI="ftp://ftp.gnu.org/gnu/units/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/units/units.html"
DEPEND=">=sys-libs/readline-4.1-r2
>=sys-libs/ncurses-5.2-r3"
src_compile() {
#Note: the trailing / is required in the datadir path.
./configure --infodir=/usr/share/info \
--mandir=/usr/share/man \
--datadir=/usr/share/${PN}/ \
--prefix=/usr \
--host=${CHOST} || die "./configure failed"
emake || die
}
src_install () {
#Note: the trailing / is required in the datadir path.
make \
prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
datadir=${D}/usr/share/${PN}/ \
install || die
dodoc COPYING ChangeLog INSTALL NEWS README
}
|