diff options
Diffstat (limited to 'recipes/sparse/sparse_snapshot.bb')
-rw-r--r-- | recipes/sparse/sparse_snapshot.bb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/sparse/sparse_snapshot.bb b/recipes/sparse/sparse_snapshot.bb new file mode 100644 index 0000000000..6a913d69ec --- /dev/null +++ b/recipes/sparse/sparse_snapshot.bb @@ -0,0 +1,25 @@ +SECTION = "devel" +def get_snapshot_date(d): + import bb + srcdate = bb.data.getVar('SRCDATE', d, 1) + if not srcdate: + return "" + y = srcdate[0:4] + m = srcdate[4:6] + d = srcdate[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)." +PV = "0.0+${SRCDATE}" +LICENSE = "OSL" +SRC_URI = "http://www.codemonkey.org.uk/projects/git-snapshots/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 +} |