blob: 6c6616acac43cc84de24cee181cf206e3e3cd50d [file] [log] [blame]
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/units/units-1.87.ebuild,v 1.6 2007/11/27 16:07:40 armin76 Exp $
inherit eutils
DESCRIPTION="program for units conversion and units calculation"
SRC_URI="http://ftp.gnu.org/gnu/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/units/units.html"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="alpha amd64 hppa ppc sparc 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.
econf --datadir=/usr/share/${PN}/ || die
emake || die
}
src_install() {
einstall datadir="${D}"/usr/share/${PN}/ || die
dodoc ChangeLog NEWS README
}