/[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.15 Revision 1.16
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.15 2008/11/05 20:59:37 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.16 2008/12/24 15:41:06 scarabeus 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
114# directory. 114# directory.
115cmake-utils_src_configurein() { 115cmake-utils_src_configurein() {
116 debug-print-function $FUNCNAME $* 116 debug-print-function $FUNCNAME $*
117 117
118 _common_configure_code 118 _common_configure_code
119 local cmakeargs="${mycmakeargs} ${EXTRA_ECONF}" 119 local cmakeargs="${mycmakeargs} ${EXTRA_ECONF} -DCMAKE_INSTALL_DO_STRIP=OFF"
120 120
121 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs" 121 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs"
122 cmake -C "${TMPDIR}/gentoo_common_config.cmake" ${cmakeargs} . || die "Cmake failed" 122 cmake -C "${TMPDIR}/gentoo_common_config.cmake" ${cmakeargs} . || die "Cmake failed"
123} 123}
124 124
128# tree - default. 128# tree - default.
129cmake-utils_src_configureout() { 129cmake-utils_src_configureout() {
130 debug-print-function $FUNCNAME $* 130 debug-print-function $FUNCNAME $*
131 131
132 _common_configure_code 132 _common_configure_code
133 local cmakeargs="${mycmakeargs} ${EXTRA_ECONF}" 133 local cmakeargs="${mycmakeargs} ${EXTRA_ECONF} -DCMAKE_INSTALL_DO_STRIP=OFF"
134 mkdir -p "${WORKDIR}"/${PN}_build 134 mkdir -p "${WORKDIR}"/${PN}_build
135 pushd "${WORKDIR}"/${PN}_build > /dev/null 135 pushd "${WORKDIR}"/${PN}_build > /dev/null
136 136
137 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs" 137 debug-print "$LINENO $ECLASS $FUNCNAME: mycmakeargs is $cmakeargs"
138 cmake -C "${TMPDIR}/gentoo_common_config.cmake" ${cmakeargs} "${S}" || die "Cmake failed" 138 cmake -C "${TMPDIR}/gentoo_common_config.cmake" ${cmakeargs} "${S}" || die "Cmake failed"

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20