summaryrefslogtreecommitdiff
blob: 48c0df95c433a7c3f7e286bb5a922bebc82dfce5 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/units/units-1.88.ebuild,v 1.7 2012/03/26 11:55:44 jer Exp $

EAPI="2"

inherit eutils

DESCRIPTION="unit conversion program"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/units/units.html"

LICENSE="GPL-3"
SLOT="0"
IUSE=""
KEYWORDS="alpha amd64 ~arm hppa ppc sparc x86"

DEPEND=">=sys-libs/readline-4.1-r2
	>=sys-libs/ncurses-5.2-r3"

src_configure() {
	econf --datadir=/usr/share/${PN} || die "econf failed"
}

src_install() {
	einstall datadir="${D}"/usr/share/${PN} || die "emake install failed"
	dodoc ChangeLog NEWS README
}