Update Formula: fontforge
Make formula installable as non-superuser Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
769d881c37
commit
299618fe06
1 changed files with 18 additions and 5 deletions
|
@ -11,14 +11,27 @@ class Fontforge <Formula
|
||||||
depends_on 'potrace'
|
depends_on 'potrace'
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--enable-double",
|
system "./configure", "--prefix=#{prefix}",
|
||||||
"--without-freetype-bytecode", "--without-python",
|
"--enable-double",
|
||||||
"--prefix=#{prefix}"
|
"--without-freetype-bytecode",
|
||||||
|
"--without-python"
|
||||||
|
|
||||||
|
inreplace "Makefile" do |s|
|
||||||
|
s.gsub! "/Applications", "$(prefix)"
|
||||||
|
s.gsub! "/usr/local/bin", "$(bindir)"
|
||||||
|
end
|
||||||
|
|
||||||
system "make"
|
system "make"
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats
|
def caveats; <<-EOS.undent
|
||||||
"'fontforge' is an X11 application."
|
fontforge is an X11 application.
|
||||||
|
|
||||||
|
To install the Mac OS X wrapper application run:
|
||||||
|
$ brew linkapps
|
||||||
|
or:
|
||||||
|
$ sudo ln -s #{prefix}/FontForge.app /Applications
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue