Move to new override syntax
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
# 3. Generate ttl-files at first boot / after package was installed
|
||||
|
||||
|
||||
# File containing names of plugins to handle in do_compile_append
|
||||
# File containing names of plugins to handle in do_compile:append
|
||||
# Line-format expected: <some-path-in-build>/<plugin>.so
|
||||
LV2_PLUGIN_INFO_FILE = "${WORKDIR}/lv2-ttl-generator-data"
|
||||
LV2_PLUGIN_INFO_FILE_CLEANED = "${LV2_PLUGIN_INFO_FILE}-cleaned"
|
||||
|
||||
# File containing names of plugins to handle in do_compile_append
|
||||
# File containing names of plugins to handle in do_compile:append
|
||||
# Line-format expected: <path-ontarget>/<plugin>.so
|
||||
LV2_PLUGIN_POSTINST_INFO_FILE = "${LV2_PLUGIN_INFO_FILE}-postinst"
|
||||
|
||||
@@ -38,21 +38,21 @@ do_ttl_sed() {
|
||||
sed -i 's|"$GEN" "./$FILE"|echo "`realpath "./$FILE"`" >> ${LV2_PLUGIN_INFO_FILE}|g' ${S}/dpf/utils/generate-ttl.sh
|
||||
}
|
||||
|
||||
do_configure_prepend() {
|
||||
do_configure:prepend() {
|
||||
# 1st configure?
|
||||
if [ ! -f ${LV2_PLUGIN_INFO_FILE} ]; then
|
||||
do_ttl_sed
|
||||
fi
|
||||
}
|
||||
|
||||
do_compile_prepend() {
|
||||
do_compile:prepend() {
|
||||
# remove plugin-info from previous build
|
||||
rm -f ${LV2_PLUGIN_INFO_FILE}
|
||||
rm -f ${LV2_PLUGIN_POSTINST_INFO_FILE}
|
||||
}
|
||||
|
||||
do_compile[vardeps] += "LV2_TTL_GENERATOR"
|
||||
do_compile_append() {
|
||||
do_compile:append() {
|
||||
rm -f ${LV2_PLUGIN_INFO_FILE_CLEANED}
|
||||
if [ -e ${LV2_PLUGIN_INFO_FILE} ]; then
|
||||
echo
|
||||
@@ -106,7 +106,7 @@ python do_ttl_qa() {
|
||||
bb.warn("%i of %i LV2-plugins in %s are postponed to post-install! Check %s and log.do_compile for details" % (num_plugins_postinst, num_plugins, name, lv2_plugin_postinst_info_file))
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
do_install:append() {
|
||||
# create postinst manifest
|
||||
if [ -e ${LV2_PLUGIN_POSTINST_INFO_FILE} ]; then
|
||||
install -d ${D}`dirname ${LV2_POSTINST_MANIFEST}`
|
||||
@@ -117,7 +117,7 @@ do_install_append() {
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst_ontarget_${PN_LV2}() {
|
||||
pkg_postinst_ontarget:${PN_LV2}() {
|
||||
if [ -e ${LV2_POSTINST_MANIFEST} ]; then
|
||||
oldpath=`pwd`
|
||||
for sofile in `cat ${LV2_POSTINST_MANIFEST}`; do
|
||||
@@ -133,7 +133,7 @@ pkg_postinst_ontarget_${PN_LV2}() {
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm_${PN_LV2}() {
|
||||
pkg_prerm:${PN_LV2}() {
|
||||
if [ -e ${LV2_POSTINST_MANIFEST} ]; then
|
||||
for sofile in `cat ${LV2_POSTINST_MANIFEST}`; do
|
||||
path=`dirname "$sofile"`
|
||||
@@ -144,5 +144,5 @@ pkg_prerm_${PN_LV2}() {
|
||||
fi
|
||||
}
|
||||
|
||||
FILES_${PN_LV2} += "${LV2_POSTINST_MANIFEST}"
|
||||
RDEPENDS_${PN_LV2} += "lv2-ttl-generator"
|
||||
FILES:${PN_LV2} += "${LV2_POSTINST_MANIFEST}"
|
||||
RDEPENDS:${PN_LV2} += "lv2-ttl-generator"
|
||||
|
||||
@@ -4,8 +4,8 @@ inherit audio-plugin-common
|
||||
|
||||
PACKAGES =+ "${PN_DSSI} ${PN_LADSPA} ${PN_LV2} ${PN_VST} ${PN_VST3}"
|
||||
|
||||
FILES_${PN_DSSI} += "${libdir}/dssi"
|
||||
FILES_${PN_LADSPA} += "${libdir}/ladspa"
|
||||
FILES_${PN_LV2} += "${libdir}/lv2"
|
||||
FILES_${PN_VST} += "${libdir}/vst"
|
||||
FILES_${PN_VST3} += "${libdir}/vst3"
|
||||
FILES:${PN_DSSI} += "${libdir}/dssi"
|
||||
FILES:${PN_LADSPA} += "${libdir}/ladspa"
|
||||
FILES:${PN_LV2} += "${libdir}/lv2"
|
||||
FILES:${PN_VST} += "${libdir}/vst"
|
||||
FILES:${PN_VST3} += "${libdir}/vst3"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
inherit qemu
|
||||
|
||||
DEPENDS_append = " qemu-native coreutils-native"
|
||||
DEPENDS:append = " qemu-native coreutils-native"
|
||||
|
||||
# This is an extended/modified qemu.bbclass tailored four our needs:
|
||||
#
|
||||
|
||||
@@ -5,7 +5,7 @@ DEPENDS += "qttools-native"
|
||||
# default location
|
||||
QT_TRANSLATION_FILES ??= "${datadir}/*/translations/*.qm ${datadir}/*/translations/*/*.qm ${datadir}/*/translations/*/*/*.qm"
|
||||
|
||||
FILES_${PN}-locale = "${datadir}/*/translations"
|
||||
FILES:${PN}-locale = "${datadir}/*/translations"
|
||||
|
||||
python qt_do_split_locales() {
|
||||
import glob
|
||||
@@ -53,16 +53,16 @@ python qt_do_split_locales() {
|
||||
files = ''
|
||||
for transvar in d.getVar('QT_TRANSLATION_FILES').split():
|
||||
files = '%s %s' % (files, transvar.replace('*.qm', '*_%s.qm' % l))
|
||||
d.setVar('FILES_' + pkg, files )
|
||||
d.setVar('RRECOMMENDS_' + pkg, '%svirtual-locale-%s' % (mlprefix, ln))
|
||||
d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
|
||||
d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l))
|
||||
d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))
|
||||
d.setVar('FILES:' + pkg, files )
|
||||
d.setVar('RRECOMMENDS:' + pkg, '%svirtual-locale-%s' % (mlprefix, ln))
|
||||
d.setVar('RPROVIDES:' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
|
||||
d.setVar('SUMMARY:' + pkg, '%s - %s translations' % (summary, l))
|
||||
d.setVar('DESCRIPTION:' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))
|
||||
if locale_section:
|
||||
d.setVar('SECTION_' + pkg, locale_section)
|
||||
d.setVar('SECTION:' + pkg, locale_section)
|
||||
|
||||
d.setVar('PACKAGES', ' '.join(list(packages)))
|
||||
}
|
||||
|
||||
PACKAGESPLITFUNCS_prepend = "qt_do_split_locales "
|
||||
PACKAGESPLITFUNCS:prepend = "qt_do_split_locales "
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# avoids build breaks when using no-static-libs.inc
|
||||
DISABLE_STATIC = ""
|
||||
|
||||
EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"
|
||||
EXTRA_OECONF:append = " ${PACKAGECONFIG_CONFARGS}"
|
||||
|
||||
python waf_preconfigure() {
|
||||
import subprocess
|
||||
|
||||
Reference in New Issue
Block a user