Update Formula: fontforge

Make formula installable as non-superuser

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Alexis Hildebrandt 2010-09-09 21:38:22 +02:00 committed by Adam Vandenberg
parent 769d881c37
commit 299618fe06
1 changed files with 18 additions and 5 deletions

View File

@ -11,14 +11,27 @@ class Fontforge <Formula
depends_on 'potrace'
def install
system "./configure", "--enable-double",
"--without-freetype-bytecode", "--without-python",
"--prefix=#{prefix}"
system "./configure", "--prefix=#{prefix}",
"--enable-double",
"--without-freetype-bytecode",
"--without-python"
inreplace "Makefile" do |s|
s.gsub! "/Applications", "$(prefix)"
s.gsub! "/usr/local/bin", "$(bindir)"
end
system "make"
system "make install"
end
def caveats
"'fontforge' is an X11 application."
def caveats; <<-EOS.undent
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