[oe-commits] Martin Jansa : bt-gps: fix hardcoded paths, fix QA issues, use bindir/ datadir variables

git version control git at git.openembedded.org
Wed Feb 16 19:17:34 UTC 2011


Module: openembedded.git
Branch: master
Commit: c3910373895f5285b25281a6ef2190b1f187af7c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c3910373895f5285b25281a6ef2190b1f187af7c

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Wed Feb 16 20:16:33 2011 +0100

bt-gps: fix hardcoded paths, fix QA issues, use bindir/datadir variables

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/bt-gps/bt-gps.bb |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/recipes/bt-gps/bt-gps.bb b/recipes/bt-gps/bt-gps.bb
index cc2c270..5be053c 100644
--- a/recipes/bt-gps/bt-gps.bb
+++ b/recipes/bt-gps/bt-gps.bb
@@ -1,22 +1,21 @@
 DESCRIPTION = "Turns your Neo Freerunner into a bluetooth GPS"
 SECTION = "console/network"
 PRIORITY = "optional"
-LICENSE = "GPL"
+LICENSE = "GPLv3+"
 RDEPENDS_${PN} = "python python-pygtk gps-utils"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "http://handheldshell.com/software/fso/btgps.tgz  \
-	  "
-
-#inherit autotools
+SRC_URI = "http://handheldshell.com/software/fso/btgps.tgz"
+SRC_URI[md5sum] = "6e0443d09448a5cfdb1d560cfd699a6b"
+SRC_URI[sha256sum] = "ca567348c1f8d904f50fe06de83959dcc5b840e12e336251ab216ca5304e3bf0"
 
 S = ${WORKDIR}/bluetooth
 
 do_install() {
-        install -d ${D}/usr/share/applications
-        install -d ${D}/usr/bin
-        install -m 0755 ${S}/BtGPS.py ${D}/usr/bin
-        install -m 0755 ${S}/btgps.desktop ${D}/usr/share/applications
+        install -d ${D}${datadir}/applications
+        install -d ${D}${bindir}
+        install -m 0755 ${S}/BtGPS.py ${D}${bindir}
+        install -m 0755 ${S}/btgps.desktop ${D}${datadir}/applications
 }
 
 do_configure() {
@@ -24,8 +23,11 @@ do_configure() {
 }
 
 do_compile() {
-        exit 0
+        # fix hardcoded path
+        sed -i "s#/usr/bin/python#env python#g" BtGPS.py
+        sed -i "s#/usr/bin/sdptool#${bindir}/sdptool#g" BtGPS.py
+        # fix QA issues
+        sed -i "s/Categories=GTK;Application;PIM/Categories=Utility;/g" btgps.desktop
+        sed -i "s/Comment=BT GPS/Comment=Turns your Neo Freerunner into a bluetooth GPS/g" btgps.desktop
+        sed -i "/^Encoding/d; /^SingleInstance/d; /^Categories=Office;/d" btgps.desktop
 }
-
-SRC_URI[md5sum] = "6e0443d09448a5cfdb1d560cfd699a6b"
-SRC_URI[sha256sum] = "ca567348c1f8d904f50fe06de83959dcc5b840e12e336251ab216ca5304e3bf0"





More information about the Openembedded-commits mailing list