homebrew-core/Formula/ledit.rb
Jack Nagel 7c648d9732 Shore up a number of shell quoting issues
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>
2012-05-15 14:03:11 -05:00

18 lines
486 B
Ruby

require 'formula'
class Ledit < Formula
url 'http://pauillac.inria.fr/~ddr/ledit/distrib/src/ledit-2.01.tgz'
homepage 'http://pauillac.inria.fr/~ddr/ledit/'
md5 '24faa563dff1091aea2e744b1ec15fbb'
depends_on 'objective-caml'
depends_on 'camlp5'
def install
# like camlp5, this build fails if the jobs are parallelized
ENV.deparallelize
args = %W[BINDIR=#{bin} LIBDIR=#{lib} MANDIR=#{man}]
system "make", *args
system "make", "install", *args
end
end