/[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.1 - (hide annotations) (download)
Wed Oct 24 12:50:28 2007 UTC (12 years, 5 months ago) by markusle
Branch: MAIN
Fixed incorrect RDEPEND (see bug 196654) and bumped to most recent version.
(Portage version: 2.1.3.15)

1 markusle 1.1 # Copyright 1999-2007 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.1.5.ebuild,v 1.3 2007/08/02 14:04:25 armin76 Exp $
4    
5     inherit eutils
6    
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     KEYWORDS="~alpha ~amd64 ~ppc ~ppc-macos ~x86"
14    
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     }
28    
29     src_compile() {
30     make \
31     T="${D}" \
32     DEBUG="${CFLAGS}" \
33     CALCPAGER=less \
34     USE_READLINE="-DUSE_READLINE" \
35     READLINE_LIB="-lreadline -lhistory -lncurses" \
36     all \
37     || die
38     if echo "${LD_PRELOAD}" | grep -q "sandbox"; then
39     ewarn "Can't run check when running in sandbox - see bug #59676"
40     else
41     make chk || die "Check failed"
42     fi
43     }
44    
45     src_install() {
46     make T="${D}" install || die
47     dodoc BUGS CHANGES LIBRARY README
48     }

  ViewVC Help
Powered by ViewVC 1.1.20