/[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.3 - (hide annotations) (download)
Mon Jan 28 20:01:17 2008 UTC (12 years, 2 months ago) by grobian
Branch: MAIN
Changes since 1.2: +3 -3 lines
Dropped ppc-macos keyword, see you in prefix
(Portage version: 2.1.3.19)

1 grobian 1.3 # Copyright 1999-2008 Gentoo Foundation
2 markusle 1.1 # Distributed under the terms of the GNU General Public License v2
3 grobian 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/calc-2.12.2.2.ebuild,v 1.2 2007/10/26 12:59:34 markusle 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 grobian 1.3 KEYWORDS="~alpha ~amd64 ~ppc ~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     unpack "${A}"
25     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     make \
34     T="${D}" \
35     DEBUG="${CFLAGS}" \
36     CALCPAGER=less \
37     USE_READLINE="-DUSE_READLINE" \
38     READLINE_LIB="-lreadline -lhistory -lncurses" \
39     all \
40     || die
41     if echo "${LD_PRELOAD}" | grep -q "sandbox"; then
42     ewarn "Can't run check when running in sandbox - see bug #59676"
43     else
44     make chk || die "Check failed"
45     fi
46     }
47    
48     src_install() {
49     make T="${D}" install || die
50     dodoc BUGS CHANGES LIBRARY README
51     }

  ViewVC Help
Powered by ViewVC 1.1.20