aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-03-05 19:07:29 +0100
committerXu Cheng2015-03-28 00:34:10 +0800
commit6c136a41aaecccafb55671e5181c7828b7acb480 (patch)
tree5df07daf6169e6bec3891e713595f7e2afc77446 /Library
parent121929b1f99e216f03a7d0293a3f9f249a6a0faf (diff)
downloadhomebrew-6c136a41aaecccafb55671e5181c7828b7acb480.tar.bz2
libcroco 0.6.8
Closes #37426. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libcroco.rb22
1 files changed, 13 insertions, 9 deletions
diff --git a/Library/Formula/libcroco.rb b/Library/Formula/libcroco.rb
index 0f226df5a..44a327c2d 100644
--- a/Library/Formula/libcroco.rb
+++ b/Library/Formula/libcroco.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Libcroco < Formula
- homepage 'http://www.linuxfromscratch.org/blfs/view/svn/general/libcroco.html'
- url 'http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/libcroco-0.6.5.tar.xz'
- sha256 '2c6959c3644e889264a61c35ddf17401c86943681d4fe3c1682ecd9acabda7e3'
+ homepage "http://www.linuxfromscratch.org/blfs/view/svn/general/libcroco.html"
+ url "http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/libcroco-0.6.8.tar.xz"
+ sha256 "ea6e1b858c55219cefd7109756bff5bc1a774ba7a55f7d3ccd734d6b871b8570"
bottle do
cellar :any
@@ -13,15 +11,21 @@ class Libcroco < Formula
sha1 "52cd96351c6cbdce21f396823813b79dd60c4f09" => :mountain_lion
end
- depends_on 'pkg-config' => :build
- depends_on 'intltool' => :build
- depends_on 'glib'
+ depends_on "pkg-config" => :build
+ depends_on "intltool" => :build
+ depends_on "glib"
def install
ENV.libxml2
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-Bsymbolic"
- system 'make install'
+ system "make", "install"
+ end
+
+ test do
+ (testpath/"test.css").write ".brew-pr { color: green }"
+ assert_equal ".brew-pr {\n color : green\n}",
+ shell_output("#{bin}/csslint-0.6 test.css").chomp
end
end