diff options
| author | Martin Kühl | 2010-07-02 20:08:02 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-10 09:40:29 -0700 |
| commit | 3eea36ebfeb18b404908e8a3e41a548dae30b209 (patch) | |
| tree | 757c636504cd80bb95ce91a735ee332071733572 | |
| parent | fd1deb03908378581c7171f50f31c9803a5ce56c (diff) | |
| download | homebrew-3eea36ebfeb18b404908e8a3e41a548dae30b209.tar.bz2 | |
New formula: getopt
The GNU version of getopt, required for tools like xmlto.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Renamed formula to "gnu-getopt" since it shadows the BSD getopt
* Made keg-only for same reason as above
| -rw-r--r-- | Library/Formula/gnu-getopt.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/gnu-getopt.rb b/Library/Formula/gnu-getopt.rb new file mode 100644 index 000000000..639692ca9 --- /dev/null +++ b/Library/Formula/gnu-getopt.rb @@ -0,0 +1,22 @@ +require 'formula' + +class GnuGetopt <Formula + url 'http://software.frodo.looijaard.name/getopt/files/getopt-1.1.4.tar.gz' + md5 '02188ca68da27c4175d6e9f3da732101' + homepage 'http://software.frodo.looijaard.name/getopt/' + + depends_on 'gettext' + + def keg_only? + :provided_by_osx + end + + def install + inreplace 'Makefile' do |s| + gettext = Formula.factory 'gettext' + s.change_make_var! "CPPFLAGS", "\\1 -I#{gettext.include}" + s.change_make_var! "LDFLAGS", "\\1 -L#{gettext.lib} -lintl" + end + system "make", "prefix=#{prefix}", "mandir=#{man}", "install" + end +end |
