blob: 3681bd108021ac6ee2859f544a6b4f3320a2449e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-devel/bc/bc-1.06-r3.ebuild,v 1.9 2002/09/14 15:51:25 bjb Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Handy console-based calculator utility"
HOMEPAGE="http://www.gnu.org/software/bc/bc.html"
SRC_URI="ftp://prep.ai.mit.edu/pub/gnu/bc/${P}.tar.gz"
LICENSE="GPL-2 & LGPL-2.1"
SLOT="0"
RDEPEND="readline? ( >=sys-libs/readline-4.1
>=sys-libs/ncurses-5.2 )"
DEPEND="$RDEPEND sys-devel/flex"
KEYWORDS="x86 ppc sparc sparc64 alpha"
src_unpack() {
unpack ${A} ; cd ${S}
patch -p1 < ${FILESDIR}/bc-1.06-info-fix.diff || die
patch -p1 < ${FILESDIR}/bc-1.06-readline42.diff || die
}
src_compile() {
local myconf
use readline && myconf="--with-readline"
./configure ${myconf} --host=${CHOST} --prefix=/usr || die
emake || die
}
src_install() {
into /usr
doinfo doc/*.info
dobin bc/bc dc/dc
doman doc/*.1
dodoc AUTHORS COPYING* FAQ NEWS README ChangeLog
}
|