fontforge: add --without-python option

FontForge will compile with newer Homebrew-built versions of Python, but
I have an older one and needed this to work to test Lilypad builds.
master
Adam Vandenberg 2011-06-13 15:06:03 -07:00
parent bf58140732
commit 94a48ce753
1 changed files with 8 additions and 3 deletions

View File

@ -11,15 +11,20 @@ class Fontforge < Formula
depends_on 'pango'
depends_on 'potrace'
def options
[['--without-python', 'Build without Python.']]
end
fails_with_llvm "Compiling cvexportdlg.c fails with error: initializer element is not constant"
def install
args = ["--prefix=#{prefix}", "--enable-double", "--without-freetype-bytecode"]
args << "--without-python" if ARGV.include? "--without-python"
ENV.x11
# Fix linker error; see: http://trac.macports.org/ticket/25012
ENV.append "LDFLAGS", "-lintl"
system "./configure", "--prefix=#{prefix}",
"--enable-double",
"--without-freetype-bytecode"
system "./configure", *args
inreplace "Makefile" do |s|
s.gsub! "/Applications", "$(prefix)"