From 7e4358f443b015547eec3927af3cf84c2ca00f52 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 15 Apr 2014 07:32:59 -0700 Subject: libopkele: add option for building docs Closes #24790. --- Library/Formula/libopkele.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3