aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexander Lent2015-03-01 17:18:34 -0800
committerTim D. Smith2015-03-02 17:32:05 -0800
commit74af6228ebb3fe5826669c729a1b8744be5036cc (patch)
tree1ca692f13bdec791a4d9eacc1f0bf359e41922a3 /Library
parentcb7416e7c2ac7ef65f25587ff84b2372e704a87d (diff)
downloadhomebrew-74af6228ebb3fe5826669c729a1b8744be5036cc.tar.bz2
adwaita-icon-theme 3.14.1
Update gnome-icon-theme to 3.14.1 and alias adwaita-icon-theme. In GNOME 3.14, gnome-icon-theme and gnome-icon-theme-symbolic were merged into adwaita-icon-theme, because the symbolic icons are no longer considered optional.[1] Moving to the latest stable version of this package fixes the lack of symbolic icons for GTK+3 in Homebrew. The tests I've written are simple sanity checks that ensure certain files were created in the install process. Someone with GTK+3 knowledge could probably write better ones that check if GTK+ properly detects the icon files. [1]: https://mail.gnome.org/archives/desktop-devel-list/2014-April/msg00086.html The gnome-icon-theme-symbolic package (merged into adwaita-icon-theme, we call it gnome-icon-theme for historic reasons) requires librsvg to generate PNG files from the symbolic icon SVG files. (This was not necessary beforehand, because all icons in the original gnome-icon-theme were PNGs) Closes #37306. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
l---------Library/Aliases/adwaita-icon-theme1
-rw-r--r--Library/Formula/gnome-icon-theme.rb18
2 files changed, 13 insertions, 6 deletions
diff --git a/Library/Aliases/adwaita-icon-theme b/Library/Aliases/adwaita-icon-theme
new file mode 120000
index 000000000..7ee1d16e5
--- /dev/null
+++ b/Library/Aliases/adwaita-icon-theme
@@ -0,0 +1 @@
+../Formula/gnome-icon-theme.rb \ No newline at end of file
diff --git a/Library/Formula/gnome-icon-theme.rb b/Library/Formula/gnome-icon-theme.rb
index 0b7551c84..92c06cf19 100644
--- a/Library/Formula/gnome-icon-theme.rb
+++ b/Library/Formula/gnome-icon-theme.rb
@@ -1,10 +1,7 @@
-require "formula"
-
class GnomeIconTheme < Formula
homepage "https://developer.gnome.org"
- url "http://ftp.gnome.org/pub/GNOME/sources/gnome-icon-theme/3.12/gnome-icon-theme-3.12.0.tar.xz"
- sha1 "cc0f0dc55db3c4ca7f2f34564402f712807f1342"
- revision 1
+ 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
@@ -18,12 +15,21 @@ class GnomeIconTheme < Formula
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}",
- "--enable-icon-mapping",
"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