| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 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.32 2009/10/27 14:16:49 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.33 2009/10/27 14:30:35 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 | # |
8 | # |
| … | |
… | |
| 396 | # @FUNCTION: cmake-utils_src_configure |
396 | # @FUNCTION: cmake-utils_src_configure |
| 397 | # @DESCRIPTION: |
397 | # @DESCRIPTION: |
| 398 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
398 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
| 399 | # unconditionaly or only when some useflag is enabled. |
399 | # unconditionaly or only when some useflag is enabled. |
| 400 | cmake-utils_src_configure() { |
400 | cmake-utils_src_configure() { |
| 401 | _inherit_optionaly "src_configure" |
401 | _execute_optionaly "src_configure" |
| 402 | } |
402 | } |
| 403 | |
403 | |
| 404 | # @FUNCTION: cmake-utils_src_compile |
404 | # @FUNCTION: cmake-utils_src_compile |
| 405 | # @DESCRIPTION: |
405 | # @DESCRIPTION: |
| 406 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
406 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
| 407 | # unconditionaly or only when some useflag is enabled. |
407 | # unconditionaly or only when some useflag is enabled. |
| 408 | cmake-utils_src_compile() { |
408 | cmake-utils_src_compile() { |
| 409 | _inherit_optionaly "src_compile" |
409 | _execute_optionaly "src_compile" |
| 410 | } |
410 | } |
| 411 | |
411 | |
| 412 | # @FUNCTION: cmake-utils_src_install |
412 | # @FUNCTION: cmake-utils_src_install |
| 413 | # @DESCRIPTION: |
413 | # @DESCRIPTION: |
| 414 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
414 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
| 415 | # unconditionaly or only when some useflag is enabled. |
415 | # unconditionaly or only when some useflag is enabled. |
| 416 | cmake-utils_src_install() { |
416 | cmake-utils_src_install() { |
| 417 | _inherit_optionaly "src_install" |
417 | _execute_optionaly "src_install" |
| 418 | } |
418 | } |
| 419 | |
419 | |
| 420 | # @FUNCTION: cmake-utils_src_test |
420 | # @FUNCTION: cmake-utils_src_test |
| 421 | # @DESCRIPTION: |
421 | # @DESCRIPTION: |
| 422 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
422 | # Wrapper for detection if we want to run enable_ prefixed function with same name |
| 423 | # unconditionaly or only when some useflag is enabled. |
423 | # unconditionaly or only when some useflag is enabled. |
| 424 | cmake-utils_src_test() { |
424 | cmake-utils_src_test() { |
| 425 | _inherit_optionaly "src_test" |
425 | _execute_optionaly "src_test" |
| 426 | } |
426 | } |
| 427 | |
427 | |
| 428 | |
428 | |
| 429 | _execute_optionaly() { |
429 | _execute_optionaly() { |
| 430 | local phase="$1" |
430 | local phase="$1" |