diff options
| author | Adam Vandenberg | 2012-07-17 09:37:43 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-07-17 09:38:02 -0700 |
| commit | fe2e8dfa95551ad8bc4676bd1566e610e1d027fe (patch) | |
| tree | 859f5e5c1017363c0c9340c4ff13e545ca654ae3 /Library/Formula/recode.rb | |
| parent | 9af20b7601ea0f591fa8a87d1309cd96e243e34a (diff) | |
| download | homebrew-fe2e8dfa95551ad8bc4676bd1566e610e1d027fe.tar.bz2 | |
Normalize copying over libtool files
TODO: move this into MacOS or another module.
Diffstat (limited to 'Library/Formula/recode.rb')
| -rw-r--r-- | Library/Formula/recode.rb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Library/Formula/recode.rb b/Library/Formula/recode.rb index b7ecd6c69..16d21fcce 100644 --- a/Library/Formula/recode.rb +++ b/Library/Formula/recode.rb @@ -3,7 +3,7 @@ require 'formula' class Recode < Formula homepage 'http://recode.progiciels-bpi.ca/index.html' url 'https://github.com/pinard/Recode/tarball/v3.6' - md5 'f82e9a6ede9119268c13493c9add2809' + sha1 '417c36dfe9c729276a3d439d280b515b615241df' depends_on "gettext" depends_on :libtool @@ -14,17 +14,22 @@ class Recode < Formula { :p0 => DATA } end - def install - ENV.append 'LDFLAGS', '-liconv' - + def copy_libtool_files! if MacOS.xcode_version >= "4.3" - d = "#{HOMEBREW_PREFIX}/share/libtool/config" + s = Formula.factory('libtool').share + d = "#{s}/libtool/config" cp ["#{d}/config.guess", "#{d}/config.sub"], "." elsif MacOS.leopard? cp Dir["#{MacOS.xcode_prefix}/usr/share/libtool/config.*"], "." else cp Dir["#{MacOS.xcode_prefix}/usr/share/libtool/config/config.*"], "." end + end + + def install + ENV.append 'LDFLAGS', '-liconv' + + copy_libtool_files! system "./configure", "--disable-debug", "--disable-dependency-tracking", "--without-included-gettext", |
