| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/calc-2.12.4.0.ebuild,v 1.2 2010/01/07 17:21:15 bicatali Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit eutils
|
| 7 |
|
| 8 |
DESCRIPTION="An arbitrary precision C-like arithmetic system"
|
| 9 |
HOMEPAGE="http://www.isthe.com/chongo/tech/comp/calc/"
|
| 10 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
| 11 |
|
| 12 |
SLOT="0"
|
| 13 |
LICENSE="LGPL-2"
|
| 14 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
|
| 15 |
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
DEPEND=">=sys-libs/ncurses-5.2
|
| 19 |
>=sys-libs/readline-4.2"
|
| 20 |
RDEPEND="${DEPEND}"
|
| 21 |
|
| 22 |
src_compile() {
|
| 23 |
# parallel compilation hard to fix. better to leave upstream.
|
| 24 |
emake -j1 \
|
| 25 |
DEBUG="${CFLAGS}" \
|
| 26 |
CALCPAGER="${PAGER}" \
|
| 27 |
USE_READLINE="-DUSE_READLINE" \
|
| 28 |
READLINE_LIB="-lreadline -lhistory -lncurses" \
|
| 29 |
all || die "emake failed"
|
| 30 |
|
| 31 |
if echo "${LD_PRELOAD}" | grep -q "sandbox"; then
|
| 32 |
ewarn "Can't run check when running in sandbox - see bug #59676"
|
| 33 |
else
|
| 34 |
make chk || die "Check failed"
|
| 35 |
fi
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
emake T="${D}" LIBDIR="/usr/$(get_libdir)" install || die "emake install failed"
|
| 40 |
dodoc BUGS CHANGES LIBRARY README
|
| 41 |
}
|