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>
12 lines
324 B
Ruby
12 lines
324 B
Ruby
require 'formula'
|
|
|
|
class Magit < Formula
|
|
url 'https://github.com/downloads/magit/magit/magit-1.0.0.tar.gz'
|
|
homepage 'https://github.com/magit/magit'
|
|
md5 '1f640741ff0cf94ea84c607fac8758d6'
|
|
head 'https://github.com/magit/magit.git'
|
|
|
|
def install
|
|
system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
|
|
end
|
|
end
|