Mercurial > gub
view gub/specs/lilypond-doc.py @ 6418:bb0fccd81f63
Add fonts `DejaVu'
author | Masamichi Hosoda <trueroad@trueroad.jp> |
---|---|
date | Sun, 16 Aug 2015 01:05:16 +0900 |
parents | bc9194b63db2 |
children | b43931a7ce57 |
line wrap: on
line source
# 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::fonts-dejavu', 'tools::fonts-libertine', 'tools::fonts-bitstream-charter', 'tools::fonts-bitstream-vera', 'tools::fonts-liberation', 'tools::fonts-urw-core35', 'tools::fonts-luximono', 'system::makeinfo', 'system::zip', ]) 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 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