diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-11-11 07:56:52 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-11-11 07:56:52 +0000 |
commit | d05a7853754fe61ac228d8ae8fd27d66c18d935c (patch) | |
tree | 8b3a86188035891fe25684d101e68619246578fd /sys-devel | |
parent | acknowledgement (diff) | |
download | historical-d05a7853754fe61ac228d8ae8fd27d66c18d935c.tar.gz historical-d05a7853754fe61ac228d8ae8fd27d66c18d935c.tar.bz2 historical-d05a7853754fe61ac228d8ae8fd27d66c18d935c.zip |
bug #10546
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/bc/ChangeLog | 8 | ||||
-rw-r--r-- | sys-devel/bc/bc-1.06-r4.ebuild | 64 | ||||
-rw-r--r-- | sys-devel/bc/files/digest-bc-1.06-r4 | 1 |
3 files changed, 72 insertions, 1 deletions
diff --git a/sys-devel/bc/ChangeLog b/sys-devel/bc/ChangeLog index 1e836ef99005..051910620bea 100644 --- a/sys-devel/bc/ChangeLog +++ b/sys-devel/bc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-devel/bc # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-devel/bc/ChangeLog,v 1.2 2002/10/23 18:22:12 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/bc/ChangeLog,v 1.3 2002/11/11 07:56:52 azarah Exp $ + +*bc-1.06-r4 (11 Nov 2002) + + 11 Nov 2002; Martin Schlemmer <azarah@gentoo.org> bc-1.06-r4.ebuild : + + Fix bug #10546. *bc-1.06-r3 (1 Feb 2002) diff --git a/sys-devel/bc/bc-1.06-r4.ebuild b/sys-devel/bc/bc-1.06-r4.ebuild new file mode 100644 index 000000000000..bbae165ec4e6 --- /dev/null +++ b/sys-devel/bc/bc-1.06-r4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/bc/bc-1.06-r4.ebuild,v 1.1 2002/11/11 07:56:52 azarah Exp $ + +IUSE="readline" + +S="${WORKDIR}/${P}" +DESCRIPTION="Handy console-based calculator utility" +SRC_URI="ftp://prep.ai.mit.edu/pub/gnu/bc/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/bc/bc.html" + +LICENSE="GPL-2 & LGPL-2.1" +SLOT="0" +KEYWORDS="x86 ppc sparc sparc64 alpha" + +RDEPEND="readline? ( >=sys-libs/readline-4.1 + >=sys-libs/ncurses-5.2 )" +DEPEND="$RDEPEND sys-devel/flex" + +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 + + # Command line arguments for flex changed from the old + # 2.5.4 to 2.5.22, so fix configure if we are using the + # new flex. Note that flex-2.5.4 prints 'flex version 2.5.4' + # and flex-2.5.22 prints 'flex 2.5.22', bug #10546. + # <azarah@gentoo.org> (23 Oct 2002) + local flmajor="`flex --version | cut -d. -f1`" + local flminor="`flex --version | cut -d. -f2`" + local flmicro="`flex --version | cut -d. -f3`" + if [ "${flmajor/flex* }" -ge 2 -a \ + "${flminor/flex* }" -ge 5 -a \ + "${flmicro/flex* }" -ge 22 ] + then + cd ${S}; cp configure configure.orig + sed -e 's:flex -I8:flex -I:g' \ + configure.orig > configure + fi +} + +src_compile() { + + local myconf="" + use readline && myconf="--with-readline" + + econf ${myconf} || die + + emake || die +} + +src_install() { + + into /usr + dobin bc/bc dc/dc + + doinfo doc/*.info + doman doc/*.1 + dodoc AUTHORS COPYING* FAQ NEWS README ChangeLog +} + diff --git a/sys-devel/bc/files/digest-bc-1.06-r4 b/sys-devel/bc/files/digest-bc-1.06-r4 new file mode 100644 index 000000000000..e470cb55f0e4 --- /dev/null +++ b/sys-devel/bc/files/digest-bc-1.06-r4 @@ -0,0 +1 @@ +MD5 d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz 278926 |