diff options
| author | nibbles 2bits | 2012-09-06 07:53:28 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-07 07:22:35 -0700 |
| commit | 36f4292122dc6bf53784ff03a63964cd128b62c3 (patch) | |
| tree | cdba834b787b2015dc872244d0fd8f2a9cb6ad2e | |
| parent | 5c0346d5aa82671326a8133091c6795cabce5dfc (diff) | |
| download | homebrew-36f4292122dc6bf53784ff03a63964cd128b62c3.tar.bz2 | |
libutf: Use 32bit Makefile
- libutf only has a `Make.Darwin-386` configuration file
- Patch the Makefile to choose that instead of failing to find
`Make.Darwin-x86-64` and causing a build error.
- Switch to the versioned tarball that has the same hash.
Closes #14766.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/libutf.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Formula/libutf.rb b/Library/Formula/libutf.rb index 76a884df3..7947684a5 100644 --- a/Library/Formula/libutf.rb +++ b/Library/Formula/libutf.rb @@ -1,13 +1,16 @@ require 'formula' class Libutf < Formula - url 'http://swtch.com/plan9port/unix/libutf.tgz' - version '1.0' homepage 'http://swtch.com/plan9port/unix/' + url 'http://swtch.com/plan9port/unix/libutf-20110530.tgz' sha256 '7789326c507fe9c07ade0731e0b0da221385a8f7cd1faa890af92a78a953bf5e' def install - inreplace 'Makefile', 'man/man7', 'share/man/man7' + # Make.Darwin-386 is the only Makefile they have + inreplace 'Makefile' do |f| + f.gsub! 'man/man7', 'share/man/man7' + f.gsub! 'Make.$(SYSNAME)-$(OBJTYPE)', 'Make.Darwin-386' + end system "make", "PREFIX=#{prefix}", "install" end end |
