summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-devel/flex/ChangeLog7
-rw-r--r--sys-devel/flex/Manifest5
-rw-r--r--sys-devel/flex/files/digest-flex-2.5.31-r11
-rw-r--r--sys-devel/flex/files/flex-2.5.31-yytext_ptr.patch10
-rw-r--r--sys-devel/flex/flex-2.5.31-r1.ebuild49
5 files changed, 69 insertions, 3 deletions
diff --git a/sys-devel/flex/ChangeLog b/sys-devel/flex/ChangeLog
index 623a5c7eb1cd..6a1fdaff997b 100644
--- a/sys-devel/flex/ChangeLog
+++ b/sys-devel/flex/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/flex
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.14 2003/07/01 15:37:26 todd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.15 2003/10/16 19:10:56 mholzer Exp $
+
+*flex-2.5.31-r1 (17 Oct 2003)
+
+ 17 Oct 2003; Martin Holzer <mholzer@gentoo.org> flex-2.5.31-r1.ebuild:
+ adding fix. Closes #31240.
01 Jul 2003; Todd Sunderlin <todd@gentoo.org> flex-2.5.4a-r5.ebuild:
set stable on sparc
diff --git a/sys-devel/flex/Manifest b/sys-devel/flex/Manifest
index df407ffe0b5f..bd3ca2d08ee0 100644
--- a/sys-devel/flex/Manifest
+++ b/sys-devel/flex/Manifest
@@ -1,7 +1,8 @@
-MD5 dea6af58351a5e4db4b496c243ae1e7b ChangeLog 2102
+MD5 f962a181747720a4aa8a982cd05c57fc ChangeLog 2239
MD5 22e819b5fdfe5953cc812a3583a03873 flex-2.5.23.ebuild 900
MD5 a8a1edab9af46425fb6dad78ec53fa85 flex-2.5.4a-r5.ebuild 1229
-MD5 8fcc5ac9c93cd2d1624dfff5afcd0656 flex-2.5.31-r1.ebuild 997
+MD5 be6d884d7cc05fe9b8a3542540c3e1e2 flex-2.5.31-r1.ebuild 999
+MD5 7b6266c76f8167b662ffc463ff5b25c0 flex-2.5.31.ebuild 917
MD5 16e4a9013f877177d2fc9ba784ae9959 files/digest-flex-2.5.23 63
MD5 46a5f0c3323bbf9d46b3682cf9b39263 files/digest-flex-2.5.31 64
MD5 a50411d58e9407414db98087253bdacd files/digest-flex-2.5.4a-r5 63
diff --git a/sys-devel/flex/files/digest-flex-2.5.31-r1 b/sys-devel/flex/files/digest-flex-2.5.31-r1
new file mode 100644
index 000000000000..729b6cd03752
--- /dev/null
+++ b/sys-devel/flex/files/digest-flex-2.5.31-r1
@@ -0,0 +1 @@
+MD5 363dcc4afc917dc51306eb9d3de0152f flex-2.5.31.tar.bz2 681792
diff --git a/sys-devel/flex/files/flex-2.5.31-yytext_ptr.patch b/sys-devel/flex/files/flex-2.5.31-yytext_ptr.patch
new file mode 100644
index 000000000000..3d0642a4ca72
--- /dev/null
+++ b/sys-devel/flex/files/flex-2.5.31-yytext_ptr.patch
@@ -0,0 +1,10 @@
+--- flex.skl.org 2003-10-16 06:04:37.000000000 +0000
++++ flex.skl 2003-10-16 06:06:02.000000000 +0000
+@@ -3280,7 +3280,6 @@
+ #undef yy_set_bol
+ #undef yy_new_buffer
+ #undef yy_set_interactive
+-#undef yytext_ptr
+ #undef YY_DO_BEFORE_ACTION
+
+ #ifdef YY_DECL_IS_OURS
diff --git a/sys-devel/flex/flex-2.5.31-r1.ebuild b/sys-devel/flex/flex-2.5.31-r1.ebuild
new file mode 100644
index 000000000000..a01b97bd9a7e
--- /dev/null
+++ b/sys-devel/flex/flex-2.5.31-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.31-r1.ebuild,v 1.1 2003/10/16 19:10:56 mholzer Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="GNU lexical analyser generator"
+SRC_URI="mirror://sourceforge/lex/${P}.tar.bz2"
+HOMEPAGE="http://lex.sourceforge.net/"
+
+SLOT="0"
+LICENSE="FLEX"
+KEYWORDS="~amd64 ~x86 ~ppc ~sparc ~alpha"
+
+DEPEND="virtual/glibc
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-yytext_ptr.patch
+}
+
+src_compile() {
+ myconf=""
+
+ use nls || myconf="--disable-nls"
+
+ econf ${myconf} || die
+
+ if [ -z "`use static`" ]
+ then
+ emake || make || die
+ else
+ emake LDFLAGS=-static || die
+ fi
+}
+
+src_install() {
+ einstall || die
+
+ if [ -z "`use build`" ]
+ then
+ dodoc AUTHORS COPYING ChangeLog NEWS ONEWS README* RoadMap THANKS TODO
+ else
+ rm -rf ${D}/usr/share ${D}/usr/include ${D}/usr/lib
+ fi
+
+ dosym flex /usr/bin/lex
+}