diff options
author | Rene Wagner <rw@handhelds.org> | 2006-05-13 15:42:03 +0200 |
---|---|---|
committer | Rene Wagner <rw@handhelds.org> | 2006-05-13 15:42:03 +0200 |
commit | 5a5346dfbec459c10d9e61e16e125b83975a1ef1 (patch) | |
tree | 342e16f3fe790d03b93294344e6154459888939f /org.handhelds.familiar/packages/gpe-helpviewer |
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e35772d79306d1d9de19c12b23681618532d.
Diffstat (limited to 'org.handhelds.familiar/packages/gpe-helpviewer')
-rw-r--r-- | org.handhelds.familiar/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/org.handhelds.familiar/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb b/org.handhelds.familiar/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb new file mode 100644 index 0000000..eb9c9ba --- /dev/null +++ b/org.handhelds.familiar/packages/gpe-helpviewer/gpe-helpviewer_1.0.bb @@ -0,0 +1,59 @@ +PR = "r2" + +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" + + +S = "${WORKDIR}/gpe-helpviewer" + +inherit autotools + +do_install() { + 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 +} + |