/[gentoo-x86]/sci-mathematics/calc/calc-2.12.4.3.ebuild
Gentoo

Contents of /sci-mathematics/calc/calc-2.12.4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Mar 7 05:12:39 2011 UTC (3 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.1.9.42/cvs/Linux x86_64)

1 # Copyright 1999-2011 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-r1.ebuild,v 1.1 2010/06/15 15:43:48 jlec Exp $
4
5 EAPI="3"
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="An arbitrary precision C-like arithmetic system"
10 HOMEPAGE="http://www.isthe.com/chongo/tech/comp/calc/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
12
13 SLOT="0"
14 LICENSE="LGPL-2"
15 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
16
17 IUSE=""
18
19 DEPEND="
20 >=sys-libs/ncurses-5.2
21 >=sys-libs/readline-4.2"
22 RDEPEND="${DEPEND}"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/${PN}-2.12.4.0-prefix.patch
26 epatch "${FILESDIR}"/2.12.4.0-ldflags.patch
27 ln -sf libcustcalc.so.${PV} custom/libcustcalc.so
28 }
29
30 src_compile() {
31 # parallel compilation hard to fix. better to leave upstream.
32 emake -j1 \
33 CC=$(tc-getCC) \
34 DEBUG="${CFLAGS}" \
35 LDFLAGS="${LDFLAGS}" \
36 CALCPAGER="${PAGER}" \
37 USE_READLINE="-DUSE_READLINE" \
38 READLINE_LIB="-lreadline -lhistory -lncurses -L${S}/custom -lcustcalc" \
39 all || die "emake failed"
40 }
41
42 src_test() {
43 if echo "${LD_PRELOAD}" | grep -q "sandbox"; then
44 ewarn "Can't run check when running in sandbox - see bug #59676"
45 else
46 make chk || die "Check failed"
47 fi
48 }
49
50 src_install() {
51 emake T="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install || die "emake install failed"
52 dodoc BUGS CHANGES LIBRARY README
53 }

  ViewVC Help
Powered by ViewVC 1.1.20