diff options
author | Koen Kooi <koen@openembedded.org> | 2009-06-17 19:44:30 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-06-17 19:44:30 +0200 |
commit | fb03df419a2bbea318b00655957d4f9e4b49c4ab (patch) | |
tree | ba00b3b601e904109749071a4e584a0b1b0e8479 /recipes/angstrom/e-wm-config-angstrom.bb | |
parent | 6b86436a0e986cb6cd0cefecff91479948f5ee79 (diff) |
e-wm config angstrom: add support for more flavours
* also automagically package flavours
Diffstat (limited to 'recipes/angstrom/e-wm-config-angstrom.bb')
-rw-r--r-- | recipes/angstrom/e-wm-config-angstrom.bb | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/recipes/angstrom/e-wm-config-angstrom.bb b/recipes/angstrom/e-wm-config-angstrom.bb index 04c35be2b5..8b92b8cf3e 100644 --- a/recipes/angstrom/e-wm-config-angstrom.bb +++ b/recipes/angstrom/e-wm-config-angstrom.bb @@ -7,16 +7,9 @@ RRECOMMENDS_${PN} = "places" PR = "r8" SRC_URI = " \ - file://e.src \ - file://icon.png \ - file://*.src \ - file://profile.desktop \ + file://configs \ " -S = "${WORKDIR}/angstrom" - -do_configure() { - cp ${WORKDIR}/*.src ${WORKDIR}/*.desktop ${WORKDIR}/*.png ${S}/ -} +S = "${WORKDIR}/configs" # [09:16:17] * koen mumbles something about binary config file # [09:16:19] <raster> eet -d e.cfg config e.src @@ -25,20 +18,29 @@ do_configure() { # [09:17:12] <raster> will re-encode do_compile() { +rm ${S}/patches -rf +for dir in ${S}/* ; do + cd $dir for i in *.src ; do eet -e $(echo $i | sed s:src:cfg:g) config $i 1 done +done } do_install() { - install -d ${D}${datadir}/enlightenment/data/config/angstrom/ + for i in ${WORKDIR}/configs/* ; do + install -d ${D}${datadir}/enlightenment/data/config/$(basename $i)/ - install -m 0644 ${S}/*.cfg ${D}${datadir}/enlightenment/data/config/angstrom/ - install -m 0644 ${S}/*.desktop ${D}${datadir}/enlightenment/data/config/angstrom/ - install -m 0644 ${S}/*.png ${D}${datadir}/enlightenment/data/config/angstrom/ + install -m 0644 ${S}/$(basename $i)/*.cfg ${D}${datadir}/enlightenment/data/config/$(basename $i)/ + install -m 0644 ${S}/$(basename $i)/*.desktop ${D}${datadir}/enlightenment/data/config/$(basename $i)/ + install -m 0644 ${S}/$(basename $i)/*.png ${D}${datadir}/enlightenment/data/config/$(basename $i)/ + done } -FILES_${PN} = "${datadir}/enlightenment" +python populate_packages_prepend () { + angstrom_e_dir = bb.data.expand('${datadir}/enlightenment/data/config', d) + do_split_packages(d, angstrom_e_dir, '(.*)', 'e-wm-config-%s', 'E17 window manager %s config', extra_depends='', allow_links=True, allow_dirs=True) +} -PACKAGE_ARCH_${PN} = "all" +PACKAGE_ARCH = "all" |