From 73759efc472e67f26bd36621351c2435ef315afe Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Sat, 21 Apr 2012 21:04:41 +0200 Subject: [PATCH] pygtkglext 1.1.0 Closes Homebrew/homebrew#11801. Signed-off-by: Adam Vandenberg --- Formula/pygtkglext.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Formula/pygtkglext.rb diff --git a/Formula/pygtkglext.rb b/Formula/pygtkglext.rb new file mode 100644 index 0000000000..14c988c149 --- /dev/null +++ b/Formula/pygtkglext.rb @@ -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