/[gentoo-x86]/eclass/depend.php.eclass
Gentoo

Diff of /eclass/depend.php.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.15 Revision 1.16
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/depend.php.eclass,v 1.15 2006/05/13 15:39:11 chtekk Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.16 2006/08/07 07:10:16 chtekk Exp $
4# 4#
5# ======================================================================== 5# ========================================================================
6# 6#
7# depend.php.eclass 7# depend.php.eclass
8# functions to allow ebuilds to depend on php4 and/or php5 8# functions to allow ebuilds to depend on php4 and/or php5
519 519
520 local PUSE_ENABLED="" 520 local PUSE_ENABLED=""
521 521
522 # Binary extensions do not support the change of PHP 522 # Binary extensions do not support the change of PHP
523 # API version, so they can't be installed when USE flags 523 # API version, so they can't be installed when USE flags
524 # are enabled wich change the PHP API version 524 # are enabled which change the PHP API version, they also
525 # don't provide correctly versioned symbols for our use
525 526
526 if built_with_use =${PHP_PKG} hardenedphp || phpconfutils_built_with_use =${PHP_PKG} hardenedphp ; then 527 if built_with_use =${PHP_PKG} hardenedphp || phpconfutils_built_with_use =${PHP_PKG} hardenedphp ; then
527 eerror 528 eerror
528 eerror "You cannot install binary PHP extensions" 529 eerror "You cannot install binary PHP extensions"
529 eerror "when the 'hardenedphp' USE flag is enabled!" 530 eerror "when the 'hardenedphp' USE flag is enabled!"
541 eerror "'debug' USE flag turned off." 542 eerror "'debug' USE flag turned off."
542 eerror 543 eerror
543 PUSE_ENABLED="1" 544 PUSE_ENABLED="1"
544 fi 545 fi
545 546
547 if built_with_use =${PHP_PKG} concurrentmodphp || phpconfutils_built_with_use =${PHP_PKG} concurrentmodphp ; then
548 eerror
549 eerror "You cannot install binary PHP extensions when"
550 eerror "the 'concurrentmodphp' USE flag is enabled!"
551 eerror "Please reemerge dev-lang/php with the"
552 eerror "'concurrentmodphp' USE flag turned off."
553 eerror
554 PUSE_ENABLED="1"
555 fi
556
546 if [[ -n ${PUSE_ENABLED} ]] ; then 557 if [[ -n ${PUSE_ENABLED} ]] ; then
547 die "'hardenedphp' and/or 'debug' USE flags turned on" 558 die "'hardenedphp' and/or 'debug' and/or 'concurrentmodphp' USE flags turned on!"
548 fi 559 fi
549} 560}
550 561
551# Alternative to dodoc function for use in our PHP eclasses and 562# Alternative to dodoc function for use in our PHP eclasses and
552# ebuilds. 563# ebuilds.

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

  ViewVC Help
Powered by ViewVC 1.1.20