Patchworkβ [oe,09/12] flex: remove version specifics from generic inc

login
register
about
Submitter Bernhard Reutner-Fischer
Date 2010-02-08 21:14:30
Message ID <1265663673-16312-10-git-send-email-rep.dot.nop@gmail.com>
Download mbox | patch
Permalink /patch/1559/
State Applied, archived
Headers show

Comments

Bernhard Reutner-Fischer - 2010-02-08 21:14:30
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 recipes/flex/flex-native_2.5.31.bb |    4 ++--
 recipes/flex/flex.inc              |    3 ---
 recipes/flex/flex_2.5.31.bb        |    5 ++++-
 3 files changed, 6 insertions(+), 6 deletions(-)
Phil Blundell - 2010-02-09 11:49:46
On Mon, 2010-02-08 at 22:14 +0100, Bernhard Reutner-Fischer wrote:
> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
> ---
>  recipes/flex/flex-native_2.5.31.bb |    4 ++--
>  recipes/flex/flex.inc              |    3 ---
>  recipes/flex/flex_2.5.31.bb        |    5 ++++-
>  3 files changed, 6 insertions(+), 6 deletions(-)

Thanks for the patch.  I checked this in.

p.

Patch

diff --git a/recipes/flex/flex-native_2.5.31.bb b/recipes/flex/flex-native_2.5.31.bb
index 1e9354a..de3f215 100644
--- a/recipes/flex/flex-native_2.5.31.bb
+++ b/recipes/flex/flex-native_2.5.31.bb
@@ -1,6 +1,6 @@ 
-require flex.inc
+require flex_${PV}.bb
 inherit native
-PR = "r2"
+PR = "r3"
 
 do_stage () {
 	install -m 0755 flex ${STAGING_BINDIR}
diff --git a/recipes/flex/flex.inc b/recipes/flex/flex.inc
index 4ebd44a..37e34fe 100644
--- a/recipes/flex/flex.inc
+++ b/recipes/flex/flex.inc
@@ -2,9 +2,6 @@  DESCRIPTION = "Flex is a tool for generating programs that recognize lexical pat
 SECTION = "devel"
 LICENSE = "BSD"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-2.5.31.tar.bz2 \
-           file://flex-lvalue.diff;patch=1 \
-           file://fix-gen.patch;patch=1"
 S = "${WORKDIR}/flex-${PV}"
 
 inherit autotools
diff --git a/recipes/flex/flex_2.5.31.bb b/recipes/flex/flex_2.5.31.bb
index e247a03..ae9e6f9 100644
--- a/recipes/flex/flex_2.5.31.bb
+++ b/recipes/flex/flex_2.5.31.bb
@@ -1,7 +1,10 @@ 
 require flex.inc
 PR = "r5"
 
-SRC_URI += "file://include.patch;patch=1"
+SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \
+           file://flex-lvalue.diff;patch=1 \
+           file://fix-gen.patch;patch=1 \
+           file://include.patch;patch=1"
 
 do_stage() {
 	oe_libinstall -a libfl ${STAGING_LIBDIR}