[oe-commits] org.oe.dev opie-taskbar-images: update-alternatives for pixmaps.

polyonymous commit openembedded-commits at lists.openembedded.org
Sat Jul 7 12:26:25 UTC 2007


opie-taskbar-images: update-alternatives for pixmaps.

Author: polyonymous at openembedded.org
Branch: org.openembedded.dev
Revision: cec84fe6219f4a80315904254a401430604678dd
ViewMTN: http://monotone.openembedded.org/revision.psp?id=cec84fe6219f4a80315904254a401430604678dd
Files:
1
packages/opie-taskbar/opie-taskbar-images.inc
packages/opie-taskbar/opie-taskbar-images_cvs.bb
Diffs:

#
# mt diff -r050cc7da614b31484f65138eb5faa6715af3fc5c -rcec84fe6219f4a80315904254a401430604678dd
#
# 
# 
# patch "packages/opie-taskbar/opie-taskbar-images.inc"
#  from [d360a128f6873d3f280eb4f83502e056159dc8df]
#    to [bcc14b15dcb6f610fb2fb93ea7a22680e5dc7c34]
# 
# patch "packages/opie-taskbar/opie-taskbar-images_cvs.bb"
#  from [f3d0e51204ca5fdab33a587c2c7f69acfa799f9e]
#    to [364b475cbe870792af3b1c15affcecd9defe9c8e]
# 
============================================================
--- packages/opie-taskbar/opie-taskbar-images.inc	d360a128f6873d3f280eb4f83502e056159dc8df
+++ packages/opie-taskbar/opie-taskbar-images.inc	bcc14b15dcb6f610fb2fb93ea7a22680e5dc7c34
@@ -28,19 +28,23 @@ do_install() {
 	install -m 0644 ${WORKDIR}/pics/launcher/firstuse.jpg ${D}${palmtopdir}/pics/launcher/firstuse-240x320.jpg
 	install -m 0644 ${WORKDIR}/pics/launcher/opie-background.jpg ${D}${palmtopdir}/pics/launcher/opie-background-240x320.jpg
 
-	install -m 0644 ${WORKDIR}/pics/launcher/firstuse-480x640.jpg ${D}${palmtopdir}/pics/launcher/firstuse-480x640.jpg
-	install -m 0644 ${WORKDIR}/pics/launcher/opie-background-480x640.jpg ${D}${palmtopdir}/pics/launcher/opie-background-480x640.jpg
+        for res in 480x640 640x480 800x600 ; do
+         install -m 0644 ${WORKDIR}/pics/launcher/firstuse-${res}.jpg ${D}${palmtopdir}/pics/launcher/firstuse-${res}.jpg
+         install -m 0644 ${WORKDIR}/pics/launcher/opie-background-${res}.jpg ${D}${palmtopdir}/pics/launcher/opie-background-${res}.jpg
+        done
+}
 
-	install -m 0644 ${WORKDIR}/pics/launcher/firstuse-640x480.jpg ${D}${palmtopdir}/pics/launcher/firstuse-640x480.jpg
-	install -m 0644 ${WORKDIR}/pics/launcher/opie-background-640x480.jpg ${D}${palmtopdir}/pics/launcher/opie-background-640x480.jpg
-
-	install -m 0644 ${WORKDIR}/pics/launcher/firstuse-800x600.jpg ${D}${palmtopdir}/pics/launcher/firstuse-800x600.jpg
-	install -m 0644 ${WORKDIR}/pics/launcher/opie-background-800x600.jpg ${D}${palmtopdir}/pics/launcher/opie-background-800x600.jpg
+python do_package_prepend () {
+        reslist = ['240x320','480x640','640x480', '800x600']
+        dir = bb.data.expand('${palmtopdir}/pics/launcher/', d)
+        ft = bb.data.expand('${palmtopdir}/pics/*/*-%s.*', d)
+        pn = bb.data.getVar('PN', d, 1)
+        for res in reslist:
+         bb.data.setVar('FILES_%s-%s' % (pn,res), ft % res, d )
+         postinst = ''
+         postinst = 'update-alternatives --install %sfirstuse.jpg opie-firstuse-pixmap %sfirstuse-%s.jpg 50\n' % (dir,dir,res)
+         postinst += 'update-alternatives --install %sopie-background.jpg opie-background-pixmap %sopie-background-%s.jpg 50\n' % (dir,dir,res)
+         bb.data.setVar('pkg_postinst_%s-%s' % (pn,res),postinst, d)
 }
 
-FILES_${PN}-240x320 += " ${palmtopdir}/pics/*/*-240x320.*"
-FILES_${PN}-480x640 += " ${palmtopdir}/pics/*/*-480x640.*"
-FILES_${PN}-640x480 += " ${palmtopdir}/pics/*/*-640x480.*"
-FILES_${PN}-800x600 += " ${palmtopdir}/pics/*/*-800x600.*"
-
 PACKAGE_ARCH = "all"
============================================================
--- packages/opie-taskbar/opie-taskbar-images_cvs.bb	f3d0e51204ca5fdab33a587c2c7f69acfa799f9e
+++ packages/opie-taskbar/opie-taskbar-images_cvs.bb	364b475cbe870792af3b1c15affcecd9defe9c8e
@@ -1,5 +1,5 @@ PV = "${OPIE_CVS_PV}"
 require ${PN}.inc
 PV = "${OPIE_CVS_PV}"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "${HANDHELDS_CVS};module=opie/pics"






More information about the Openembedded-commits mailing list