diff options
| author | Xu Cheng | 2015-01-08 14:39:25 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-08 10:25:45 +0000 |
| commit | fc2f5f8e5f10c87565a7f8d9b9802e120abfca29 (patch) | |
| tree | c3166af9e09e4192e8c427deff8987e3dc620dc9 /Library | |
| parent | cc5b62be39282cdadd48f1c788056572dfbb5019 (diff) | |
| download | homebrew-fc2f5f8e5f10c87565a7f8d9b9802e120abfca29.tar.bz2 | |
fontconfig: add test
Closes #35654.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/fontconfig.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/fontconfig.rb b/Library/Formula/fontconfig.rb index 203d6715f..0a2b8c9cc 100644 --- a/Library/Formula/fontconfig.rb +++ b/Library/Formula/fontconfig.rb @@ -1,9 +1,7 @@ -require 'formula' - class Fontconfig < Formula - homepage 'http://fontconfig.org/' - url 'http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2' - sha1 '08565feea5a4e6375f9d8a7435dac04e52620ff2' + homepage "http://fontconfig.org/" + url "http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2" + sha1 "08565feea5a4e6375f9d8a7435dac04e52620ff2" # The bottle tooling is too lenient and thinks fontconfig # is relocatable, but it has hardcoded paths in the executables. @@ -19,8 +17,8 @@ class Fontconfig < Formula option :universal - depends_on 'pkg-config' => :build - depends_on 'freetype' + depends_on "pkg-config" => :build + depends_on "freetype" # Reverts commit http://cgit.freedesktop.org/fontconfig/commit/?id=7a6622f25cdfab5ab775324bef1833b67109801b, # which breaks caching font directories containing subdirectories @@ -42,6 +40,10 @@ class Fontconfig < Formula def post_install system "#{bin}/fc-cache", "-frv" end + + test do + system "#{bin}/fc-list" + end end __END__ |
