homebrew-core/Formula/pygtkglext.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

23 lines
717 B
Ruby

require 'formula'
class Pygtkglext < Formula
homepage 'http://projects.gnome.org/gtkglext/download.html#pygtkglext'
url 'https://downloads.sourceforge.net/gtkglext/pygtkglext-1.1.0.tar.gz'
sha1 '2ae3e87e8cdfc3318d8ff0e33b344377cb3df7cb'
depends_on 'pkg-config' => :build
depends_on 'pygtk'
depends_on 'gtkglext'
depends_on 'pygobject'
def install
ENV['PYGTK_CODEGEN'] = Formula["pygobject"].opt_prefix/'bin/pygobject-codegen-2.0'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
test do
system "python", "-c", "import pygtk", "pygtk.require('2.0')", "import gtk.gtkgl"
end
end