pkgconfig.bbclass: Split out the staging function into its own class (pkgconfig_stage)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2009-06-12 16:02:13 +01:00
parent 5d09a6bd93
commit 1247e2bba2
2 changed files with 8 additions and 7 deletions

View File

@ -1,9 +1,3 @@
DEPENDS_prepend = "pkgconfig-native "
do_stage_append () {
install -d ${PKG_CONFIG_DIR}
for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
pcname=`basename $pc`
cat $pc > ${PKG_CONFIG_DIR}/$pcname
done
}
inherit pkconfig_stage

View File

@ -0,0 +1,7 @@
do_stage_append () {
install -d ${PKG_CONFIG_DIR}
for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
pcname=`basename $pc`
cat $pc > ${PKG_CONFIG_DIR}/$pcname
done
}