From a38e7ff2810e55455c7ff7b01d4882344b420e18 Mon Sep 17 00:00:00 2001 From: Michael 'Mickey' Lauer Date: Sun, 25 Apr 2010 20:43:24 +0200 Subject: vala.bbclass and assorted recipes: create own task for installing .vapi and .deps instead of using do_stage() This allows to move most FSO packages to new staging --- classes/vala.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/vala.bbclass b/classes/vala.bbclass index 433b64e87e..e6b601bff7 100644 --- a/classes/vala.bbclass +++ b/classes/vala.bbclass @@ -6,14 +6,19 @@ DEPENDS += "vala-native" FILES_${PN}-dev += "\ ${datadir}/vala/vapi/*.vapi \ ${datadir}/vala/vapi/*.deps \ + ${datadir}/gir-1.0 \ " VALA_DONT_STAGE_VAPIS ?= "\(/config.vapi$\)\|\(/config.deps$\)" # .vapi and .deps files are arch independent and need to be present in the # staging datadir for the native vala compiler -do_stage_append() { +vala_do_stage_vapi() { install -d ${STAGING_DATADIR_NATIVE}/vala/vapi for VALAFILE in `find . -name "*.vapi" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${STAGING_DATADIR_NATIVE}/vala/vapi/; done for VALAFILE in `find . -name "*.deps" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${STAGING_DATADIR_NATIVE}/vala/vapi/; done } + +EXPORT_FUNCTIONS do_stage_vapi + +addtask stage_vapi after do_populate_staging before do_package -- cgit v1.2.3