summaryrefslogtreecommitdiff
path: root/recipes/tasks/task-shr-minimal.bb
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2009-11-18 09:08:23 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2009-11-18 09:57:21 +0100
commit4438e093968dc61a1989f9a27aa4b06d6d166a88 (patch)
tree49c8bdf2ec9b690a874e759e8c879bffb75b504d /recipes/tasks/task-shr-minimal.bb
parentccd7a2aa41cdc706ea4891ab5b59b361e369c7a1 (diff)
task-shr: new task for SHR distribution
Diffstat (limited to 'recipes/tasks/task-shr-minimal.bb')
-rw-r--r--recipes/tasks/task-shr-minimal.bb149
1 files changed, 149 insertions, 0 deletions
diff --git a/recipes/tasks/task-shr-minimal.bb b/recipes/tasks/task-shr-minimal.bb
new file mode 100644
index 0000000000..9b5ae8ccd7
--- /dev/null
+++ b/recipes/tasks/task-shr-minimal.bb
@@ -0,0 +1,149 @@
+DESCRIPTION = "SHR Lite Image Feed"
+PR = "r15"
+PV = "2.0"
+LICENSE = "GPL"
+
+inherit task
+
+def get_rdepends(bb, d):
+ enabled = bb.data.getVar("ENABLE_BINARY_LOCALE_GENERATION", d, 1)
+
+ # If locale is disabled, bail out
+ if not enabled:
+ return
+
+ locales = bb.data.getVar("GLIBC_GENERATE_LOCALES", d, 1)
+ if not locales or locales == "all":
+ locales = bb.data.getVar("IMAGE_LINGUAS", d, 1);
+
+ libc = bb.data.getVar('LIBC', d, 1)
+ import re
+
+ rdepends = ""
+ if not locales or locales == "all":
+ # if locales aren't specified, or user has written "all"
+ import os
+ ipkdir = bb.data.getVar('DEPLOY_DIR_IPK', d, 1)
+
+ regexp1 = re.compile(libc+"-binary-localedata-.*") # search pattern
+ regexp2 = re.compile("_.*") # we want to remove all version info and file extension
+
+ for root, subFolders, files in os.walk(ipkdir):
+ for file in files:
+ if regexp1.search(file):
+ file = regexp2.sub("", file)
+ rdepends = "%s %s" % (rdepends, file)
+
+ else:
+ # if locales are specified
+ regexp1 = re.compile("\\..*") # We want to turn en_US.UTF-8 into en_US
+ regexp2 = re.compile("_") # We want to turn en_US into en-US
+
+
+ for locale in locales.split(" "):
+ locale = regexp1.sub("", locale)
+ locale = regexp2.sub("-", locale)
+ locale = str.lower(locale)
+ rdepends = "%s %s-binary-localedata-%s" % (rdepends, libc, locale)
+ return rdepends
+
+
+
+
+PACKAGES += "\
+ ${PN}-base \
+ ${PN}-cli \
+ ${PN}-fso \
+ ${PN}-audio \
+ ${PN}-x \
+ ${PN}-apps \
+ ${PN}-gtk \
+"
+
+
+
+RDEPENDS_${PN}-base = "\
+ netbase \
+ sysfsutils \
+ modutils-initscripts \
+ module-init-tools-depmod \
+ rsync \
+ screen \
+ fbset \
+ fbset-modes \
+ openssh-sftp-server \
+ cron \
+ logrotate\
+ util-linux-ng-fdisk \
+ shr-splash \
+"
+
+RDEPENDS_${PN}-cli = "\
+ screen \
+ nano \
+ iptables \
+ mtd-utils \
+ s3c24xx-gpio \
+ mickeydbus \
+ mickeyterm \
+"
+
+RDEPENDS_${PN}-fso = "\
+ fsoraw \
+ opimd-utils-cli \
+ python-codecs \
+ python-gst \
+"
+
+
+RDEPENDS_${PN}-audio = "\
+ alsa-utils-aplay \
+ alsa-utils-amixer \
+"
+
+RDEPENDS_${PN}-audio_append_om-gta01 = "\
+ alsa-scenarii-shr \
+"
+
+RDEPENDS_${PN}-audio_append_om-gta02 = "\
+ alsa-scenarii-shr \
+"
+
+RDEPENDS_${PN}-x = "\
+ glibc-utils \
+ glibc-charmap-utf-8 \
+ e-wm-config-illume-shr \
+ shr-theme-gry \
+ etk-theme-shr \
+ ${@get_rdepends(bb, d)} \
+ libx11-locale \
+ libmokoui2 \
+ xcursor-transparent-theme \
+"
+
+RDEPENDS_${PN}-apps = "\
+ fso-abyss \
+ phoneui-apps-messages \
+ phoneui-apps-contacts \
+ phoneui-apps-dialer \
+ phonefsod \
+ phoneuid \
+ libphone-ui \
+ libphone-ui-shr \
+ ffalarms \
+ shr-settings \
+ shr-theme \
+ shr-today \
+ calc \
+"
+
+
+RDEPENDS_${PN}-gtk = "\
+ openmoko-icon-theme-standard2 \
+ shr-theme-gtk-e17lookalike \
+ vala-terminal \
+ tangogps \
+ pyphonelog \
+ matchbox-keyboard-im \
+"
+