summaryrefslogtreecommitdiff
blob: af91aa305341c21f32b1ae26847030e2d917e2e0 (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
44
45
46
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $ 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"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

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 

}