Skip to content

Commit

Permalink
Accept options in managed template.
Browse files Browse the repository at this point in the history
For instance, when installing via brew, you sometimes want to pass options such
as --use-clang or --with-quantum-depth-8 (imagemagick) etc.
  • Loading branch information
johnae committed Mar 5, 2012
1 parent 9ee50ae commit e94118c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/templates/managed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def add_cfg_deps
pkg_manager.update_pkg_lists_if_required
}
meet {
pkg_manager.install! packages
pkg_manager.install! packages, options.join(' ')
}
}

Expand All @@ -49,6 +49,7 @@ def add_cfg_deps
accepts_list_for :provides, :basename, :choose_with => :via
accepts_list_for :service_name, :name
accepts_list_for :cfg
accepts_list_for :options

def pkg_manager
Babushka.host.pkg_helper
Expand Down

0 comments on commit e94118c

Please sign in to comment.