Update Formula: fontforge

Make formula installable as non-superuser

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Alexis Hildebrandt 2010-09-09 21:38:22 +02:00 committed by Adam Vandenberg
parent 769d881c37
commit 299618fe06

View file

@ -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