```ruby
depends_on "gtk+"  => :optional

if build.with? "gtk"
  depends_on "pango"
  depends_on "gdk-pixbuf"
end 
```