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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Fri Jan 1 17:33:41 2010 UTC (10 years, 2 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +4 -3 lines
Use -j1 for build (bug #299224).
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 flameeyes 1.6 # Copyright 1999-2010 Gentoo Foundation
2 markusle 1.1 # Distributed under the terms of the GNU General Public License v2
3 flameeyes 1.6 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/calc-2.12.2.2.ebuild,v 1.5 2008/06/02 22:39:34 coldwind Exp $
4 markusle 1.1
5 markusle 1.2 inherit eutils multilib
6 markusle 1.1
7     DESCRIPTION="An arbitrary precision C-like arithmetic system"
8     HOMEPAGE="http://www.isthe.com/chongo/tech/comp/calc/"
9     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10    
11     SLOT="0"
12     LICENSE="LGPL-2"
13 coldwind 1.5 KEYWORDS="~alpha amd64 ~ppc ~ppc64 ~x86"
14 markusle 1.1
15     IUSE=""
16    
17     DEPEND=">=sys-libs/ncurses-5.2
18     >=sys-libs/readline-4.2"
19    
20     RDEPEND="${DEPEND}
21     >=sys-apps/less-348"
22    
23     src_unpack() {
24 coldwind 1.5 unpack ${A}
25 markusle 1.1 cd "${S}"
26     epatch "${FILESDIR}"/${P}-libdir-fix.patch
27 markusle 1.2
28     sed -e "s:LIBDIR= /usr/lib:LIBDIR= /usr/$(get_libdir):" \
29     -i Makefile || die "Failed to fix multilib in makefile"
30 markusle 1.1 }
31    
32     src_compile() {
33 flameeyes 1.6 # bug #299224
34     emake -j1 \
35 markusle 1.1 T="${D}" \
36     DEBUG="${CFLAGS}" \
37     CALCPAGER=less \
38     USE_READLINE="-DUSE_READLINE" \
39     READLINE_LIB="-lreadline -lhistory -lncurses" \
40     all \
41     || die
42     if echo "${LD_PRELOAD}" | grep -q "sandbox"; then
43     ewarn "Can't run check when running in sandbox - see bug #59676"
44     else
45     make chk || die "Check failed"
46     fi
47     }
48    
49     src_install() {
50     make T="${D}" install || die
51     dodoc BUGS CHANGES LIBRARY README
52     }

  ViewVC Help
Powered by ViewVC 1.1.20