summaryrefslogtreecommitdiff
path: root/sparse/sparse_snapshot.oe
blob: 3c49eb47743847e98d22083af362887f25d68075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
}