summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-02-13 08:19:23 +0000
committerTim Harder <radhermit@gentoo.org>2014-02-13 08:19:23 +0000
commit62d4058bf8fd21e066f36e605fe598f20681e8b8 (patch)
treec505907fe225de5f3de8b91ec76c74648f992174 /sys-devel/flex
parentVersion bump. (diff)
downloadgentoo-2-62d4058bf8fd21e066f36e605fe598f20681e8b8.tar.gz
gentoo-2-62d4058bf8fd21e066f36e605fe598f20681e8b8.tar.bz2
gentoo-2-62d4058bf8fd21e066f36e605fe598f20681e8b8.zip
Version bump.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'sys-devel/flex')
-rw-r--r--sys-devel/flex/ChangeLog7
-rw-r--r--sys-devel/flex/flex-2.5.38.ebuild50
2 files changed, 56 insertions, 1 deletions
diff --git a/sys-devel/flex/ChangeLog b/sys-devel/flex/ChangeLog
index a8c4232e6465..85389f536f57 100644
--- a/sys-devel/flex/ChangeLog
+++ b/sys-devel/flex/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/flex
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.112 2014/01/18 03:14:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.113 2014/02/13 08:19:23 radhermit Exp $
+
+*flex-2.5.38 (13 Feb 2014)
+
+ 13 Feb 2014; Tim Harder <radhermit@gentoo.org> +flex-2.5.38.ebuild:
+ Version bump.
18 Jan 2014; Mike Frysinger <vapier@gentoo.org> flex-2.5.37.ebuild:
Add arm64 love.
diff --git a/sys-devel/flex/flex-2.5.38.ebuild b/sys-devel/flex/flex-2.5.38.ebuild
new file mode 100644
index 000000000000..16fd969421f2
--- /dev/null
+++ b/sys-devel/flex/flex-2.5.38.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.38.ebuild,v 1.1 2014/02/13 08:19:23 radhermit Exp $
+
+EAPI="4"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+if [[ ${PV} == *_p* ]] ; then
+ DEB_DIFF=${PN}_${PV/_p/-}
+fi
+MY_P=${P%_p*}
+
+DESCRIPTION="The Fast Lexical Analyzer"
+HOMEPAGE="http://flex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/flex/${MY_P}.tar.bz2
+ ${DEB_DIFF:+mirror://debian/pool/main/f/flex/${DEB_DIFF}.diff.gz}"
+
+LICENSE="FLEX"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
+IUSE="nls static test"
+
+# We want bison explicitly and not yacc in general #381273
+RDEPEND="sys-devel/m4"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ test? ( sys-devel/bison )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="AUTHORS ChangeLog NEWS ONEWS README* THANKS TODO"
+
+src_prepare() {
+ [[ -n ${DEB_DIFF} ]] && epatch "${WORKDIR}"/${DEB_DIFF}.diff
+ sed -i "/^AR =/s:=.*:= $(tc-getAR):" Makefile.in || die #444086
+}
+
+src_configure() {
+ use static && append-ldflags -static
+ econf \
+ $(use_enable nls) \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+}
+
+src_install() {
+ default
+ rm "${ED}"/usr/share/doc/${PF}/{COPYING,flex.pdf} || die
+ dosym flex /usr/bin/lex
+}