diff options
Diffstat (limited to 'packages/bison/bison-native_2.3.bb')
-rw-r--r-- | packages/bison/bison-native_2.3.bb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/bison/bison-native_2.3.bb b/packages/bison/bison-native_2.3.bb new file mode 100644 index 0000000000..ec2f269eec --- /dev/null +++ b/packages/bison/bison-native_2.3.bb @@ -0,0 +1,20 @@ +require bison_${PV}.bb +SECTION = "devel" +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/bison-${PV}" +S = "${WORKDIR}/bison-${PV}" + +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/ +} |