From a6716ee2c7f47a5f3cda9bc129ca0e31d49c56df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 12 Mar 2020 00:18:06 +0100 Subject: [PATCH] lv2-postinst-helper.bbclass: remove we moved to lv2-turtle-helper.bbclass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- classes/lv2-postinst-helper.bbclass | 55 ----------------------------- 1 file changed, 55 deletions(-) delete mode 100644 classes/lv2-postinst-helper.bbclass diff --git a/classes/lv2-postinst-helper.bbclass b/classes/lv2-postinst-helper.bbclass deleted file mode 100644 index a6198ae..0000000 --- a/classes/lv2-postinst-helper.bbclass +++ /dev/null @@ -1,55 +0,0 @@ -# Helper class to handle ontarget-postinst creation of lv2 turtle files - -# File created during compile usually. To create this file makefiles have to be -# aligned - see do_configure_prepend at zynaddsubfx or distrho-ports. The file -# is expected with the following format -# lv2-ttl-generator /plugin.so -LV2-TURTLE-BUILD-DATA = "${WORKDIR}/lv2-ttl-generator-data" - -# E.g zynaddsubfx needs to create dummy lv2 turtle files to keep install sane. -# To delete them automatically (see below) the contain a dummy string: -LV2-DUMMY-TURTLE-STR = "lv2-dummy-turtle-string" - -# To make ontarget postinst/prerm happen, the names of all plugins with their -# paths as installed on target a stored in a file called lv2-postinst-manifest -LV2-POSTINST-MANIFEST = "${datadir}/${BPN}/lv2-postinst-manifest" - -inherit audio-plugin-common - -do_install_append() { - # remove dummy lv2-turtles again - cd ${D}/${libdir}/lv2 - for tfile in `grep -rl ${LV2-DUMMY-TURTLE-STR}`; do - rm $tfile - done - - # create postinst manifest - install -d ${D}`dirname ${LV2-POSTINST-MANIFEST}` - for sofile in `sort ${LV2-TURTLE-BUILD-DATA} | uniq | awk '{ print $2 }'`; do - sofile=`basename $sofile` - installed=`find ${D}${libdir}/lv2 -name $sofile | sed 's|${D}||g'` - echo $installed >> ${D}${LV2-POSTINST-MANIFEST} - done -} - - -pkg_postinst_ontarget_${PN_LV2}() { - oldpath=`pwd` - for sofile in `cat ${LV2-POSTINST-MANIFEST}`; do - cd `dirname "$sofile"` - lv2-ttl-generator "$sofile" || echo "Error: Turtle files for $sofile could not be created!" - done - cd $oldpath -} - -pkg_prerm_${PN_LV2}() { - for sofile in `cat ${LV2-POSTINST-MANIFEST}`; do - path=`dirname "$sofile"` - for turtle in `find $path -name '*.ttl'`; do - rm $turtle - done - done -} - -FILES_${PN_LV2} += "${LV2-POSTINST-MANIFEST}" -RDEPENDS_${PN_LV2} += "lv2-ttl-generator"