changeset 2376:c18aa043f08d

Add lilypond descriptions.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 19 Oct 2006 18:05:36 +0100
parents d1f5a16787d7
children 8f6b2fdd2297
files specs/lilypond.py
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/specs/lilypond.py	Thu Oct 19 17:55:05 2006 +0100
+++ b/specs/lilypond.py	Thu Oct 19 18:05:36 2006 +0100
@@ -10,6 +10,10 @@
 from context import *
 
 class LilyPond (targetpackage.TargetBuildSpec):
+    '''A program for printing sheet music - %(flavor)s
+LilyPond lets you create music notation.  It produces
+beautiful sheet music from a high-level description file.'''
+
     def get_dependency_dict (self):
         return {'': [
             'fontconfig',
@@ -269,6 +273,21 @@
 ''',
                   locals ())
 
+    def category_dict (self):
+        return {'': 'publishing', 'doc': 'doc'}
+
+    def description_dict (self):
+        # FIXME: fairly uninformative description for packages,
+        # unlike, eg, guile-devel.  This is easier, though.
+        d = {}
+        for i in self.get_subpackage_names ():
+            d[i] = self.get_subpackage_doc (i)
+        return d
+
+    def get_subpackage_doc (self, split):
+        flavor = {'': 'executables', 'doc': 'documentation'}[split]
+        return LilyPond.__doc__ % locals ()
+        
 class LilyPond__freebsd (LilyPond):
     def get_dependency_dict (self):
         d = LilyPond.get_dependency_dict (self)