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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 9 17:52:26 2012 UTC (2 years, 2 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Version bump. Fixed for prefix

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.3.ebuild,v 1.1 2011/03/07 05:12:39 bicatali Exp $
4
5 EAPI=4
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="Arbitrary precision C-like arithmetic system"
10 HOMEPAGE="http://www.isthe.com/chongo/tech/comp/calc/"
11 SRC_URI="http://www.isthe.com/chongo/src/calc/${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
21 sys-libs/readline"
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 sed -i -e "/DIR/s:/usr:${EPREFIX}/usr:g" Makefile || die
29 }
30
31 src_compile() {
32 # parallel compilation hard to fix. better to leave upstream.
33 emake -j1 \
34 CC="$(tc-getCC)" \
35 DEBUG="${CFLAGS}" \
36 LDFLAGS="${LDFLAGS}" \
37 CALCPAGER="${PAGER}" \
38 USE_READLINE="-DUSE_READLINE" \
39 READLINE_LIB="-lreadline -lhistory -lncurses -L${S}/custom -lcustcalc" \
40 all
41 }
42
43 src_test() {
44 if echo "${LD_PRELOAD}" | grep -q "sandbox"; then
45 ewarn "Can't run check when running in sandbox - see bug #59676"
46 else
47 emake chk || die "Check failed"
48 fi
49 }
50
51 src_install() {
52 emake \
53 T="${D}" \
54 LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
55 install
56 dodoc BUGS CHANGES LIBRARY README
57 }

  ViewVC Help
Powered by ViewVC 1.1.20