This could get simplified to:

```ruby
depends_on 'gettext' unless build.without? 'nls'
```

Also, watch your indentation ;)