/[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.94 Revision 1.95
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.94 2013/04/07 17:21:11 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.95 2013/06/13 21:16:53 creffett 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# @AUTHOR: 8# @AUTHOR:
63inherit toolchain-funcs multilib flag-o-matic base 63inherit toolchain-funcs multilib flag-o-matic base
64 64
65CMAKE_EXPF="src_compile src_test src_install" 65CMAKE_EXPF="src_compile src_test src_install"
66case ${EAPI:-0} in 66case ${EAPI:-0} in
67 2|3|4|5) CMAKE_EXPF+=" src_prepare src_configure" ;; 67 2|3|4|5) CMAKE_EXPF+=" src_prepare src_configure" ;;
68 1|0) ;; 68 1|0) ewarn "EAPI 0 and 1 support is now deprecated."
69 ewarn "If you are the package maintainer, please"
70 ewarn "update this package to a newer EAPI."
71 ewarn "Support for EAPI 0-1 will be dropped at the beginning of July."
72 ;;
73
69 *) die "Unknown EAPI, Bug eclass maintainers." ;; 74 *) die "Unknown EAPI, Bug eclass maintainers." ;;
70esac 75esac
71EXPORT_FUNCTIONS ${CMAKE_EXPF} 76EXPORT_FUNCTIONS ${CMAKE_EXPF}
72 77
73case ${CMAKE_MAKEFILE_GENERATOR} in 78case ${CMAKE_MAKEFILE_GENERATOR} in
356enable_cmake-utils_src_prepare() { 361enable_cmake-utils_src_prepare() {
357 debug-print-function ${FUNCNAME} "$@" 362 debug-print-function ${FUNCNAME} "$@"
358 363
359 base_src_prepare 364 base_src_prepare
360} 365}
366
367# @VARIABLE: mycmakeargs
368# @DEFAULT_UNSET
369# @DESCRIPTION:
370# Optional cmake defines as a bash array. Should be defined before calling
371# src_configure.
372# @CODE
373# src_configure() {
374# local mycmakeargs=(
375# $(cmake-utils_use_with openconnect)
376# )
377# cmake-utils_src_configure
378# }
379
361 380
362enable_cmake-utils_src_configure() { 381enable_cmake-utils_src_configure() {
363 debug-print-function ${FUNCNAME} "$@" 382 debug-print-function ${FUNCNAME} "$@"
364 383
365 [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && { 384 [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && {

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95

  ViewVC Help
Powered by ViewVC 1.1.20