summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-05 12:49:09 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:24 +0000
commit039a1b4459f721f2b5af8a705787f8949b7de080 (patch)
treec0adaf5c1ccd2a093b718b0183b720f77c9edf6d /meta
parent5c834057cbb1a51d97a3779a5d7835f462c98567 (diff)
downloadopenembedded-core-039a1b4459f721f2b5af8a705787f8949b7de080.tar.gz
openembedded-core-039a1b4459f721f2b5af8a705787f8949b7de080.tar.bz2
openembedded-core-039a1b4459f721f2b5af8a705787f8949b7de080.zip
bison: Convert to BBCLASSEXTEND
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/bison/bison-native_2.0.bb18
-rw-r--r--meta/packages/bison/bison_2.0.bb4
2 files changed, 4 insertions, 18 deletions
diff --git a/meta/packages/bison/bison-native_2.0.bb b/meta/packages/bison/bison-native_2.0.bb
deleted file mode 100644
index 84bdb91ed9..0000000000
--- a/meta/packages/bison/bison-native_2.0.bb
+++ /dev/null
@@ -1,18 +0,0 @@
-require bison_${PV}.bb
-PR = "r2"
-
-inherit native autotools
-
-do_stage() {
- rm -f ${STAGING_BINDIR}/yacc
- rm -f ${STAGING_BINDIR}/bison
- install -m 0755 src/bison ${STAGING_BINDIR}/
- cat >${STAGING_BINDIR}/yacc <<EOF
-#!/bin/sh
-exec ${STAGING_BINDIR}/bison -y "\$@"
-EOF
- chmod a+rx ${STAGING_BINDIR}/yacc
- install -d ${STAGING_DATADIR}/bison/m4sugar
- install -m 0755 data/c.m4 data/glr.c data/lalr1.cc data/yacc.c ${STAGING_DATADIR}/bison/
- install -m 0755 data/m4sugar/m4sugar.m4 ${STAGING_DATADIR}/bison/m4sugar/
-}
diff --git a/meta/packages/bison/bison_2.0.bb b/meta/packages/bison/bison_2.0.bb
index edf549f442..6271adb1dd 100644
--- a/meta/packages/bison/bison_2.0.bb
+++ b/meta/packages/bison/bison_2.0.bb
@@ -7,4 +7,8 @@ PRIORITY = "optional"
SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
file://m4.patch;patch=1"
+PR = "r3"
+
inherit autotools
+
+BBCLASSEXTEND = "native"