homebrew-core/Formula/awf.rb

39 lines
1.4 KiB
Ruby

class Awf < Formula
desc "'A Widget Factory' is a theme preview application for gtk2 and gtk3"
homepage "https://github.com/valr/awf"
url "https://github.com/valr/awf/archive/v1.4.0.tar.gz"
sha256 "bb14517ea3eed050b3fec37783b79c515a0f03268a55dfd0b96a594b5b655c78"
head "https://github.com/valr/awf.git"
bottle do
cellar :any
sha256 "05447f2e8fd02a3c1bc9e2a7c96a0c5c9c294d2e67746f4102f0c781cf46e857" => :high_sierra
sha256 "bbe56879c4de58ef832bb6ba45d07555eaf481ccb2fdafdb627ed0598ef0c3dd" => :sierra
sha256 "191615297091a381c7d5ac0b3702d936ef41c50fbdfec153df00369acac53106" => :el_capitan
sha256 "6b9e3490b4f19691535979787ff5d586c6781061bfbb26dbcbc731d64eb5f13b" => :yosemite
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "gtk+"
depends_on "gtk+3"
def install
inreplace "src/awf.c", "/usr/share/themes", "#{HOMEBREW_PREFIX}/share/themes"
system "./autogen.sh"
rm "README.md" # let's not have two copies of README
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
assert_predicate bin/"awf-gtk2", :exist?
assert_predicate bin/"awf-gtk3", :exist?
end
end