pygtk: fix pygobject-codegen-2.0 path

Closes Homebrew/homebrew#29330.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Jeong, Heon 2014-05-17 10:22:01 +09:00 committed by Adam Vandenberg
parent 95effd0245
commit eec6b3a172
1 changed files with 6 additions and 0 deletions

View File

@ -27,5 +27,11 @@ class Pygtk < Formula
# pygtk to pygobject. But our pkgfiles point into the cellar and in the
# pygtk-cellar there is no pygobject.
inreplace lib/'pkgconfig/pygtk-2.0.pc', 'codegendir=${datadir}/pygobject/2.0/codegen', "codegendir=#{HOMEBREW_PREFIX}/share/pygobject/2.0/codegen"
inreplace bin/"pygtk-codegen-2.0", "exec_prefix=${prefix}", "exec_prefix=#{Formula["pygobject"].opt_prefix}"
end
test do
(testpath/"codegen.def").write("(define-enum asdf)")
system "#{bin}/pygtk-codegen-2.0", "codegen.def"
end
end