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

Submitted by Mihai Prica on Aug. 27, 2013, 2:59 p.m.

Details

Message ID 30d70fc2b528ad0e0d9b900cd4d76a72ce05ba8c.1377613447.git.mihai.prica@intel.com
State Accepted
Commit 807285c751862aaa775db5a13293007bfb3c29df
Headers show

Commit Message

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 hide | download patch | download mbox

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 \
+"