pygtk: modernize optional dependency

Closes Homebrew/homebrew#28092.

Note from Jack:

I know renaming an option is bad form, but my gut says this is
a little-used option and it's worth changing to fix the cases where it
is causing breakage.

See https://github.com/Homebrew/homebrew/issues/27485 for background.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
blogabe 2014-04-02 16:46:51 -07:00 committed by Jack Nagel
parent b499a1c371
commit 073959abdc

View file

@ -12,10 +12,9 @@ class Pygtk < Formula
depends_on 'atk'
depends_on 'pygobject'
depends_on 'py2cairo'
depends_on 'libglade' if build.include? 'glade'
depends_on 'libglade' => :optional
option :universal
option 'glade', 'Python bindigs for glade. (to `import gtk.glade`)'
def install
ENV.append 'CFLAGS', '-ObjC'