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>
This switches download site and homepage to mirror what other package
managers are using for mg. It appears that the previous URL (which is
now broken) is affiliated with this one, the portable version of the one
maintained in the OpenBSD ports tree.
ClosesHomebrew/homebrew#6402.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
The formula for mg currently does not work for non /usr/local prefixes.
This patch fixes two issues:
- the Makefile checks for PREFIX, not prefix; and
- the bin dir must exist, otherwise install renames mg to bin.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.