blob: 710d18bd58a6bc1e76661cf53fd16d0419007b1b (
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
26
27
28
|
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;apply=yes \
file://vars.patch;apply=yes"
S = "${WORKDIR}/sparse-bk"
do_install () {
install -d ${D}${bindir}
install -m 0755 check ${D}${bindir}/sparse
}
SRC_URI[md5sum] = "6016c8271e4b8640d8cd97719b120e59"
SRC_URI[sha256sum] = "3dea88d313c565e84fea5638da30894fea4e63e8d618e2a86f6e231b3dec6182"
|