homebrew-core/Formula/adwaita-icon-theme.rb

35 lines
1.3 KiB
Ruby

class AdwaitaIconTheme < Formula
desc "Icons for the GNOME project"
homepage "https://developer.gnome.org"
url "https://download.gnome.org/sources/adwaita-icon-theme/43/adwaita-icon-theme-43.tar.xz"
sha256 "2e3ac77d32a6aa5554155df37e8f0a0dd54fc5a65fd721e88d505f970da32ec6"
license any_of: ["LGPL-3.0-or-later", "CC-BY-SA-3.0"]
bottle do
sha256 cellar: :any_skip_relocation, all: "79f3f53c3f0d0bf11c7bec0f906fd2f87c3cec7009622f15b6dde5fa1a0557d5"
end
depends_on "gettext" => :build
depends_on "gtk+3" => :build # for gtk3-update-icon-cache
depends_on "intltool" => :build
depends_on "pkg-config" => :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.
png = "weather-storm-symbolic.symbolic.png"
assert_predicate share/"icons/Adwaita/96x96/status/#{png}", :exist?
assert_predicate share/"icons/Adwaita/index.theme", :exist?
end
end