summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-27 00:47:12 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-27 00:47:12 +0000
commit8e45a21b68c79d8ae551e9522e1b95c837534074 (patch)
treea8fd8407dcb41dc9659da767451544bed76b32d1 /sys-devel/flex/flex-2.5.33-r1.ebuild
parentVersion bump to 0.09.2. Introduces dependency on confuse and glib. Closes bu... (diff)
downloadgentoo-2-8e45a21b68c79d8ae551e9522e1b95c837534074.tar.gz
gentoo-2-8e45a21b68c79d8ae551e9522e1b95c837534074.tar.bz2
gentoo-2-8e45a21b68c79d8ae551e9522e1b95c837534074.zip
Fix build failure with wine #124084 by Peter Fox.
(Portage version: 2.1_pre5)
Diffstat (limited to 'sys-devel/flex/flex-2.5.33-r1.ebuild')
-rw-r--r--sys-devel/flex/flex-2.5.33-r1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-devel/flex/flex-2.5.33-r1.ebuild b/sys-devel/flex/flex-2.5.33-r1.ebuild
new file mode 100644
index 000000000000..3b6a24c126dc
--- /dev/null
+++ b/sys-devel/flex/flex-2.5.33-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.33-r1.ebuild,v 1.1 2006/02/27 00:47:12 vapier Exp $
+
+inherit eutils flag-o-matic
+
+#DEB_VER=36
+DESCRIPTION="GNU lexical analyser generator"
+HOMEPAGE="http://flex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/flex/${P}.tar.bz2"
+# mirror://debian/pool/main/f/flex/${PN}_${PV}-${DEB_VER}.diff.gz"
+
+LICENSE="FLEX"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ~ppc-macos ppc64 ~s390 ~sh ~sparc x86"
+IUSE="nls static"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ [[ -n ${DEB_VER} ]] && epatch "${WORKDIR}"/${PN}_${PV}-${DEB_VER}.diff
+ epatch "${FILESDIR}"/${PN}-2.5.31-include.patch
+ epatch "${FILESDIR}"/${P}-isatty.patch #119598
+ sed -i -e 's:yystr:__yystr:g' flex.skl skel.c #124084
+}
+
+src_compile() {
+ use static && append-ldflags -static
+ econf $(use_enable nls) || die
+ emake || die
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+ dodoc AUTHORS ChangeLog NEWS ONEWS README* RoadMap THANKS TODO
+ dosym flex /usr/bin/lex
+}