gtk-chtheme: import from homebrew/gui.

This commit is contained in:
Mike McQuaid 2017-01-22 19:29:27 +00:00
parent 5dec4e3dda
commit f71fdafbc0

25
Formula/gtk-chtheme.rb Normal file
View file

@ -0,0 +1,25 @@
class GtkChtheme < Formula
desc "GTK+ 2.0 theme changer GUI"
homepage "http://plasmasturm.org/code/gtk-chtheme/"
url "http://plasmasturm.org/code/gtk-chtheme/gtk-chtheme-0.3.1.tar.bz2"
sha256 "26f4b6dd60c220d20d612ca840b6beb18b59d139078be72c7b1efefc447df844"
revision 1
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gtk+"
def install
# Unfortunately chtheme relies on some deprecated functionality
# we need to disable errors for it to compile properly
inreplace "Makefile", "-DGTK_DISABLE_DEPRECATED", ""
system "make", "PREFIX=#{prefix}", "install"
end
test do
# package contains just an executable and a man file
# executable accepts no options and just spawns a GUI
assert (bin/"gtk-chtheme").exist?
end
end