Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / sparse / sparse_snapshot.oe
1 SECTION = "devel"
2 def get_snapshot_date(d):
3         import oe
4         cvsdate = oe.data.getVar('CVSDATE', d, 1)
5         if not cvsdate:
6                 return ""
7         y = cvsdate[0:4]
8         m = cvsdate[4:6]
9         d = cvsdate[6:8]
10         return "%s-%s-%s" % (y, m, d)
11
12 DESCRIPTION = "Sparse is a semantic parser of source files: it's neither a \
13 compiler (although it could be used as a front-end for one) nor is it a \
14 preprocessor (although it contains as a part of it a preprocessing phase)."
15 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
16 PV = "0.0${CVSDATE}"
17
18 SRC_URI = "http://www.codemonkey.org.uk/projects/bitkeeper/sparse/sparse-${@get_snapshot_date(d)}.tar.gz \
19            file://compile.patch;patch=1 \
20            file://vars.patch;patch=1"
21 S = "${WORKDIR}/sparse-bk"
22
23 do_install () {
24         install -d ${D}/${bindir}
25         install -m 0755 check ${D}/${bindir}/sparse
26 }