diff options
| author | Adam Vandenberg | 2014-04-15 07:32:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-15 07:33:07 -0700 |
| commit | 7e4358f443b015547eec3927af3cf84c2ca00f52 (patch) | |
| tree | 4b61f558ce0ac213371071642d5d57833fcc593b /Library/Formula | |
| parent | a6cabf79362282e0f84794e3f778f1e605fcb1f6 (diff) | |
| download | homebrew-7e4358f443b015547eec3927af3cf84c2ca00f52.tar.bz2 | |
libopkele: add option for building docs
Closes #24790.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libopkele.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/libopkele.rb b/Library/Formula/libopkele.rb index fc7062594..83ad4162d 100644 --- a/Library/Formula/libopkele.rb +++ b/Library/Formula/libopkele.rb @@ -21,7 +21,10 @@ class Libopkele < Formula depends_on :libtool end - depends_on 'pkg-config' => :build + option "with-docs", "Build and install documentation" + + depends_on "pkg-config" => :build + depends_on "doxygen" => :build if build.with? "docs" def install system "./autogen.bash" if build.head? @@ -29,6 +32,11 @@ class Libopkele < Formula system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" + system "make", "install" + + if build.with? "docs" + system "make", "dox" + doc.install "doxydox/html" + end end end |
