X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=meta-openvuplus%2Frecipes-vuplus%2Fe2openplugins%2Fenigma2-plugin-extensions-openwebif.bb;h=3f84aafbab360a61c01b6bf664b9311db2560cc3;hb=9edbde3865b6b3766ca3f99b4b2bd6fabe78c977;hp=889c5cb3ca9aa04d50c8e69634c5615789fa7e95;hpb=62c6cf38a4fc3b98419de1d11e50320c2acfd453;p=vuplus_openvuplus_3.0 diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb index 889c5cb..3f84aaf 100644 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb @@ -8,13 +8,16 @@ RDEPENDS_${PN} = "python-cheetah python-json python-unixadmin python-misc python python-shell aio-grab python-compression python-numbers python-zopeinterface \ " -SRCREV_pn-${PN}="c30a9aefcf87387e90f0ddbac61ef1aada8cbd6c" +SRCREV_pn-${PN}="d84307958746e6a597b43defe5bd1cb78fd745c8" inherit gitpkgv PV = "1+git${SRCPV}" PKGV = "1+git${GITPKGV}" +PR = "r3" require openplugins-distutils.inc +SRC_URI += " file://openwebif_solo4k.patch;striplevel=1 " + # Just a quick hack to "compile" it do_compile() { cheetah-compile -R --nobackup ${S}/plugin @@ -27,4 +30,39 @@ do_install_append() { cp -rp ${S}/plugin/* ${D}${PLUGINPATH} } +python do_package_prepend () { + boxtypes = [ + ('bm750', 'duo.jpg', 'vu_normal.png'), + ('vuduo2', 'duo2.jpg', 'vu_duo2.png'), + ('vusolo', 'solo.jpg', 'vu_normal.png'), + ('vusolo2', 'solo2.jpg', 'vu_normal.png'), + ('vusolose', 'solose.jpg', 'vu_normal.png'), + ('vuzero', 'zero.jpg', 'vu_normal.png'), + ('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'), + ('vuuno', 'uno.jpg', 'vu_normal.png'), + ('vuultimo4k', 'unknown.jpg', 'vu_normal.png'), + ('vuuno4k', 'unknown.jpg', 'vu_normal.png'), + ] + import os + top = '${D}${PLUGINPATH}/public/images/' + target_box = 'unknown.jpg' + target_remote = 'ow_remote.png' + for x in boxtypes: + if x[0] == '${MACHINE}': + target_box = x[1] + target_remote = x[2] + break + for root, dirs, files in os.walk(top + 'boxes', topdown=False): + for name in files: + if target_box != name and name != 'unknown.jpg': + os.remove(os.path.join(root, name)) + for root, dirs, files in os.walk(top + 'remotes', topdown=False): + for name in files: + if target_remote != name and name != 'ow_remote.png': + os.remove(os.path.join(root, name)) +} + FILES_${PN} = "${PLUGINPATH}" + +do_populate_sysroot[noexec] = "1" +