24 lines
794 B
Ruby
24 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
|