summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-09-13 21:52:00 +0000
committerChris Larson <clarson@kergoth.com>2004-09-13 21:52:00 +0000
commit32c246c2f26bb1a10e844d3148fcfdebb5435230 (patch)
tree6c5da49277561b052fd3b537a81546e45009f683
parent1227eeab188a25d74bcd18394f51eed0085d0328 (diff)
Add patches to fix the 'sparse' build.
BKrev: 414616808hhiYanFWyTg2vGHAiCl5w
-rw-r--r--sparse/files/compile.patch0
-rw-r--r--sparse/files/vars.patch0
-rw-r--r--sparse/sparse_snapshot.oe25
3 files changed, 25 insertions, 0 deletions
diff --git a/sparse/files/compile.patch b/sparse/files/compile.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/sparse/files/compile.patch
diff --git a/sparse/files/vars.patch b/sparse/files/vars.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/sparse/files/vars.patch
diff --git a/sparse/sparse_snapshot.oe b/sparse/sparse_snapshot.oe
index e69de29bb2..3c49eb4774 100644
--- a/sparse/sparse_snapshot.oe
+++ b/sparse/sparse_snapshot.oe
@@ -0,0 +1,25 @@
+def get_snapshot_date(d):
+ import oe
+ cvsdate = oe.data.getVar('CVSDATE', d, 1)
+ if not cvsdate:
+ return ""
+ y = cvsdate[0:4]
+ m = cvsdate[4:6]
+ d = cvsdate[6:8]
+ return "%s-%s-%s" % (y, m, d)
+
+DESCRIPTION = "Sparse is a semantic parser of source files: it's neither a
+compiler (although it could be used as a front-end for one) nor is it a
+preprocessor (although it contains as a part of it a preprocessing phase)."
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+PV = "0.0${CVSDATE}"
+
+SRC_URI = "http://www.codemonkey.org.uk/projects/bitkeeper/sparse/sparse-${@get_snapshot_date(d)}.tar.gz \
+ file://compile.patch;patch=1 \
+ file://vars.patch;patch=1"
+S = "${WORKDIR}/sparse-bk"
+
+do_install () {
+ install -d ${D}/${bindir}
+ install -m 0755 check ${D}/${bindir}/sparse
+}