X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=meta-openvuplus%2Frecipes-vuplus%2Fe2openplugins%2Fenigma2-plugin-extensions-openwebif.bb;h=65ac1c682aa95c6cf0806112d2ed87b5fe6bd552;hp=f6d4880151ceea6ca6f9a1f5153387734ae828c8;hb=9be80aff5aaa5c8cf4a05fe6dca7b6b9006b9e4e;hpb=9127dbed235b4892155fd15bcd8cbbaf070ccf97 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 f6d4880..65ac1c6 100644 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb @@ -6,15 +6,13 @@ LIC_FILES_CHKSUM = "file://README;firstline=10;lastline=12;md5=9c14f792d0aeb54e1 DEPENDS = "python-cheetah-native" RDEPENDS_${PN} = "python-cheetah python-json python-unixadmin python-misc python-pyopenssl aio-grab" -inherit gitpkgv +inherit gitpkgv pythonnative PV = "0.1+git${SRCPV}" PKGV = "0.1+git${GITPKGV}" -PR = "r0.76" +PR = "r0.81" require openplugins.inc -SRC_URI += "file://openwebif_8001_8002.patch;patch=1;pnum=1" - # Just a quick hack to "compile" it do_compile() { cheetah-compile -R --nobackup ${S}/plugin @@ -28,31 +26,31 @@ do_install() { } python do_package_prepend () { - boxtypes = [ - ('bm750', 'duo.jpg', 'vu_normal.png'), - ('vuduo2', 'duo2.jpg', 'vu_normal.png'), - ('vusolo', 'solo.jpg', 'vu_normal.png'), - ('vusolo2', 'solo2.jpg', 'vu_normal.png'), - ('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'), - ('vuuno', 'uno.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)) + boxtypes = [ + ('bm750', 'duo.jpg', 'vu_normal.png'), + ('vuduo2', 'duo2.jpg', 'vu_normal.png'), + ('vusolo', 'solo.jpg', 'vu_normal.png'), + ('vusolo2', 'solo2.jpg', 'vu_normal.png'), + ('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'), + ('vuuno', 'uno.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}"