fontforge 20170731
use release tarball and remove head spec Closes #16226. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
fd87a4e1c4
commit
c06d44ea42
1 changed files with 2 additions and 18 deletions
|
@ -1,10 +1,8 @@
|
|||
class Fontforge < Formula
|
||||
desc "Command-line outline and bitmap font editor/converter"
|
||||
homepage "https://fontforge.github.io"
|
||||
url "https://github.com/fontforge/fontforge/archive/20161012.tar.gz"
|
||||
sha256 "a5f5c2974eb9109b607e24f06e57696d5861aaebb620fc2c132bdbac6e656351"
|
||||
revision 2
|
||||
head "https://github.com/fontforge/fontforge.git"
|
||||
url "https://github.com/fontforge/fontforge/releases/download/20170731/fontforge-dist-20170731.tar.xz"
|
||||
sha256 "840adefbedd1717e6b70b33ad1e7f2b116678fa6a3d52d45316793b9fd808822"
|
||||
|
||||
bottle do
|
||||
sha256 "7761dfc6c4323b846535e40a8eab0625d5c4ce5755df649628ab29f6259b4632" => :sierra
|
||||
|
@ -17,9 +15,6 @@ class Fontforge < Formula
|
|||
|
||||
deprecated_option "with-gif" => "with-giflib"
|
||||
|
||||
# Autotools are required to build from source in all releases.
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "libtool" => :run
|
||||
depends_on "gettext"
|
||||
|
@ -34,11 +29,6 @@ class Fontforge < Formula
|
|||
depends_on "libuninameslist" => :optional
|
||||
depends_on :python if MacOS.version <= :snow_leopard
|
||||
|
||||
resource "gnulib" do
|
||||
url "https://git.savannah.gnu.org/git/gnulib.git",
|
||||
:revision => "29ea6d6fe2a699a32edbe29f44fe72e0c253fcee"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV["PYTHON_CFLAGS"] = `python-config --cflags`.chomp
|
||||
ENV["PYTHON_LIBS"] = `python-config --ldflags`.chomp
|
||||
|
@ -56,13 +46,7 @@ class Fontforge < Formula
|
|||
args << "--without-libspiro" if build.without? "libspiro"
|
||||
args << "--without-libuninameslist" if build.without? "libuninameslist"
|
||||
|
||||
# Bootstrap in every build: https://github.com/fontforge/fontforge/issues/1806
|
||||
resource("gnulib").fetch
|
||||
system "./bootstrap",
|
||||
"--gnulib-srcdir=#{resource("gnulib").cached_download}",
|
||||
"--skip-git"
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
|
||||
# The app here is not functional.
|
||||
|
|
Loading…
Reference in a new issue