2015-06-26 17:58:01 +00:00
|
|
|
class Fonttools < Formula
|
2016-10-05 13:39:45 +00:00
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
2016-01-24 22:24:40 +00:00
|
|
|
desc "Library for manipulating fonts"
|
2016-10-05 13:39:45 +00:00
|
|
|
homepage "https://github.com/fonttools/fonttools"
|
|
|
|
url "https://pypi.python.org/packages/d6/c4/688022e14fe8b8e899b40fd8eddece9f3e35b409267220432ac5f01e52c4/fonttools-3.1.2.zip"
|
|
|
|
sha256 "1e36cdaf52f93414f4ba9848e043630058b59f1ef4f1900bb1dd948f8e7ec55a"
|
|
|
|
head "https://github.com/fonttools/fonttools.git"
|
2015-06-26 17:58:01 +00:00
|
|
|
|
2015-06-26 18:42:14 +00:00
|
|
|
bottle do
|
2016-01-24 22:38:35 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-10-06 08:09:45 +00:00
|
|
|
sha256 "7f882d11851700f8c9e30da18a8b55975c6e33391b78630ebc321d64adca84f4" => :sierra
|
|
|
|
sha256 "fe9e18696b3838f6701ba776b645a71db7e2c52bad47baa7c2a94b0a2dfcf4c4" => :el_capitan
|
|
|
|
sha256 "cc80a9ec7e694e1d918cbd12920263ef808c3a336b1b8624f720e789615078c3" => :yosemite
|
2015-06-26 18:42:14 +00:00
|
|
|
end
|
|
|
|
|
2015-06-26 17:58:01 +00:00
|
|
|
option "with-pygtk", "Build with pygtk support for pyftinspect"
|
|
|
|
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
depends_on "pygtk" => :optional
|
|
|
|
|
|
|
|
def install
|
2016-10-05 13:39:45 +00:00
|
|
|
virtualenv_install_with_resources
|
2015-06-26 17:58:01 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages/FontTools"
|
2016-10-05 13:39:45 +00:00
|
|
|
system "python", "setup.py", "test"
|
2015-06-26 17:58:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
cp "/Library/Fonts/Arial.ttf", testpath
|
|
|
|
system bin/"ttx", "Arial.ttf"
|
|
|
|
end
|
|
|
|
end
|