blob: 1b1369ab34c0ce90e94fcbf107367cfa18102abd (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/units/units-1.80-r1.ebuild,v 1.1 2004/12/24 15:11:22 ribosome Exp $
inherit eutils
DESCRIPTION="program for units conversion and units calculation"
SRC_URI="mirror://gentoo/${P}.tar.gz"
HOMEPAGE="http://freshmeat.net/projects/units/"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="x86 ppc alpha amd64 sparc"
DEPEND=">=sys-libs/readline-4.1-r2
>=sys-libs/ncurses-5.2-r3"
src_unpack () {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/remove-script.patch
epatch ${FILESDIR}/astronomicalunit.patch
}
src_compile() {
#Note: the trailing / is required in the datadir path.
econf --datadir=/usr/share/${PN}/ || die
emake || die
}
src_install() {
einstall datadir=${D}/usr/share/${PN}/ || die
dodoc ChangeLog NEWS README
}
|