gtk-chtheme: import from homebrew/gui.
This commit is contained in:
parent
5dec4e3dda
commit
f71fdafbc0
1 changed files with 25 additions and 0 deletions
25
Formula/gtk-chtheme.rb
Normal file
25
Formula/gtk-chtheme.rb
Normal 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
|
Loading…
Reference in a new issue