homebrew-core/Formula/gkrellm.rb
Stephen Gelman 7bbedba864 gkrellm 2.3.5
Closes Homebrew/homebrew#25422.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-01 12:44:52 -08:00

39 lines
1.3 KiB
Ruby

require 'formula'
class Gkrellm < Formula
homepage 'http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html'
url 'http://members.dslextreme.com/users/billw/gkrellm/gkrellm-2.3.5.tar.bz2'
sha1 'bcfc2efb5fd3f27e9bb703bda73f6a1d96b080df'
depends_on :x11
depends_on 'pkg-config' => :build
depends_on 'atk'
depends_on 'cairo'
depends_on 'fontconfig'
depends_on 'freetype'
depends_on 'gdk-pixbuf'
depends_on 'gettext'
depends_on 'glib'
depends_on 'gtk+'
depends_on 'pango'
def patches
{ :p0 => [
'https://trac.macports.org/export/115088/trunk/dports/sysutils/gkrellm/files/207a0519ac73290ba65b6e5f7446549a2a66f5d2.patch',
'https://trac.macports.org/export/115088/trunk/dports/sysutils/gkrellm/files/patch-src-Makefile.diff'
]}
end
def install
inreplace 'Makefile', '$(PREFIX)', prefix
inreplace 'src/gkrellm.h' do |s|
s.gsub! '/usr/local/share/gkrellm2/themes', "#{share}/gkrellm2/themes"
s.gsub! 'src/gkrellm.h', '/usr/share/gkrellm2/themes', "#{share}/gkrellm2/themes"
s.gsub! 'src/gkrellm.h', '/usr/local/lib/gkrellm2/plugins', "#{libexec}/gkrellm2/plugins"
s.gsub! 'src/gkrellm.h', '/usr/lib/gkrellm2/plugins', "#{libexec}/gkrellm2/plugins"
end
system "make", "darwin9"
system "make", "install_darwin9"
end
end