From fc2f5f8e5f10c87565a7f8d9b9802e120abfca29 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 8 Jan 2015 14:39:25 +0800 Subject: fontconfig: add test Closes #35654. Signed-off-by: Mike McQuaid --- Library/Formula/fontconfig.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Library/Formula') 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__ -- cgit v1.2.3