pygtkglext 1.1.0

Closes Homebrew/homebrew#11801.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Pepijn de Vos 2012-04-21 21:04:41 +02:00 committed by Adam Vandenberg
parent 901c3cdd8e
commit 73759efc47

31
Formula/pygtkglext.rb Normal file
View file

@ -0,0 +1,31 @@
require 'formula'
class Pygtkglext < Formula
homepage 'http://projects.gnome.org/gtkglext/download.html#pygtkglext'
url 'http://downloads.sourceforge.net/gtkglext/pygtkglext-1.1.0.tar.gz'
md5 'dfbe2ceb05db9265a7d94b209fa8ad97'
depends_on 'pkg-config' => :build
depends_on 'pygtk'
depends_on 'gtkglext'
depends_on 'pygobject'
def install
ENV['PYGTK_CODEGEN'] = which 'pygobject-codegen-2.0'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
# Test importing the modules
mktemp do
(Pathname.pwd+'test.py').write <<-EOS.undent
import pygtk
pygtk.require('2.0')
import gtk.gtkgl
EOS
system "python test.py"
end
end
end