diff options
author | nslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net> | 2004-12-31 07:40:09 +0000 |
---|---|---|
committer | nslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net> | 2004-12-31 07:40:09 +0000 |
commit | 7d6006735f2de129c026f9ff3d55f854591124df (patch) | |
tree | 3d220c42a2367e6730a3ea24bacf919aa4991bfc /packages/sparse | |
parent | 49275ccd3ebfa3ae13b2a6b49402c09cd88cc719 (diff) |
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded
2004/12/30 23:33:57-08:00 (none)!ggilbert
Adding licenses
BKrev: 41d50259A1gWI8c_Qj68LM4jway6jw
Diffstat (limited to 'packages/sparse')
-rw-r--r-- | packages/sparse/sparse_snapshot.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/sparse/sparse_snapshot.bb b/packages/sparse/sparse_snapshot.bb index e69de29bb2..e1caf07c9b 100644 --- a/packages/sparse/sparse_snapshot.bb +++ b/packages/sparse/sparse_snapshot.bb @@ -0,0 +1,26 @@ +SECTION = "devel" +def get_snapshot_date(d): + import bb + cvsdate = bb.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}" +LICENSE = "OSL" +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 +} |