[oe-commits] Martin Jansa : calc: add 0.0. 2 tag and lower default preference for untagged version

git version control git at git.openembedded.org
Tue Nov 3 10:42:20 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: 3262724e9c338d5ebfe8c09042e639e71b74f4c6
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3262724e9c338d5ebfe8c09042e639e71b74f4c6

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Tue Nov  3 11:41:32 2009 +0100

calc: add 0.0.2 tag and lower default preference for untagged version

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

---

 recipes/calc/calc_0.0.1.bb |    3 +--
 recipes/calc/calc_0.0.2.bb |   23 +++++++++++++++++++++++
 recipes/calc/calc_git.bb   |    1 +
 3 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/recipes/calc/calc_0.0.1.bb b/recipes/calc/calc_0.0.1.bb
index bee5b01..9f15a32 100644
--- a/recipes/calc/calc_0.0.1.bb
+++ b/recipes/calc/calc_0.0.1.bb
@@ -4,11 +4,10 @@ AUTHOR = "Sebastian Spaeth <Sebastian at SSpaeth.de>"
 LICENSE  = "MIT"
 RDEPENDS = "python-elementary python python-edbus"
 SECTION = "x11/application"
-PV = "0.0.1"
 PR = "r1"
 
 
-SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master;tag=0.0.1"
+SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master;tag=${PV}"
 S = "${WORKDIR}/git"
 
 do_install(){
diff --git a/recipes/calc/calc_0.0.2.bb b/recipes/calc/calc_0.0.2.bb
new file mode 100644
index 0000000..9f15a32
--- /dev/null
+++ b/recipes/calc/calc_0.0.2.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "A simple calculator which is elementary-themed"
+HOMEPAGE = "http://github.com/spaetz/calc"
+AUTHOR = "Sebastian Spaeth <Sebastian at SSpaeth.de>"
+LICENSE  = "MIT"
+RDEPENDS = "python-elementary python python-edbus"
+SECTION = "x11/application"
+PR = "r1"
+
+
+SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master;tag=${PV}"
+S = "${WORKDIR}/git"
+
+do_install(){
+        install -d ${D}${datadir}/applications
+        install -m 0644 ${S}/data/elementary-calculator.desktop ${D}${datadir}/applications/
+        install -d ${D}${datadir}/pixmaps
+        install -m 0644 ${S}/data/calculator.png ${D}${datadir}/pixmaps/
+        install -d ${D}${bindir}
+        install -m 0744 ${S}/calc ${D}${bindir}/
+}
+
+FILES_${PN} += "${prefix}/share/pixmaps"
+FILES_${PN} += "${prefix}/share/applications"
diff --git a/recipes/calc/calc_git.bb b/recipes/calc/calc_git.bb
index f37e780..6ce1560 100644
--- a/recipes/calc/calc_git.bb
+++ b/recipes/calc/calc_git.bb
@@ -9,6 +9,7 @@ SRCREV ?= "1c17792094eb"
 PV = "0.0.1+r${SRCREV}"
 PR = "r1"
 
+DEFAULT_PREFERENCE = "-1"
 
 SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master"
 S = "${WORKDIR}/git"





More information about the Openembedded-commits mailing list