enigma2-skins.bb: update skins to 20110128 and define a srcref for git
[openembedded.git] / recipes / enigma2 / enigma2-skins.bb
1 DESCRIPTION = "Skins for Enigma2"
2 MAINTAINER = "Felix Domke <tmbinc@elitedvb.net>"
3
4 PACKAGES_DYNAMIC = "enigma2-skin-*"
5
6 # if you want experimental, use:
7 SRCREV="de610a460bec046f0dca9987ecba458303daaf1d"
8 SRCDATE="20110128"
9 BRANCH="master"
10 PV = "experimental-git${SRCDATE}"
11
12 PR = "r0"
13 SRC_URI="git://schwerkraft.elitedvb.net/enigma2-skins/enigma2-skins.git;protocol=git;branch=${BRANCH};tag=${SRCREV}"
14
15 FILES_${PN} += " /usr/share/enigma2 /usr/share/fonts "
16 FILES_${PN}-meta = "${datadir}/meta"
17 PACKAGES += "${PN}-meta"
18 PACKAGE_ARCH = "all"
19
20 inherit autotools
21
22 S = "${WORKDIR}/git"
23
24 python populate_packages_prepend () {
25         enigma2_skindir = bb.data.expand('${datadir}/enigma2', d)
26
27         do_split_packages(d, enigma2_skindir, '(.*?)/.*', 'enigma2-skin-%s', 'Enigma2 Skin: %s', recursive=True, match_path=True, prepend=True)
28 }
29
30 python populate_packages_append () {
31         enigma2_skindir = bb.data.expand('${datadir}/enigma2', d)
32
33         #clear rdepends by default
34         for package in bb.data.getVar('PACKAGES', d, 1).split():
35                 bb.data.setVar('RDEPENDS_' + package, '', d)
36
37         #todo add support for control files in skindir.. like plugins
38 }