diff options
| author | Adam Vandenberg | 2011-06-04 19:51:00 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-05 08:07:41 -0700 |
| commit | 6eb3c27fa8f1ce02bd4fb20cfeab2063f1147a7d (patch) | |
| tree | 3824e671b8533e305ddccf2b54351f252d8a8e15 /Library/Formula | |
| parent | b19a2bdff61f7111685f079cb0e806d4f77636a5 (diff) | |
| download | homebrew-6eb3c27fa8f1ce02bd4fb20cfeab2063f1147a7d.tar.bz2 | |
gettext: simplify build process
Don't build examples and then delete them; use the MacPorts
patch to not build examples in the first place, unless explicitly
asked for.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gettext.rb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb index 9c8b67b5b..0fe3eafc7 100644 --- a/Library/Formula/gettext.rb +++ b/Library/Formula/gettext.rb @@ -11,6 +11,16 @@ class Gettext < Formula [['--with-examples', 'Keep example files.']] end + def patches + unless ARGV.include? '--with-examples' + # Use a MacPorts patch to disable building examples at all + # rather than build them and remove them afterwards. + {:p0 => + "https://trac.macports.org/export/79183/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in" + } + end + end + def install ENV.libxml2 ENV.O3 # Issues with LLVM & O4 on Mac Pro 10.6 @@ -21,11 +31,12 @@ class Gettext < Formula "--without-included-glib", "--without-included-libcroco", "--without-included-libxml", - "--without-emacs" + "--without-emacs", + # Don't use VCS systems to create these archives + "--without-git", + "--without-cvs" system "make" ENV.deparallelize # install doesn't support multiple make jobs system "make install" - - (doc+'examples').rmtree unless ARGV.include? '--with-examples' end end |
