summaryrefslogtreecommitdiff
path: root/packages/bison/bison-native_2.3.bb
diff options
context:
space:
mode:
authorThomas Kunze <thommycheck@gmx.de>2008-09-04 10:17:18 +0000
committerThomas Kunze <thommycheck@gmx.de>2008-09-04 10:17:18 +0000
commitae63a4dad7b06af132c6ba5bdb5fb98b2231525a (patch)
tree62d8fae898721cffb503baa6c43ba795427045b9 /packages/bison/bison-native_2.3.bb
parent309c832c2c21ceb97fd589ebce8327d0d2bba731 (diff)
parent3c20604cd26ca8da11ac9afb669629c20355c4e4 (diff)
merge of '0d3b0d788fccfc1c07e0da07e8f8596c062e2ef2'
and '8a4df13bdb5d6b154edb85a4b71e38ac457670a0'
Diffstat (limited to 'packages/bison/bison-native_2.3.bb')
-rw-r--r--packages/bison/bison-native_2.3.bb20
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/
+}