/[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.2 - (show annotations) (download)
Fri Oct 26 12:59:34 2007 UTC (12 years, 5 months ago) by markusle
Branch: MAIN
Changes since 1.1: +5 -2 lines
Fixed multilib issues on amd64 (see bug #197019).
(Portage version: 2.1.3.15)

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.2.2.ebuild,v 1.1 2007/10/24 12:50:28 markusle Exp $
4
5 inherit eutils multilib
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 sed -e "s:LIBDIR= /usr/lib:LIBDIR= /usr/$(get_libdir):" \
29 -i Makefile || die "Failed to fix multilib in makefile"
30 }
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