bc928e63e5
- 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 Homebrew/homebrew#14766. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
16 lines
496 B
Ruby
16 lines
496 B
Ruby
require 'formula'
|
|
|
|
class Libutf < Formula
|
|
homepage 'http://swtch.com/plan9port/unix/'
|
|
url 'http://swtch.com/plan9port/unix/libutf-20110530.tgz'
|
|
sha256 '7789326c507fe9c07ade0731e0b0da221385a8f7cd1faa890af92a78a953bf5e'
|
|
|
|
def install
|
|
# 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
|