aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnome-icon-theme.rb
blob: 418277e6ced4d1c299edd51b87d68a4926de6c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class GnomeIconTheme < Formula
  homepage "https://developer.gnome.org"
  url "http://ftp.gnome.org/pub/GNOME/sources/adwaita-icon-theme/3.14/adwaita-icon-theme-3.14.1.tar.xz"
  sha1 "e1d603d9cc4e4b7f83f749ba20934832d4321dd2"

  bottle do
    cellar :any
    sha1 "0b889afbf4faea1a534c35f390a947226933af3e" => :yosemite
    sha1 "1a4f7b0358e7de6b864b9d0ba940ab2e6e971080" => :mavericks
    sha1 "18381ed6ab061f806c5bbc7b4932cbcb1409a692" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  depends_on "gettext" => :build
  depends_on "gtk+3" => :build # for gtk3-update-icon-cache
  depends_on "icon-naming-utils" => :build
  depends_on "intltool" => :build
  depends_on "librsvg"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "GTK_UPDATE_ICON_CACHE=#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache"
    system "make", "install"
  end

  test do
    # This checks that a -symbolic png file generated from svg exists
    # and that a file created late in the install process exists.
    # Someone who understands GTK+3 could probably write better tests that
    # check if GTK+3 can find the icons.
    assert (share/"icons/Adwaita/96x96/status/weather-storm-symbolic.symbolic.png").exist?
    assert (share/"icons/Adwaita/index.theme").exist?
  end
end