/[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.6 Revision 1.8
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.6 2008/02/20 14:33:20 zlin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.8 2008/04/23 11:55:51 ingmar 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
17 17
18inherit toolchain-funcs multilib 18inherit toolchain-funcs multilib
19 19
20DESCRIPTION="Based on the ${ECLASS} eclass" 20DESCRIPTION="Based on the ${ECLASS} eclass"
21 21
22DEPEND="dev-util/cmake" 22DEPEND=">=dev-util/cmake-2.4.6"
23 23
24EXPORT_FUNCTIONS src_compile src_test src_install 24EXPORT_FUNCTIONS src_compile src_test src_install
25 25
26# Internal function use by cmake-utils_use_with and cmake-utils_use_enable 26# Internal function use by cmake-utils_use_with and cmake-utils_use_enable
27_use_me_now() { 27_use_me_now() {
90# Function for software that requires configure and building in the source 90# Function for software that requires configure and building in the source
91# directory. 91# directory.
92cmake-utils_src_configurein() { 92cmake-utils_src_configurein() {
93 debug-print-function $FUNCNAME $* 93 debug-print-function $FUNCNAME $*
94 94
95 local cmakeargs="$(_common_configure_code) ${mycmakeargs}" 95 local cmakeargs="$(_common_configure_code) ${mycmakeargs} ${EXTRA_ECONF}"
96 96
97 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs" 97 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs"
98 cmake ${cmakeargs} . || die "Cmake failed" 98 cmake ${cmakeargs} . || die "Cmake failed"
99} 99}
100 100
103# Function for software that requires configure and building outside the source 103# Function for software that requires configure and building outside the source
104# tree - default. 104# tree - default.
105cmake-utils_src_configureout() { 105cmake-utils_src_configureout() {
106 debug-print-function $FUNCNAME $* 106 debug-print-function $FUNCNAME $*
107 107
108 local cmakeargs="$(_common_configure_code) ${mycmakeargs}" 108 local cmakeargs="$(_common_configure_code) ${mycmakeargs} ${EXTRA_ECONF}"
109 mkdir -p "${WORKDIR}"/${PN}_build 109 mkdir -p "${WORKDIR}"/${PN}_build
110 pushd "${WORKDIR}"/${PN}_build > /dev/null 110 pushd "${WORKDIR}"/${PN}_build > /dev/null
111 111
112 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs" 112 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs"
113 cmake ${cmakeargs} "${S}" || die "Cmake failed" 113 cmake ${cmakeargs} "${S}" || die "Cmake failed"

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20