aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash')
-rwxr-xr-xpaludis/repositories/e/ebuild/exheres-0/conditional_functions.bash12
1 files changed, 2 insertions, 10 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash b/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash
index 4f6642fbf..1795cab19 100755
--- a/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash
@@ -32,19 +32,11 @@ use_enable()
option_with()
{
- if optionq "${1}" ; then
- echo "--with-${2:-$(optionfmt ${1} )}${3+=${3}}"
- else
- echo "--without-${2:-$(optionfmt ${1} )}"
- fi
+ option "${1}" "--with-${2:-$(optionfmt ${1} )}${3+=${3}}" "--without-${2:-$(optionfmt ${1} )}"
}
option_enable()
{
- if optionq "${1}" ; then
- echo "--enable-${2:-$(optionfmt ${1} )}${3+=${3}}"
- else
- echo "--disable-${2:-$(optionfmt ${1} )}"
- fi
+ option "${1}" "--enable-${2:-$(optionfmt ${1} )}${3+=${3}}" "--disable-${2:-$(optionfmt ${1} )}"
}