-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fonttools: remove venv, depend on python-brotli
- Loading branch information
1 parent
ab37c03
commit ac24438
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,22 +18,26 @@ class Fonttools < Formula | |
sha256 cellar: :any_skip_relocation, x86_64_linux: "5f5882ed5c35176b03b9de36e08e9bf30a634a7a79d6cfc4d7c31062538a2e8f" | ||
end | ||
|
||
depends_on "python-setuptools" => :build | ||
depends_on "python-brotli" | ||
depends_on "[email protected]" | ||
|
||
resource "brotli" do | ||
url "https://files.pythonhosted.org/packages/2f/c2/f9e977608bdf958650638c3f1e28f85a1b075f075ebbe77db8555463787b/Brotli-1.1.0.tar.gz" | ||
sha256 "81de08ac11bcb85841e440c13611c00b67d3bf82698314928d0b676362546724" | ||
def python3 | ||
which("python3.12") | ||
end | ||
|
||
def install | ||
virtualenv_install_with_resources | ||
system python3, "-m", "pip", "install", *std_pip_args, "." | ||
end | ||
|
||
test do | ||
if OS.mac? | ||
cp "/System/Library/Fonts/ZapfDingbats.ttf", testpath | ||
|
||
system bin/"ttx", "ZapfDingbats.ttf" | ||
assert_predicate testpath/"ZapfDingbats.ttx", :exist? | ||
system bin/"fonttools", "ttLib.woff2", "compress", "ZapfDingbats.ttf" | ||
assert_predicate testpath/"ZapfDingbats.woff2", :exist? | ||
else | ||
assert_match "usage", shell_output("#{bin}/ttx -h") | ||
end | ||
|