summaryrefslogtreecommitdiff
path: root/packages/bison
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2008-09-03 12:44:53 +0000
committerStanislav Brabec <utx@penguin.cz>2008-09-03 12:44:53 +0000
commite6d60a638dbeeff8d57561a31d6a6bc0c0c729ea (patch)
tree31c79b3b29ad7b803d82f1a5f865caaaed4f7585 /packages/bison
parenta91d36ab71dc62c24699a04ae807b9314e127522 (diff)
bison updated to version 2.3:
* required for the latest webkit-gtk (2.0 generates bad code) * version 2.0 kept, as it is listed in preferred-om-2008-versions.inc.
Diffstat (limited to 'packages/bison')
-rw-r--r--packages/bison/bison-native_2.3.bb20
-rw-r--r--packages/bison/bison_2.3.bb10
-rw-r--r--packages/bison/files/.mtn2git_empty (renamed from packages/bison/bison-2.0/.mtn2git_empty)0
-rw-r--r--packages/bison/files/m4.patch (renamed from packages/bison/bison-2.0/m4.patch)0
4 files changed, 30 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/
+}
diff --git a/packages/bison/bison_2.3.bb b/packages/bison/bison_2.3.bb
new file mode 100644
index 0000000000..edf549f442
--- /dev/null
+++ b/packages/bison/bison_2.3.bb
@@ -0,0 +1,10 @@
+DESCRIPTION = "GNU Project parser generator (yacc replacement)."
+HOMEPAGE = "http://www.gnu.org/software/bison/"
+LICENSE = "GPL"
+SECTION = "devel"
+PRIORITY = "optional"
+
+SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
+ file://m4.patch;patch=1"
+
+inherit autotools
diff --git a/packages/bison/bison-2.0/.mtn2git_empty b/packages/bison/files/.mtn2git_empty
index e69de29bb2..e69de29bb2 100644
--- a/packages/bison/bison-2.0/.mtn2git_empty
+++ b/packages/bison/files/.mtn2git_empty
diff --git a/packages/bison/bison-2.0/m4.patch b/packages/bison/files/m4.patch
index b62fe89d04..b62fe89d04 100644
--- a/packages/bison/bison-2.0/m4.patch
+++ b/packages/bison/files/m4.patch