class Pygtksourceview < Formula desc "Python wrapper for the GtkSourceView widget library" homepage "https://projects.gnome.org/gtksourceview/pygtksourceview.html" url "https://download.gnome.org/sources/pygtksourceview/2.10/pygtksourceview-2.10.1.tar.bz2" sha256 "b4b47c5aeb67a26141cb03663091dfdf5c15c8a8aae4d69c46a6a943ca4c5974" revision 1 depends_on "pkg-config" => :build depends_on "gtksourceview" depends_on "gtk+" depends_on "pygtk" def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-docs" # attempts to download chunk.xsl on demand (and sometimes fails) system "make", "install" end test do system "python", "-c", "import gtksourceview2" end end