aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDan Lipsitt2014-01-10 20:56:23 -0800
committerAdam Vandenberg2014-02-22 07:29:59 -0800
commit8e806ec17bfef3686af6828365ab64bf18c519b4 (patch)
treefe0ce177e5bc135f984a3a0379903544039830e4 /Library/Formula
parent1a3cedbd03070e4a0ec4398af329b846d2ae024b (diff)
downloadhomebrew-8e806ec17bfef3686af6828365ab64bf18c519b4.tar.bz2
pcb: fix building docs and allow building without them
Closes #25808. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pcb.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/pcb.rb b/Library/Formula/pcb.rb
index f72f05818..44cf8bbc2 100644
--- a/Library/Formula/pcb.rb
+++ b/Library/Formula/pcb.rb
@@ -8,6 +8,8 @@ class Pcb < Formula
head 'git://git.geda-project.org/pcb.git'
+ option 'with-doc', "Build the documentation (requires LaTeX)."
+
depends_on :autoconf
depends_on :automake
depends_on 'pkg-config' => :build
@@ -19,6 +21,7 @@ class Pcb < Formula
depends_on 'glib'
depends_on 'gtkglext'
depends_on :x11
+ depends_on :tex if build.with? 'doc'
# See comments in intltool formula
depends_on 'XML::Parser' => :perl
@@ -31,11 +34,13 @@ class Pcb < Formula
def install
system "./autogen.sh" if build.head?
+ args = ["--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--disable-update-desktop-database",
+ "--disable-update-mime-database"]
+ args << "--disable-doc" unless build.with? 'doc'
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--disable-update-desktop-database",
- "--disable-update-mime-database"
+ system "./configure", *args
system "make"
system "make install"