[oe-commits] Robert Schuster : swt-gtk.inc: Removed need for specifying SWTVERSION, now done programmatically.
git version control
git at git.openembedded.org
Tue Feb 9 11:31:44 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 7951a6b0278c4c108301e929e4001e80b03bc03d
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7951a6b0278c4c108301e929e4001e80b03bc03d
Author: Robert Schuster <robertschuster at fsfe.org>
Date: Tue Feb 9 12:29:34 2010 +0100
swt-gtk.inc: Removed need for specifying SWTVERSION, now done programmatically.
swt3.4-gtk 3.4.2: Removed SWTVERSION.
---
recipes/swt/swt-gtk.inc | 11 ++++++-----
recipes/swt/swt3.4-gtk_3.4.2.bb | 3 +--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/recipes/swt/swt-gtk.inc b/recipes/swt/swt-gtk.inc
index 1c26a39..aa0f1ee 100644
--- a/recipes/swt/swt-gtk.inc
+++ b/recipes/swt/swt-gtk.inc
@@ -10,7 +10,6 @@ S = "${WORKDIR}/swt-source"
# A number which is used by SWT to mark the shared libraries. It can be found
# in the version.txt file inside the source directory.
-SWTVERSION = ${@bb.fatal('SWTVERSION is not defined in this swt-gtk recipe!')}
SWT_API_VERSION = ${@bb.fatal('SWT_API_VERSION is not defined in this swt-gtk recipe!')}
do_unpackpost() {
@@ -37,12 +36,14 @@ do_compile() {
addtask unpackpost after do_unpack before do_patch
do_install() {
+ local swtversion=`cat version.txt | tr -d "version. "`
+
oe_jarinstall swt-gtk-${PV}.jar swt-gtk.jar swt.jar
- oe_libinstall -so libswt-atk-gtk-${SWTVERSION} ${D}/${libdir_jni}
- oe_libinstall -so libswt-cairo-gtk-${SWTVERSION} ${D}/${libdir_jni}
- oe_libinstall -so libswt-pi-gtk-${SWTVERSION} ${D}/${libdir_jni}
- oe_libinstall -so libswt-gtk-${SWTVERSION} ${D}/${libdir_jni}
+ oe_libinstall -so libswt-atk-gtk-$swtversion ${D}/${libdir_jni}
+ oe_libinstall -so libswt-cairo-gtk-$swtversion ${D}/${libdir_jni}
+ oe_libinstall -so libswt-pi-gtk-$swtversion ${D}/${libdir_jni}
+ oe_libinstall -so libswt-gtk-$swtversion ${D}/${libdir_jni}
}
do_stage() {
diff --git a/recipes/swt/swt3.4-gtk_3.4.2.bb b/recipes/swt/swt3.4-gtk_3.4.2.bb
index 6c0a4d4..1f9b80f 100644
--- a/recipes/swt/swt3.4-gtk_3.4.2.bb
+++ b/recipes/swt/swt3.4-gtk_3.4.2.bb
@@ -1,12 +1,11 @@
require swt-gtk.inc
-PR = "r1"
+PR = "r2"
SRC_URI = "http://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.4.2-200902111700/swt-3.4.2-gtk-linux-x86.zip \
file://Makefile"
# A number which is used by SWT to mark the shared libraries.
-SWTVERSION = "3452"
SWT_API_VERSION = "3.4"
PROVIDES = "swt3.4-gtk"
More information about the Openembedded-commits
mailing list