Created
March 19, 2011 16:24
-
-
Save redacted/877582 to your computer and use it in GitHub Desktop.
patched gettext.rb to fix build problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 require 'formula' | |
2 | |
3 class Gettext < Formula | |
4 url 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz' | |
5 md5 '3dd55b952826d2b32f51308f2f91aa89' | |
6 homepage 'http://www.gnu.org/software/gettext/' | |
7 | |
8 keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path." | |
9 | |
10 def options | |
11 [['--with-examples', 'Keep example files.']] | |
12 end | |
13 | |
14 def install | |
15 ENV.libxml2 | |
16 ENV.O3 # Issues with LLVM & O4 on Mac Pro 10.6 | |
17 | |
18 system "./configure", "--disable-dependency-tracking", "--disable- debug", | |
19 "--prefix=#{prefix}", | |
20 "--without-emacs", | |
21 "--without-git", | |
22 "--with-examples", | |
23 "--without-included-gettext", | |
24 "--without-included-glib", | |
25 "--without-included-libcroco", | |
26 "--without-included-libxml" | |
27 system "make" | |
28 ENV.deparallelize # install doesn't support multiple make jobs | |
29 system "make install" | |
30 | |
31 (doc+'examples').rmtree unless ARGV.include? '--with-examples' | |
32 end | |
33 end | |
~ | |
~ | |
~ | |
[Git(master)] 1,1 3% | |
"/usr/local/Library/Formula/gettext.rb" 33L, 1139C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment