2012-04-21 19:04:41 +00:00
|
|
|
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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2ae3e87e8cdfc3318d8ff0e33b344377cb3df7cb'
|
2012-04-21 19:04:41 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'pygtk'
|
|
|
|
depends_on 'gtkglext'
|
|
|
|
depends_on 'pygobject'
|
|
|
|
|
|
|
|
def install
|
2013-01-21 09:33:56 +00:00
|
|
|
ENV['PYGTK_CODEGEN'] = Formula.factory('pygobject').opt_prefix/'bin/pygobject-codegen-2.0'
|
2012-04-21 19:04:41 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-02-02 05:12:49 +00:00
|
|
|
test do
|
2014-01-04 13:14:08 +00:00
|
|
|
system "python", "-c", "import pygtk", "pygtk.require('2.0')", "import gtk.gtkgl"
|
2012-04-21 19:04:41 +00:00
|
|
|
end
|
|
|
|
end
|