bison: Convert to BBCLASSEXTEND

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2009-11-05 12:49:09 +00:00
parent 5c834057cb
commit 039a1b4459
2 changed files with 4 additions and 18 deletions

View File

@@ -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/
}

View File

@@ -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"