aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-13 15:06:03 -0700
committerAdam Vandenberg2011-06-13 15:06:03 -0700
commit2ef55c73c325614d4ed5444866cff6f46e1b5f7b (patch)
treeb311f7052b3c95b5e4056ff43c6072a98e57a8c4
parent28f01142b24b7a7990af961de0e0c24cded5661a (diff)
downloadhomebrew-2ef55c73c325614d4ed5444866cff6f46e1b5f7b.tar.bz2
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.
-rw-r--r--Library/Formula/fontforge.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/fontforge.rb b/Library/Formula/fontforge.rb
index 79879150f..5f6f611ba 100644
--- a/Library/Formula/fontforge.rb
+++ b/Library/Formula/fontforge.rb
@@ -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)"