summaryrefslogtreecommitdiff
path: root/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2005-07-24 10:55:14 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-24 10:55:14 +0000
commit75f80bd6098c69f781f2138a88ea390aff87c008 (patch)
treef226f1062904987eccd5735d864c61782c531339 /packages/gpe-helpviewer/gpe-helpviewer_1.0.bb
parent7243a03c64635a2485cc6c06dcb4ed2b1cc930be (diff)
parente03b24080735335d247a8d48390805077bff385e (diff)
propagate from branch 'org.openembedded.dev' (head 90fd17f3fbfc8174e5d80133eab8cd54f5d4ae54)
to branch 'org.openembedded.nslu2-linux' (head cd3e906a30a7bdfaa5b587b2444f3621499b8f84)
Diffstat (limited to 'packages/gpe-helpviewer/gpe-helpviewer_1.0.bb')
-rw-r--r--packages/gpe-helpviewer/gpe-helpviewer_1.0.bb50
1 files changed, 45 insertions, 5 deletions
diff --git a/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb b/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb
index e7fff8fc66..eb9c9ba910 100644
--- a/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb
+++ b/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb
@@ -1,19 +1,59 @@
-PR = "r1"
+PR = "r2"
-SRC_URI = "http://stag.mind.be/gpe-helpviewer.tar.bz2"
+DESCRIPTION = "A helpviewer based on gtk+webcore"
+LICENSE = "GPL"
+
+SRC_URI = "http://stag.mind.be/gpe-helpviewer-${PV}.tar.bz2"
+
+DEPENDS = "osb-nrcit"
+RDEPENDS = "gpe-helpviewer-doc"
-DEPENDS = "gtkhtml-3.0 gpe-helpviewer-${PN}-doc"
S = "${WORKDIR}/gpe-helpviewer"
inherit autotools
do_install() {
- install -d ${D}${docdir}/gpe-helpviewer
- install -m 0644 ${S}/gpe-helpviewer.html ${D}${docdir}/gpe-helpviewer
+ install -d ${D}${docdir}/gpe
+ install -m 0644 ${S}/gpe-helpviewer.html ${D}${docdir}/gpe/
install -d ${D}/usr/share/applications
install -m 0644 ${S}/gpe-helpviewer.desktop ${D}/usr/share/applications/gpe-helpviewer.desktop
install -d ${D}/usr/share/pixmaps
install -m 0644 ${S}/gpe-help.png ${D}/usr/share/pixmaps/gpe-help.png
autotools_do_install
}
+
+pkg_postinst_${PN}-doc () {
+ #!/bin/sh
+ if [ "x$D" != "x" ]; then
+ if [ -e /etc/gpe/gpe-help.conf ]; then
+ echo gpe-helpviewer = /usr/share/doc/gpe/gpe-helpviewer.html >> /etc/gpe/gpe-help.conf
+ else
+ echo [Help] >> /etc/gpe/gpe-help.conf
+ echo gpe-helpviewer = /usr/share/doc/gpe/gpe-helpviewer.html >> /etc/gpe/gpe-help.conf
+ fi
+ if [ -x /usr/bin/gpe-helpindex ]; then
+ echo generating help-index
+ gpe-helpindex
+ else
+ echo not generating index for gpe-helpviewer
+ fi
+ fi
+}
+
+pkg_postrm_${PN}-doc () {
+ #!/bin/sh
+ if [ "x$D" != "x" ]; then
+ if [ -e /etc/gpe/gpe-help.conf ]; then
+ sed '/^\<gpe-helpviewer\>/d' /etc/gpe/gpe-help.conf > /tmp/gpe-help.conf
+ mv /tmp/gpe-help.conf /etc/gpe/gpe-help.conf
+ fi
+ if [ -x /usr/bin/gpe-helpindex ]; then
+ echo generating help-index
+ gpe-helpindex
+ else
+ echo not generating index for gpe-helpviewer
+ fi
+ fi
+}
+