aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-10 13:05:20 -0700
committerAdam Vandenberg2010-08-10 13:05:20 -0700
commit82ad4d92310fc5f5821497c18019e943e79d7213 (patch)
tree73db9f8237d37af84f1b7712c455aeef81deb3e7 /Library/Formula
parent67d8fb637cc17dab7948d1b27586467909f106b8 (diff)
downloadhomebrew-82ad4d92310fc5f5821497c18019e943e79d7213.tar.bz2
Document all existing install options.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/coreutils.rb15
-rw-r--r--Library/Formula/gettext.rb6
-rw-r--r--Library/Formula/gnuplot.rb8
-rw-r--r--Library/Formula/graphicsmagick.rb4
-rw-r--r--Library/Formula/imagemagick.rb7
-rwxr-xr-xLibrary/Formula/mongodb.rb4
-rwxr-xr-xLibrary/Formula/open-ocd.rb4
-rw-r--r--Library/Formula/poppler.rb4
-rw-r--r--Library/Formula/rrdtool.rb4
-rwxr-xr-xLibrary/Formula/ruby-enterprise-edition.rb6
-rwxr-xr-xLibrary/Formula/subversion.rb3
11 files changed, 57 insertions, 8 deletions
diff --git a/Library/Formula/coreutils.rb b/Library/Formula/coreutils.rb
index 891f9a0f2..4c4eca47e 100644
--- a/Library/Formula/coreutils.rb
+++ b/Library/Formula/coreutils.rb
@@ -1,5 +1,9 @@
require 'formula'
+def use_default_names?
+ ARGV.include? '--default-names'
+end
+
def coreutils_aliases
s = "brew_prefix=`brew --prefix`\n"
@@ -27,26 +31,27 @@ class Coreutils <Formula
homepage 'http://www.gnu.org/software/coreutils'
def options
- [['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]]
+ [
+ ['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."],
+ ['--aliases', "Dump an aliases file instead of doing the install."]
+ ]
end
def install
- # Note this doesn't work right now as I have broken the install process
- # slightly so it errors out.
if ARGV.include? '--aliases'
puts coreutils_aliases
exit 0
end
args = [ "--prefix=#{prefix}" ]
- args << "--program-prefix=g" unless ARGV.include? '--default-names'
+ args << "--program-prefix=g" unless use_default_names?
system "./configure", *args
system "make install"
end
def caveats
- unless ARGV.include? '--default-names'; <<-EOS
+ unless use_default_names?; <<-EOS
All commands have been installed with the prefix 'g'. In order to use these
commands by default you can put some aliases in your bashrc. You can
accomplish this like so:
diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb
index 808a90c9c..c3420e8ad 100644
--- a/Library/Formula/gettext.rb
+++ b/Library/Formula/gettext.rb
@@ -5,11 +5,15 @@ class Gettext <Formula
md5 '58a2bc6d39c0ba57823034d55d65d606'
homepage 'http://www.gnu.org/software/gettext/'
+ keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
+
def patches
'http://gist.github.com/raw/186336/2fe65fab894f94a03aab2f03349ae7f1febcd301/mac-osx-105-environ.patch'
end
- keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
+ def options
+ [['--with-examples', 'Keep example files.']]
+ end
def install
ENV.libxml2
diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb
index 4e738e37d..d52b4c310 100644
--- a/Library/Formula/gnuplot.rb
+++ b/Library/Formula/gnuplot.rb
@@ -10,6 +10,14 @@ class Gnuplot <Formula
depends_on 'gd' unless ARGV.include? "--nogd"
depends_on 'pdflib-lite' if ARGV.include? "--pdf"
+ def options
+ [
+ ["--pdf", "Build with pdf support."],
+ ["--without-lua", "Build without lua support."],
+ ["--nogd", "Build without gd support."]
+ ]
+ end
+
def install
ENV.x11
args = ["--disable-debug", "--disable-dependency-tracking",
diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb
index f81ed5162..7396a275e 100644
--- a/Library/Formula/graphicsmagick.rb
+++ b/Library/Formula/graphicsmagick.rb
@@ -33,6 +33,10 @@ class Graphicsmagick <Formula
path.extname == '.la'
end
+ def options
+ [['--with-ghostscript', 'Compile against ghostscript (not recommended.)']]
+ end
+
def install
fails_with_llvm
ENV.libpng
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb
index a1c2b528b..b90e85ab4 100644
--- a/Library/Formula/imagemagick.rb
+++ b/Library/Formula/imagemagick.rb
@@ -40,6 +40,13 @@ class Imagemagick <Formula
path.extname == '.la'
end
+ def options
+ [
+ ['--with-ghostscript', 'Compile against ghostscript (not recommended.)'],
+ ['--use-wmf', 'Compile with libwmf support.']
+ ]
+ end
+
def install
ENV.x11 # Add to PATH for freetype-config on Snow Leopard
ENV.O3 # takes forever otherwise
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index 91c2454d5..d1d3a38f8 100755
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -16,6 +16,10 @@ class Mongodb <Formula
skip_clean :all
+ def options
+ [['--32bit', 'Install the 32-bit version.']]
+ end
+
def install
# Copy the prebuilt binaries to prefix
prefix.install Dir['*']
diff --git a/Library/Formula/open-ocd.rb b/Library/Formula/open-ocd.rb
index 96634d332..99e16084f 100755
--- a/Library/Formula/open-ocd.rb
+++ b/Library/Formula/open-ocd.rb
@@ -8,6 +8,10 @@ class OpenOcd <Formula
depends_on 'libusb-compat'
depends_on 'libftdi' if ARGV.include? "--enable-ft2232_libftdi"
+ def options
+ [["--enable-ft2232_libftdi", "Compile against libftdi."]]
+ end
+
def install
args = ["--enable-maintainer-mode", "--prefix=#{prefix}"]
args << "--enable-ft2232_libftdi" if ARGV.include? "--enable-ft2232_libftdi"
diff --git a/Library/Formula/poppler.rb b/Library/Formula/poppler.rb
index 2a16f17a1..f87b66f2c 100644
--- a/Library/Formula/poppler.rb
+++ b/Library/Formula/poppler.rb
@@ -17,6 +17,10 @@ class Poppler <Formula
DATA
end
+ def options
+ [["--with-qt4", "Include Qt4 support (which compiles all of Qt4!)"]]
+ end
+
def install
if ARGV.include? "--with-qt4"
qt4Flags = `pkg-config QtCore --libs` + `pkg-config QtGui --libs`
diff --git a/Library/Formula/rrdtool.rb b/Library/Formula/rrdtool.rb
index 6da951ecb..cb1eab615 100644
--- a/Library/Formula/rrdtool.rb
+++ b/Library/Formula/rrdtool.rb
@@ -21,6 +21,10 @@ class Rrdtool <Formula
DATA # Ha-ha, but sleeping is annoying when running configure a lot
end
+ def options
+ [["--lua", "Compile with lua support."]]
+ end
+
def install
which_perl = `/usr/bin/which perl`.chomp
which_ruby = `/usr/bin/which ruby`.chomp
diff --git a/Library/Formula/ruby-enterprise-edition.rb b/Library/Formula/ruby-enterprise-edition.rb
index 9268e87b2..2ef6347a5 100755
--- a/Library/Formula/ruby-enterprise-edition.rb
+++ b/Library/Formula/ruby-enterprise-edition.rb
@@ -9,10 +9,14 @@ class RubyEnterpriseEdition <Formula
skip_clean 'bin/ruby'
+ def options
+ [['--enable-shared', "Compile shared, but see caveats."]]
+ end
+
def install
fails_with_llvm "fails with LLVM"
args = ['./installer', "--auto", prefix, '--no-tcmalloc']
- args << '-c' << '--enable-shared' if ARGV.include?('--enable-shared')
+ args << '-c' << '--enable-shared' if ARGV.include? '--enable-shared'
system *args
end
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index bc3a05e0f..4679c8e6f 100755
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -27,7 +27,8 @@ class Subversion <Formula
['--java', 'Build Java bindings.'],
['--perl', 'Build Perl bindings.'],
['--python', 'Build Python bindings.'],
- ['--universal', 'Build as a Universal Intel binary.']
+ ['--universal', 'Build as a Universal Intel binary.'],
+ ['--unicode-path', 'Include support for OS X unicode (but see caveats!)']
]
end