Add wrt-widgets 46/25846/2
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 8 Aug 2014 11:03:21 +0000 (13:03 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Mon, 11 Aug 2014 07:50:30 +0000 (09:50 +0200)
wrt-widgets contains web applications that can be launched as native
applications using crosswalk (and tizen-extensions-crosswalk).

Change-Id: I05f1fa49108b9ab4f1349b978568cdd1dd7a805b
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc [new file with mode: 0644]
recipes-tizen/wrt-widgets/wrt-widgets.inc [new file with mode: 0644]
recipes-tizen/wrt-widgets/wrt-widgets_git.bb [new file with mode: 0644]

diff --git a/recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc b/recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/recipes-tizen/wrt-widgets/wrt-widgets.inc b/recipes-tizen/wrt-widgets/wrt-widgets.inc
new file mode 100644 (file)
index 0000000..12ad4fa
--- /dev/null
@@ -0,0 +1,113 @@
+DESCRIPTION = "Wrt-widgets Installer"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Web Framework/Web Run Time"
+LICENSE = "Apache-2.0"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by wrt-widgets
+
+
+RDEPENDS = ""
+#RDEPENDS of wrt-widgets (${PN})
+RDEPENDS_${PN} += "libtzplatform-config"
+RDEPENDS_${PN} += "desktop-skin"
+
+
+DEPENDS = ""
+#DEPENDS of wrt-widgets
+DEPENDS += "tizen-platform-config"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/wrt-widgets.manifest .
+}
+do_patch_append() {
+    bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+}
+
+do_install() {
+ echo export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+ mkdir -p ${D}/${prefix}/bin
+ cp install_widgets.sh ${D}/${prefix}/bin
+ cp prepare_widgets.sh ${D}/${prefix}/bin
+ mkdir -p  ${D}/${prefix}/share/widget_demo
+ cp -r apps/*.wgt ${D}/${prefix}/share/widget_demo/
+ #cp -r apps/*.png ${D}/${prefix}/share/widget_demo/
+ #cp -r apps/*.desktop ${D}/${prefix}/share/widget_demo/
+ cp install.conf ${D}/${prefix}/share/widget_demo/
+ # install xwalk preinstall service in user session
+ mkdir -p ${D}/lib/systemd/user
+ install -m 644 xwalk_widgets_preinstall.service ${D}/lib/systemd/user/
+}
+
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    # setup xwalk preinstall service (inside user session)
+    mkdir -p /lib/systemd/user/default.target.wants/
+    ln -sf ../xwalk_widgets_preinstall.service /lib/systemd/user/default.target.wants/
+
+}
+
+pkg_postrm_${PN}() {
+    #!/bin/sh -e
+
+    rm -f /lib/systemd/user/default.target.wants/xwalk_widgets_preinstall.service
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " wrt-widgets "
+
+wrt-widgets_files = ""
+wrt-widgets_files += "${prefix}/share/widget_demo/*"
+wrt-widgets_files += "${prefix}/bin/install_widgets.sh"
+wrt-widgets_files += "${prefix}/bin/prepare_widgets.sh"
+wrt-widgets_files += "/lib/systemd/user/xwalk_widgets_preinstall.service"
+MANIFESTFILES_${PN} = "wrt-widgets.manifest"
+
+FILES_${PN} = "${wrt-widgets_files}"
+
+PKG_wrt-widgets= "wrt-widgets"
+
+require wrt-widgets-extraconf.inc
+
diff --git a/recipes-tizen/wrt-widgets/wrt-widgets_git.bb b/recipes-tizen/wrt-widgets/wrt-widgets_git.bb
new file mode 100644 (file)
index 0000000..4cadfd2
--- /dev/null
@@ -0,0 +1,10 @@
+require wrt-widgets.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/profile/common/wrt-widgets;tag=044e7781b29f2232cd25fa8bea1db229b7077bf0;nobranch=1"
+
+BBCLASSEXTEND += " native "
+