diff options
| author | yrammos | 2012-09-16 22:27:59 +0300 |
|---|---|---|
| committer | Jack Nagel | 2012-09-19 22:17:19 -0500 |
| commit | 8edb2f90efec85c1e4a3519ad107f8fd2ed22104 (patch) | |
| tree | 9ed637de6ab454ad1fcbf890db216bea8d725e5f /Library/Formula | |
| parent | 32647df08762d35954a0449cbf9762716d4eea39 (diff) | |
| download | homebrew-8edb2f90efec85c1e4a3519ad107f8fd2ed22104.tar.bz2 | |
lilypond: add option to build docs
Closes #14946.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/lilypond.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/lilypond.rb b/Library/Formula/lilypond.rb index 6d12185d7..e006e44d8 100644 --- a/Library/Formula/lilypond.rb +++ b/Library/Formula/lilypond.rb @@ -26,6 +26,8 @@ class Lilypond < Formula env :userpaths + option 'with-doc', "Build documentation in addition to binaries (may require several hours)." + depends_on TexInstalled.new depends_on 'pkg-config' => :build depends_on 'gettext' @@ -37,6 +39,15 @@ class Lilypond < Formula depends_on 'texinfo' depends_on :x11 + # Assert documentation dependencies if requested. + if build.include? 'with-doc' + depends_on 'netpbm' + depends_on 'imagemagick' + depends_on 'docbook' + depends_on 'dblatex' => :python + depends_on 'texi2html' + end + skip_clean :all fails_with :clang do @@ -52,6 +63,12 @@ class Lilypond < Formula # Separate steps to ensure that lilypond's custom fonts are created. system 'make all' system "make install" + + # Build documentation if requested. + if build.include? 'with-doc' + system "make doc" + system "make install-doc" + end end def test |
