/[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.3 Revision 1.4
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.3 2007/12/06 20:40:20 philantrop Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.4 2007/12/13 16:23:59 betelgeuse 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# @BLURB: common ebuild functions for cmake-based packages 8# @BLURB: common ebuild functions for cmake-based packages
32 32
33# @FUNCTION: cmake-utils_use_with 33# @FUNCTION: cmake-utils_use_with
34# @USAGE: <USE flag> [flag name] 34# @USAGE: <USE flag> [flag name]
35# @DESCRIPTION: 35# @DESCRIPTION:
36# Based on use_with. See ebuild(5). 36# Based on use_with. See ebuild(5).
37# 37#
38# `cmake-utils_use_with foo FOO` echoes -DWITH_FOO=ON if foo is enabled 38# `cmake-utils_use_with foo FOO` echoes -DWITH_FOO=ON if foo is enabled
39# and -DWITH_FOO=OFF if it is disabled. 39# and -DWITH_FOO=OFF if it is disabled.
40cmake-utils_use_with() { _use_me_now WITH "$@" ; } 40cmake-utils_use_with() { _use_me_now WITH "$@" ; }
41 41
42# @FUNCTION: cmake-utils_use_enable 42# @FUNCTION: cmake-utils_use_enable
43# @USAGE: <USE flag> [flag name] 43# @USAGE: <USE flag> [flag name]
44# @DESCRIPTION: 44# @DESCRIPTION:
45# Based on use_enable. See ebuild(5). 45# Based on use_enable. See ebuild(5).
46# 46#
47# `cmake-utils_use_enable foo FOO` echoes -DENABLE_FOO=ON if foo is enabled 47# `cmake-utils_use_enable foo FOO` echoes -DENABLE_FOO=ON if foo is enabled
48# and -DENABLE_FOO=OFF if it is disabled. 48# and -DENABLE_FOO=OFF if it is disabled.
49cmake-utils_use_enable() { _use_me_now ENABLE "$@" ; } 49cmake-utils_use_enable() { _use_me_now ENABLE "$@" ; }
50 50
51# @FUNCTION: cmake-utils_use_want 51# @FUNCTION: cmake-utils_use_want
52# @USAGE: <USE flag> [flag name] 52# @USAGE: <USE flag> [flag name]
53# @DESCRIPTION: 53# @DESCRIPTION:
54# Based on use_enable. See ebuild(5). 54# Based on use_enable. See ebuild(5).
55# 55#
56# `cmake-utils_use_want foo FOO` echoes -DWANT_FOO=ON if foo is enabled 56# `cmake-utils_use_want foo FOO` echoes -DWANT_FOO=ON if foo is enabled
57# and -DWANT_FOO=OFF if it is disabled. 57# and -DWANT_FOO=OFF if it is disabled.
58cmake-utils_use_want() { _use_me_now WANT "$@" ; } 58cmake-utils_use_want() { _use_me_now WANT "$@" ; }
59 59
60# @FUNCTION: cmake-utils_has 60# @FUNCTION: cmake-utils_has
61# @USAGE: <USE flag> [flag name] 61# @USAGE: <USE flag> [flag name]
62# @DESCRIPTION: 62# @DESCRIPTION:
63# Based on use_enable. See ebuild(5). 63# Based on use_enable. See ebuild(5).
64# 64#
65# `cmake-utils_has foo FOO` echoes -DHAVE_FOO=ON if foo is enabled 65# `cmake-utils_has foo FOO` echoes -DHAVE_FOO=ON if foo is enabled
66# and -DHAVE_FOO=OFF if it is disabled. 66# and -DHAVE_FOO=OFF if it is disabled.
67cmake-utils_has() { _use_me_now HAVE "$@" ; } 67cmake-utils_has() { _use_me_now HAVE "$@" ; }
68 68
69# @FUNCTION: cmake-utils_src_compile 69# @FUNCTION: cmake-utils_src_compile

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20