Update to 1.875d for the sake of toolchain.org builds
authorAron Griffis <agriffis@gentoo.org>
Sat, 30 Oct 2004 03:58:47 +0000 (03:58 +0000)
committerAron Griffis <agriffis@gentoo.org>
Sat, 30 Oct 2004 03:58:47 +0000 (03:58 +0000)
sys-devel/bison/ChangeLog
sys-devel/bison/Manifest
sys-devel/bison/bison-1.875d.ebuild [new file with mode: 0644]
sys-devel/bison/files/digest-bison-1.875d [new file with mode: 0644]

index 5fbc247cf1ae1f5273965b4380c5fac98ebb17be..553891733b3b59b42b0585bf278772c0f35bdde4 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-devel/bison
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/ChangeLog,v 1.32 2004/10/15 02:00:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/ChangeLog,v 1.33 2004/10/30 03:58:47 agriffis Exp $
+
+*bison-1.875d (31 Oct 2004)
+
+  31 Oct 2004; Aron Griffis <agriffis@gentoo.org> +bison-1.875d.ebuild:
+  Update to 1.875d for the sake of toolchain.org builds
 
   14 Oct 2004; Mike Frysinger <vapier@gentoo.org> bison-1.875.ebuild:
   Dont install bison as yacc, but if yacc doesnt exist, create a symlink
index 2bc0818f9289801caa8bbc7db6a93466ea403bc4..a0fa6e5786b0b48164153106b3456de0721ec3c6 100644 (file)
@@ -1,16 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 8a80beaac760e397aed8da0bafb6ff80 ChangeLog 4850
+MD5 729ba6b13dded31d0556eb2baeb8680e ChangeLog 5010
+MD5 01269b6b83b16b7e7f275b4bfe57abec bison-1.875d.ebuild 1780
 MD5 12f293970f7479a6607502571bd21904 bison-1.875.ebuild 1799
 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
 MD5 61b224a9eaf1ae7f77c2d1456d8fda87 files/bison-1.32-extfix.patch 1170
 MD5 644a4912da3e5107f509022f173ec146 files/bison-1.875-gccerror.patch 1538
+MD5 6af3f9859615301181f6a1536aa56fb1 files/digest-bison-1.875d 65
 MD5 4a875793f3bd808692002c152e5e26c4 files/digest-bison-1.875 64
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBbzPRHTu7gpaalycRAm24AKDAbwWufR3Oc6uMXPZnHqQB585hpgCgi+Re
-0y3fJC7PhyFpt058TeljlOk=
-=wKot
------END PGP SIGNATURE-----
diff --git a/sys-devel/bison/bison-1.875d.ebuild b/sys-devel/bison/bison-1.875d.ebuild
new file mode 100644 (file)
index 0000000..0b03166
--- /dev/null
@@ -0,0 +1,66 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/bison/bison-1.875d.ebuild,v 1.1 2004/10/30 03:58:47 agriffis Exp $
+
+inherit gcc flag-o-matic eutils gnuconfig
+
+DESCRIPTION="A yacc-compatible parser generator"
+HOMEPAGE="http://www.gnu.org/software/bison/bison.html"
+SRC_URI="ftp://alpha.gnu.org/pub/gnu/bison/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="nls static"
+
+DEPEND="sys-devel/m4
+       nls? ( sys-devel/gettext )"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${PN}-1.32-extfix.patch
+       gnuconfig_update
+}
+
+src_compile() {
+       # Bug 39842 says that bison segfaults when built on amd64 with
+       # optimizations.  This will probably be fixed in a future gcc
+       # version, but for the moment just disable optimizations for that
+       # arch (04 Feb 2004 agriffis)
+       [ "$ARCH" == "amd64" ] && append-flags -O0
+
+       # Bug 29017 says that bison has compile-time issues with
+       # -march=k6* prior to 3.4CVS.  Use -march=i586 instead
+       # (04 Feb 2004 agriffis)
+       #
+       if (( $(gcc-major-version) == 3 && $(gcc-minor-version) < 4 )) ; then
+               replace-cpu-flags k6 k6-1 k6-2 i586
+       fi
+
+       econf $(use_enable nls) || die
+       use static && append-ldflags -static
+       emake || die
+}
+
+src_install() {
+       make DESTDIR=${D} \
+               datadir=/usr/share \
+               mandir=/usr/share/man \
+               infodir=/usr/share/info \
+               install || die
+
+       # This one is installed by dev-util/yacc
+       mv ${D}/usr/bin/yacc ${D}/usr/bin/yacc.bison || die
+
+       # We do not need this.
+       rm -f ${D}/usr/lib/liby.a
+
+       dodoc AUTHORS NEWS ChangeLog README REFERENCES OChangeLog doc/FAQ
+}
+
+pkg_postinst() {
+       if [ ! -e "${ROOT}/usr/bin/yacc" ] ; then
+               ln -s yacc.bison /usr/bin/yacc
+       fi
+}
diff --git a/sys-devel/bison/files/digest-bison-1.875d b/sys-devel/bison/files/digest-bison-1.875d
new file mode 100644 (file)
index 0000000..0816e4c
--- /dev/null
@@ -0,0 +1 @@
+MD5 ff62f5775be8d1fbb2a9d3e486c901fa bison-1.875d.tar.bz2 882745