fontforge goes quartz-only
revision bump some audit --strict cleanup not sure how to deal with audit failure * python modules have explicit framework links These python extension modules were linked directly to a Python framework binary. They should be linked with -undefined dynamic_lookup instead of -lpython or -framework Python. /usr/local/Cellar/fontforge/20150430_1/lib/python2.7/site-packages/fontforge.so /usr/local/Cellar/fontforge/20150430_1/lib/python2.7/site-packages/psMat.so
This commit is contained in:
parent
361bd756aa
commit
6791728039
1 changed files with 4 additions and 13 deletions
|
@ -4,6 +4,7 @@ class Fontforge < Formula
|
||||||
url "https://github.com/fontforge/fontforge/archive/20150430.tar.gz"
|
url "https://github.com/fontforge/fontforge/archive/20150430.tar.gz"
|
||||||
sha256 "430c6d02611c7ca948df743e9241994efe37eda25f81a94aeadd9b6dd286ff37"
|
sha256 "430c6d02611c7ca948df743e9241994efe37eda25f81a94aeadd9b6dd286ff37"
|
||||||
head "https://github.com/fontforge/fontforge.git"
|
head "https://github.com/fontforge/fontforge.git"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "db55b0a73b4851077da8dfd48c39675f05eaf437323acccf56602779b21cf414" => :yosemite
|
sha256 "db55b0a73b4851077da8dfd48c39675f05eaf437323acccf56602779b21cf414" => :yosemite
|
||||||
|
@ -14,7 +15,6 @@ class Fontforge < Formula
|
||||||
option "with-giflib", "Build with GIF support"
|
option "with-giflib", "Build with GIF support"
|
||||||
option "with-extra-tools", "Build with additional font tools"
|
option "with-extra-tools", "Build with additional font tools"
|
||||||
|
|
||||||
deprecated_option "with-x" => "with-x11"
|
|
||||||
deprecated_option "with-gif" => "with-giflib"
|
deprecated_option "with-gif" => "with-giflib"
|
||||||
|
|
||||||
# Autotools are required to build from source in all releases.
|
# Autotools are required to build from source in all releases.
|
||||||
|
@ -32,7 +32,6 @@ class Fontforge < Formula
|
||||||
depends_on "libtiff" => :recommended
|
depends_on "libtiff" => :recommended
|
||||||
depends_on "giflib" => :optional
|
depends_on "giflib" => :optional
|
||||||
depends_on "libspiro" => :optional
|
depends_on "libspiro" => :optional
|
||||||
depends_on :x11 => :optional
|
|
||||||
depends_on :python if MacOS.version <= :snow_leopard
|
depends_on :python if MacOS.version <= :snow_leopard
|
||||||
|
|
||||||
# This may be causing font-display glitches and needs further isolation & fixing.
|
# This may be causing font-display glitches and needs further isolation & fixing.
|
||||||
|
@ -47,9 +46,9 @@ class Fontforge < Formula
|
||||||
|
|
||||||
def install
|
def install
|
||||||
if MacOS.version <= :snow_leopard || !build.bottle?
|
if MacOS.version <= :snow_leopard || !build.bottle?
|
||||||
pydir = "#{%x(python-config --prefix).chomp}"
|
pydir = `python-config --prefix`.chomp
|
||||||
else
|
else
|
||||||
pydir = "#{%x(/usr/bin/python-config --prefix).chomp}"
|
pydir = `/usr/bin/python-config --prefix`.chomp
|
||||||
end
|
end
|
||||||
|
|
||||||
args = %W[
|
args = %W[
|
||||||
|
@ -57,14 +56,9 @@ class Fontforge < Formula
|
||||||
--disable-silent-rules
|
--disable-silent-rules
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
--with-pythonbinary=#{pydir}/bin/python2.7
|
--with-pythonbinary=#{pydir}/bin/python2.7
|
||||||
|
--without-x
|
||||||
]
|
]
|
||||||
|
|
||||||
if build.with? "x11"
|
|
||||||
args << "--with-x"
|
|
||||||
else
|
|
||||||
args << "--without-x"
|
|
||||||
end
|
|
||||||
|
|
||||||
args << "--without-libpng" if build.without? "libpng"
|
args << "--without-libpng" if build.without? "libpng"
|
||||||
args << "--without-libjpeg" if build.without? "jpeg"
|
args << "--without-libjpeg" if build.without? "jpeg"
|
||||||
args << "--without-libtiff" if build.without? "libtiff"
|
args << "--without-libtiff" if build.without? "libtiff"
|
||||||
|
@ -94,9 +88,6 @@ class Fontforge < Formula
|
||||||
bin.install Dir["*"].select { |f| File.executable? f }
|
bin.install Dir["*"].select { |f| File.executable? f }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The name is case-sensitive. Don't downcase it when linking.
|
|
||||||
ln_s "#{share}/fontforge/osx/FontForge.app", prefix if build.with? "x11"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in a new issue