[oe-commits] org.oe.dev gpe-helpviewer: replaced direct directory names use with variables. Closes 2451.

slapin commit oe at amethyst.openembedded.net
Sat May 17 22:57:00 UTC 2008


gpe-helpviewer: replaced direct directory names use with variables. Closes 2451.
* commit from Laibsch.

Author: slapin
Branch: org.openembedded.dev
Revision: c0c308f580f1d53842f1ffe4e9677c8dd631e6b5
ViewMTN: http://monotone.openembedded.org/revision/info/c0c308f580f1d53842f1ffe4e9677c8dd631e6b5
Files:
1
packages/gpe-helpviewer/gpe-helpviewer_1.0.bb
Diffs:

#
# mt diff -rfd7ebd68c9ea3ff4024f97aaf3d62f45ebe889af -rc0c308f580f1d53842f1ffe4e9677c8dd631e6b5
#
#
#
# patch "packages/gpe-helpviewer/gpe-helpviewer_1.0.bb"
#  from [0b59db3ecd7e959fdd8a7c3e7f0b122f4b6f6c8b]
#    to [92868c7c6de1862496bb9aa0d29afa555520bad4]
#
============================================================
--- packages/gpe-helpviewer/gpe-helpviewer_1.0.bb	0b59db3ecd7e959fdd8a7c3e7f0b122f4b6f6c8b
+++ packages/gpe-helpviewer/gpe-helpviewer_1.0.bb	92868c7c6de1862496bb9aa0d29afa555520bad4
@@ -1,13 +1,10 @@
-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"
+PR = "r2"
 
+SRC_URI = "http://stag.mind.be/gpe-helpviewer-${PV}.tar.bz2"
 
 S = "${WORKDIR}/gpe-helpviewer"
 
@@ -16,23 +13,23 @@ do_install() {
 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
+		install -d ${D}${datadir}/applications
+		install -m 0644 ${S}/gpe-helpviewer.desktop ${D}${datadir}/applications/gpe-helpviewer.desktop
+		install -d ${D}${datadir}/pixmaps
+		install -m 0644 ${S}/gpe-help.png ${D}${datadir}/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
+        if [ -e ${sysconfdir}/gpe/gpe-help.conf ]; then
+                echo gpe-helpviewer = ${docdir}/gpe/gpe-helpviewer.html >> ${sysconfdir}/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
+                 echo [Help] >> ${sysconfdir}/gpe/gpe-help.conf
+                 echo gpe-helpviewer = ${docdir}/gpe/gpe-helpviewer.html >> ${sysconfdir}/gpe/gpe-help.conf
         fi
-        if [ -x /usr/bin/gpe-helpindex ]; then
+        if [ -x ${bindir}/gpe-helpindex ]; then
                 echo generating help-index
                 gpe-helpindex
         else
@@ -44,11 +41,11 @@ pkg_postrm_${PN}-doc () {
 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
+        if [ -e ${sysconfdir}/gpe/gpe-help.conf ]; then
+                sed '/^\<gpe-helpviewer\>/d' ${sysconfdir}/gpe/gpe-help.conf > /tmp/gpe-help.conf
+                mv /tmp/gpe-help.conf ${sysconfdir}/gpe/gpe-help.conf
         fi
-        if [ -x /usr/bin/gpe-helpindex ]; then
+        if [ -x ${bindir}/gpe-helpindex ]; then
                 echo generating help-index
                 gpe-helpindex
         else






More information about the Openembedded-commits mailing list