gnu-units: Fix Python 2 path for units_cur, fixes Homebrew/homebrew#46527

This commit is contained in:
Fenhl 2015-12-04 06:46:20 +00:00 committed by Alex Dunn
parent 4170b490e5
commit 71008adef5

View file

@ -28,6 +28,9 @@ class GnuUnits < Formula
patch :DATA
def install
# OS X does not provide a `python2` executable
inreplace "units_cur", "#!/usr/bin/python2", "#!/usr/bin/env python"
args = ["--prefix=#{prefix}"]
args << "--program-prefix=g" if build.without? "default-names"