[SCM] calf/master: dc:replaces in manifest.ttl

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:40:36 UTC 2013


The following commit has been merged in the master branch:
commit 6ae5d10caadaa15a8b59f1257b2363351aaf5d78
Author: David Robillard <d at drobilla.net>
Date:   Thu Mar 10 18:42:37 2011 -0500

    dc:replaces in manifest.ttl
    
    I went to implement dc:replaces 'LADSPA hiding' in SLV2 and realised
    that this means loading all plugin data files before the host can tell
    what plugins it should show in the UI. Not so great, this extension
    should probably specify it needs to be in manifest.ttl since its a
    discovery thing.

diff --git a/src/makerdf.cpp b/src/makerdf.cpp
index d5d8658..3515234 100644
--- a/src/makerdf.cpp
+++ b/src/makerdf.cpp
@@ -456,9 +456,10 @@ void make_ttl(string path_prefix)
     
     // Prefixes for the manifest TTL
     string ttl = 
-        "@prefix lv2:  <http://lv2plug.in/ns/lv2core#> .\n"
-        "@prefix lv2p:  <http://lv2plug.in/ns/dev/presets#> .\n"
+        "@prefix lv2: <http://lv2plug.in/ns/lv2core#> .\n"
+        "@prefix lv2p: <http://lv2plug.in/ns/dev/presets#> .\n"
         "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n"
+        "@prefix dc: <http://dublincore.org/documents/dcmi-namespace/> .\n"
         "\n"
     ;
     
@@ -529,7 +530,9 @@ void make_ttl(string path_prefix)
         string label = plugins[i]->get_plugin_info().label;
         ttl += string("<" + plugin_uri_prefix) 
             + string(plugins[i]->get_plugin_info().label)
-            + "> a lv2:Plugin ;\n    lv2:binary <calf.so> ; rdfs:seeAlso <" + label + ".ttl> ";
+	        + "> a lv2:Plugin ;\n    dc:replaces <urn:ladspa:"
+	        + i2s(plugins[i]->get_plugin_info().unique_id) + "> ;\n    "
+	        + "lv2:binary <calf.so> ; rdfs:seeAlso <" + label + ".ttl> ";
         if (preset_data.count(label))
             ttl += ", <presets-" + label + ".ttl>";
         ttl += ".\n";

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list