/[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.4 Revision 1.5
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.4 2007/12/13 16:23:59 betelgeuse Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.5 2008/02/20 00:35:11 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
27_use_me_now() { 27_use_me_now() {
28 debug-print-function $FUNCNAME $* 28 debug-print-function $FUNCNAME $*
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
33# @VARIABLE: DOCS
34# @USAGE: DOCS="README ChangeLog"
35# @DESCRIPTION:
36# Documents to dodoc
32 37
33# @FUNCTION: cmake-utils_use_with 38# @FUNCTION: cmake-utils_use_with
34# @USAGE: <USE flag> [flag name] 39# @USAGE: <USE flag> [flag name]
35# @DESCRIPTION: 40# @DESCRIPTION:
36# Based on use_with. See ebuild(5). 41# Based on use_with. See ebuild(5).
163 fi 168 fi
164 emake install DESTDIR="${D}" || die "Make install failed" 169 emake install DESTDIR="${D}" || die "Make install failed"
165 if [[ -d ${WORKDIR}/${PN}_build ]]; then 170 if [[ -d ${WORKDIR}/${PN}_build ]]; then
166 popd > /dev/null 171 popd > /dev/null
167 fi 172 fi
173
174 # Manual document installation
175 [[ -n "${DOCS}" ]] && dodoc ${DOCS}
168} 176}
169 177
170# @FUNCTION: cmake-utils_src_test 178# @FUNCTION: cmake-utils_src_test
171# @DESCRIPTION: 179# @DESCRIPTION:
172# Function for testing the package. Automatically detects the build type. 180# Function for testing the package. Automatically detects the build type.

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

  ViewVC Help
Powered by ViewVC 1.1.20