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>
14 lines
443 B
Ruby
14 lines
443 B
Ruby
require 'formula'
|
|
|
|
class Dvtm < Formula
|
|
url 'http://www.brain-dump.org/projects/dvtm/dvtm-0.7.tar.gz'
|
|
homepage 'http://www.brain-dump.org/projects/dvtm/'
|
|
md5 'd8ef63bad5b48324ad040630c51a1c26'
|
|
head 'git://repo.or.cz/dvtm.git'
|
|
|
|
def install
|
|
inreplace 'config.mk', 'LIBS = -lc -lutil -lncursesw', 'LIBS = -lc -lutil -lncurses'
|
|
inreplace 'Makefile', 'strip -s', 'strip'
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
end
|
|
end
|