| 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.5 2008/02/20 00:35:11 zlin Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.6 2008/02/20 14:33:20 zlin 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 |
| … | |
… | |
| 29 | [[ -z $2 ]] && die "cmake-utils_use-$1 <USE flag> [<flag name>]" |
29 | [[ -z $2 ]] && die "cmake-utils_use-$1 <USE flag> [<flag name>]" |
| 30 | echo "-D$1_${3:-$2}=$(use $2 && echo ON || echo OFF)" |
30 | echo "-D$1_${3:-$2}=$(use $2 && echo ON || echo OFF)" |
| 31 | } |
31 | } |
| 32 | |
32 | |
| 33 | # @VARIABLE: DOCS |
33 | # @VARIABLE: DOCS |
| 34 | # @USAGE: DOCS="README ChangeLog" |
|
|
| 35 | # @DESCRIPTION: |
34 | # @DESCRIPTION: |
| 36 | # Documents to dodoc |
35 | # Documents to dodoc |
| 37 | |
36 | |
| 38 | # @FUNCTION: cmake-utils_use_with |
37 | # @FUNCTION: cmake-utils_use_with |
| 39 | # @USAGE: <USE flag> [flag name] |
38 | # @USAGE: <USE flag> [flag name] |