cdd2ce0da4
Add the helpers vopt_if, vopt_with and vopt_enable that simplify common option-based operations. Instead of a bunch of if [ "$build_option_foo" ]; then configure_args+=" --with-foo" makedepends+=" foo-devel" else configure_args+=" --without-foo" fi one can use configure_args="... $(vopt_with foo) makedepends="... $(vopt_if foo foo-devel)" instead. We're adding these functions to common/xbps-src/shutils/common.sh but that might not be the ideal place. I would've preferred common/helpers/options.sh, but helpers are only available in the individual phases, not when the template itself gets parsed. |
||
---|---|---|
.. | ||
build_style | ||
cross-profiles | ||
environment | ||
helpers | ||
hooks | ||
repo-keys | ||
xbps-src | ||
options.description | ||
shlibs |