/[gentoo-x86]/eclass/cmake-utils.eclass
Gentoo

Diff of /eclass/cmake-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.100 Revision 1.101
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.100 2013/07/24 20:57:38 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.101 2013/12/24 14:54:26 dilfridge Exp $
4 4
5# @ECLASS: cmake-utils.eclass 5# @ECLASS: cmake-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
324# Based on use_enable. See ebuild(5). 324# Based on use_enable. See ebuild(5).
325# 325#
326# `cmake-utils_use foo FOO` echoes -DFOO=ON if foo is enabled 326# `cmake-utils_use foo FOO` echoes -DFOO=ON if foo is enabled
327# and -DFOO=OFF if it is disabled. 327# and -DFOO=OFF if it is disabled.
328cmake-utils_use() { _use_me_now "" "$@" ; } 328cmake-utils_use() { _use_me_now "" "$@" ; }
329
330# @FUNCTION: cmake-utils_useno
331# @USAGE: <USE flag> [flag name]
332# @DESCRIPTION:
333# Based on use_enable. See ebuild(5).
334#
335# `cmake-utils_useno foo NOFOO` echoes -DNOFOO=OFF if foo is enabled
336# and -DNOFOO=ON if it is disabled.
337cmake-utils_useno() { _use_me_now_inverted "" "$@" ; }
329 338
330# Internal function for modifying hardcoded definitions. 339# Internal function for modifying hardcoded definitions.
331# Removes dangerous definitions that override Gentoo settings. 340# Removes dangerous definitions that override Gentoo settings.
332_modify-cmakelists() { 341_modify-cmakelists() {
333 debug-print-function ${FUNCNAME} "$@" 342 debug-print-function ${FUNCNAME} "$@"

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

  ViewVC Help
Powered by ViewVC 1.1.20