From 74af6228ebb3fe5826669c729a1b8744be5036cc Mon Sep 17 00:00:00 2001 From: Alexander Lent Date: Sun, 1 Mar 2015 17:18:34 -0800 Subject: 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 --- Library/Aliases/adwaita-icon-theme | 1 + Library/Formula/gnome-icon-theme.rb | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 120000 Library/Aliases/adwaita-icon-theme (limited to 'Library') 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 -- cgit v1.2.3