[SCM] calf/master: + Big Bull: sync with Nedko Arnaudov's version

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:16 UTC 2013


The following commit has been merged in the master branch:
commit f27d638a38590dd1ef2fe13cfff49dbbbc0724b8
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Feb 1 13:23:45 2009 +0000

    + Big Bull: sync with Nedko Arnaudov's version

diff --git a/bigbull/lv2.py b/bigbull/lv2.py
index 7d69f36..d5dc239 100644
--- a/bigbull/lv2.py
+++ b/bigbull/lv2.py
@@ -12,6 +12,8 @@ rdfs = "http://www.w3.org/2000/01/rdf-schema#"
 epi = "http://lv2plug.in/ns/dev/extportinfo#"
 rdf_type = rdf + "type"
 tinyname_uri = "http://lv2plug.in/ns/dev/tiny-name"
+foaf = "http://xmlns.com/foaf/0.1/"
+doap = "http://usefulinc.com/ns/doap#"
 
 event_type_names = {
     "http://lv2plug.in/ns/ext/midi#MidiEvent" : "MIDI"
@@ -264,8 +266,8 @@ class LV2DB:
         info = self.plugin_info[uri]
         dest = LV2Plugin()
         dest.uri = uri
-        dest.name = info.bySubject[uri]['http://usefulinc.com/ns/doap#name'][0]
-        dest.license = info.bySubject[uri]['http://usefulinc.com/ns/doap#license'][0]
+        dest.name = info.bySubject[uri][doap + 'name'][0]
+        dest.license = info.bySubject[uri][doap + 'license'][0]
         dest.classes = info.bySubject[uri]["a"]
         dest.requiredFeatures = info.getProperty(uri, lv2 + "requiredFeature", optional = True)
         dest.optionalFeatures = info.getProperty(uri, lv2 + "optionalFeature", optional = True)
@@ -274,6 +276,19 @@ class LV2DB:
             dest.microname = dest.microname[0]
         else:
             dest.microname = None
+        dest.maintainers = []
+        if info.bySubject[uri].has_key(doap + "maintainer"):
+            for maintainer in info.bySubject[uri][doap + "maintainer"]:
+                maintainersubj = info.bySubject[maintainer]
+                maintainerdict = {}
+                maintainerdict['name'] = info.getProperty(maintainersubj, foaf + "name")[0]
+                homepages = info.getProperty(maintainersubj, foaf + "homepage")
+                if homepages:
+                    maintainerdict['homepage'] = homepages[0]
+                mboxes = info.getProperty(maintainersubj, foaf + "mbox")
+                if mboxes:
+                    maintainerdict['mbox'] = mboxes[0]
+                dest.maintainers.append(maintainerdict)
         ports = []
         portDict = {}
         porttypes = {
@@ -283,6 +298,7 @@ class LV2DB:
             "isString" : lv2str + "StringPort",
             "isInput" : lv2 + "InputPort",
             "isOutput" : lv2 + "OutputPort",
+            "isLarslMidi" : "http://ll-plugins.nongnu.org/lv2/ext/MidiPort",
         }
         
         for port in info.bySubject[uri][lv2 + "port"]:

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list