homebrew-core/Formula/pygtkglext.rb
Tom Schoonjans e619394ff3 several small fixes
Closes Homebrew/homebrew#39868.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-17 15:59:00 +01:00

23 lines
794 B
Ruby

class Pygtkglext < Formula
desc "Python bindings to OpenGL GTK+ extension"
homepage "https://projects.gnome.org/gtkglext/download.html#pygtkglext"
url "https://download.gnome.org/sources/pygtkglext/1.1/pygtkglext-1.1.0.tar.gz"
sha256 "9712c04c60bf6ee7d05e0c6a6672040095c2ea803a1546af6dfde562dc0178a3"
revision 1
depends_on "pkg-config" => :build
depends_on "pygtk"
depends_on "gtkglext"
depends_on "pygobject"
def install
ENV["PYGTK_CODEGEN"] = "#{Formula["pygobject"].opt_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