7c648d9732
When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
13 lines
360 B
Ruby
13 lines
360 B
Ruby
require 'formula'
|
|
|
|
class Libutf < Formula
|
|
url 'http://swtch.com/plan9port/unix/libutf.tgz'
|
|
version '1.0'
|
|
homepage 'http://swtch.com/plan9port/unix/'
|
|
sha256 '7789326c507fe9c07ade0731e0b0da221385a8f7cd1faa890af92a78a953bf5e'
|
|
|
|
def install
|
|
inreplace 'Makefile', 'man/man7', 'share/man/man7'
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
end
|
|
end
|