Patchwork [4/5] vala.bbclass: add class from meta-oe

login
register
mail settings
Submitter Mihai Prica
Date Aug. 27, 2013, 2:59 p.m.
Message ID <30d70fc2b528ad0e0d9b900cd4d76a72ce05ba8c.1377613447.git.mihai.prica@intel.com>
Download mbox | patch
Permalink /patch/56715/
State Accepted
Commit 1655c2db362d316befdbb398cd2266ee6b384caf
Headers show

Comments

Mihai Prica - Aug. 27, 2013, 2:59 p.m.
This can be used by packages written in vala.
It is required by the Midori web-browser.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
---
 meta/classes/vala.bbclass |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta/classes/vala.bbclass

Patch

diff --git a/meta/classes/vala.bbclass b/meta/classes/vala.bbclass
new file mode 100644
index 0000000..c7db08c
--- /dev/null
+++ b/meta/classes/vala.bbclass
@@ -0,0 +1,18 @@ 
+# Vala has problems with multiple concurrent invocations
+PARALLEL_MAKE = ""
+
+# Vala needs vala-native
+DEPENDS += "vala-native"
+DEPENDS_virtclass-native += "vala-native"
+
+# Our patched version of Vala looks in STAGING_DATADIR for .vapi files
+export STAGING_DATADIR
+# Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files
+export XDG_DATA_DIRS = "${STAGING_DATADIR}"
+
+# Package additional files
+FILES_${PN}-dev += "\
+    ${datadir}/vala/vapi/*.vapi \
+    ${datadir}/vala/vapi/*.deps \
+    ${datadir}/gir-1.0 \
+"