Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 48 lines (45 sloc) 1.705 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#
from gub import context
from gub import misc
from gub import target
from gub.specs import lilypond
from gub.syntax import printf

class LilyPond_doc (lilypond.LilyPond_base):
    dependencies = (lilypond.LilyPond_base.dependencies
                + [
                'tools::netpbm',
                'tools::imagemagick',
                'tools::rsync', # ugh, we depend on *rsync* !?
                #'tools::texlive',
                'tools::texinfo',
                'tools::zip',
                'system::tex',
                ])
    make_flags = misc.join_lines ('''
CROSS=no
DOCUMENTATION=yes
WEB_TARGETS="offline online"
TARGET_PYTHON=/usr/bin/python
CPU_COUNT=%(cpu_count)s
''')
    compile_flags = lilypond.LilyPond_base.compile_flags + ' top-doc all doc'
    install_flags = (' install-doc install-help2man'
                     ' prefix='
                     ' infodir=/share/info'
                     ' DESTDIR=%(install_root)s'
                     ' mandir=/share/man')
    @context.subst_method
    def doc_ball (self):
        return '%(uploads)s/lilypond-%(version)s-%(build_number)s.documentation.tar.bz2'
    @context.subst_method
    def web_ball (self):
        return '%(uploads)s/lilypond-%(version)s-%(build_number)s.webdoc.tar.bz2'
    def install (self):
        target.AutoBuild.install (self)
        self.system ('''
LD_PRELOAD= cp -f sourcefiles/dir %(install_root)s/share/info/dir
cd %(install_root)s/share/info && %(doc_relocation)s install-info --info-dir=. lilypond-notation.info
LD_PRELOAD= tar -C %(install_root)s -cjf %(doc_ball)s .
LD_PRELOAD= tar --exclude '*.signature' -C %(builddir)s/out-www/online-root -cjf %(web_ball)s .
''')

Lilypond_doc = LilyPond_doc
Something went wrong with that request. Please try again.