vala-native: add git version (DP=-1)
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Thu, 5 Mar 2009 14:40:07 +0000 (15:40 +0100)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Thu, 5 Mar 2009 14:40:22 +0000 (15:40 +0100)
packages/vala/vala-native_0.5.7.bb
packages/vala/vala-native_git.bb [new file with mode: 0644]
packages/vala/vala.inc

index bc99ebf..735c93f 100644 (file)
@@ -2,3 +2,9 @@ require vala_${PV}.bb
 
 inherit native
 DEPENDS = "glib-2.0-native"
+
+# work around timestamp problem in tarball
+do_compile_prepend() {
+       touch gobject/gobject.vala.stamp
+}
+    
diff --git a/packages/vala/vala-native_git.bb b/packages/vala/vala-native_git.bb
new file mode 100644 (file)
index 0000000..b33dbc2
--- /dev/null
@@ -0,0 +1,14 @@
+require vala_0.5.7.bb
+# vala from git always needs the latest released version to compile itself
+DEPENDS = "vala-native"
+
+SRCREV = "633493367757a8e5f663c69c975bf525ab8a6d53"
+PV := "0.5.7+0.5.8pre01-git${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "${GNOME_GIT}/vala;protocol=git;branch=master"
+S = "${WORKDIR}/git"
+
+inherit native
+DEPENDS = "glib-2.0-native"
index 492bf0f..f5ea1ee 100644 (file)
@@ -17,8 +17,4 @@ inherit autotools autotools_stage lib_package
 
 EXTRA_OECONF = "--enable-vapigen"
 
-do_compile_prepend() {
-       touch gobject/gobject.vala.stamp
-}
-
 FILES_${PN}-doc += ${datadir}/devhelp