diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-07-14 15:48:43 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-07-14 15:48:43 +0000 |
commit | 44f5ce0133d21e684bc53c292d3070bc55ab1836 (patch) | |
tree | 3808c17305636bbc199709aefd53463a8dc3ccc9 /eclass/cmake-utils.eclass | |
parent | Stable for HPPA (bug #327985). (diff) | |
download | gentoo-2-44f5ce0133d21e684bc53c292d3070bc55ab1836.tar.gz gentoo-2-44f5ce0133d21e684bc53c292d3070bc55ab1836.tar.bz2 gentoo-2-44f5ce0133d21e684bc53c292d3070bc55ab1836.zip |
Introduce $(cmake_utils_use_use foo FOO) possiblity.
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r-- | eclass/cmake-utils.eclass | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index fee56d851058..2677bdcb1475 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.55 2010/07/09 16:31:27 reavertm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.56 2010/07/14 15:48:43 scarabeus Exp $ # @ECLASS: cmake-utils.eclass # @MAINTAINER: @@ -217,6 +217,15 @@ cmake-utils_use_build() { _use_me_now BUILD_ "$@" ; } # and -DHAVE_FOO=OFF if it is disabled. cmake-utils_use_has() { _use_me_now HAVE_ "$@" ; } +# @FUNCTION: cmake-utils_use_use +# @USAGE: <USE flag> [flag name] +# @DESCRIPTION: +# Based on use_enable. See ebuild(5). +# +# `cmake-utils_use_use foo FOO` echoes -DUSE_FOO=ON if foo is enabled +# and -DUSE_FOO=OFF if it is disabled. +cmake-utils_use_use() { _use_me_now USE_ "$@" ; } + # @FUNCTION: cmake-utils_use # @USAGE: <USE flag> [flag name] # @DESCRIPTION: |