Skip to content
This repository
Browse code

gettext: universal binary

  • Loading branch information...
commit b80254487a54bdf91c74a5cc7972596a6b8baf10 1 parent 1d11763
Adam Vandenberg authored June 04, 2011

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  Library/Formula/gettext.rb
8  Library/Formula/gettext.rb
@@ -8,9 +8,13 @@ class Gettext < Formula
8 8
   keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
9 9
 
10 10
   def options
11  
-    [['--with-examples', 'Keep example files.']]
  11
+  [
  12
+    ['--with-examples', 'Keep example files.'],
  13
+    ['--universal', 'Build universal binaries.']
  14
+  ]
12 15
   end
13 16
 
  17
+
14 18
   def patches
15 19
     unless ARGV.include? '--with-examples'
16 20
       # Use a MacPorts patch to disable building examples at all
@@ -25,6 +29,8 @@ def install
25 29
     ENV.libxml2
26 30
     ENV.O3 # Issues with LLVM & O4 on Mac Pro 10.6
27 31
 
  32
+    ENV.universal_binary if ARGV.build_universal?
  33
+
28 34
     system "./configure", "--disable-dependency-tracking", "--disable-debug",
29 35
                           "--prefix=#{prefix}",
30 36
                           "--without-included-gettext",

0 notes on commit b802544

Please sign in to comment.
Something went wrong with that request. Please try again.