diff options
| author | Mike McQuaid | 2014-01-04 13:05:34 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-04 13:19:22 +0000 |
| commit | 1992bb268c6839ad141484fc7e6a75d876dd9bfb (patch) | |
| tree | 6c91a798e328314052d6209e148786fa06bf0f49 /Library | |
| parent | c166463f4740919ae73cd0936f5a7eb51c2a02d9 (diff) | |
| download | homebrew-1992bb268c6839ad141484fc7e6a75d876dd9bfb.tar.bz2 | |
fontforge: cleanup python usage.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/fontforge.rb | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Library/Formula/fontforge.rb b/Library/Formula/fontforge.rb index 7dfbf3cf7..b14fe4e34 100644 --- a/Library/Formula/fontforge.rb +++ b/Library/Formula/fontforge.rb @@ -69,7 +69,7 @@ class Fontforge < Formula if build.with? 'python' args << "--enable-pyextension" # Fix linking to correct Python library - ENV.prepend "LDFLAGS", "-L#{python.libdir}" + ENV.prepend "LDFLAGS", "-L#{%x(python-config --prefix).chomp}/lib" else args << "--without-python" end @@ -102,7 +102,7 @@ class Fontforge < Formula # Fix install location of Python extension; see: # http://sourceforge.net/mailarchive/message.php?msg_id=26827938 inreplace "Makefile" do |s| - s.gsub! "python setup.py install --prefix=$(prefix) --root=$(DESTDIR)", "#{python} setup.py install --prefix=$(prefix)" + s.gsub! "python setup.py install --prefix=$(prefix) --root=$(DESTDIR)", "python setup.py install --prefix=$(prefix)" end # Replace FlatCarbon headers with the real paths @@ -122,23 +122,19 @@ class Fontforge < Formula end def caveats - x_caveats = <<-EOS.undent - fontforge is an X11 application. - - To install the Mac OS X wrapper application run: - brew linkapps - or: - ln -s #{opt_prefix}/FontForge.app /Applications - EOS - - s = "" - s += x_caveats if build.with? "x" - s += python.standard_caveats if python - return s + if build.with? "x" + <<-EOS.undent + fontforge is an X11 application. + + To install the Mac OS X wrapper application run: + brew linkapps + or: + ln -s #{opt_prefix}/FontForge.app /Applications + EOS + end end test do system "#{bin}/fontforge", "-version" - system python, "-c", "import fontforge" end end |
