/[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.30 Revision 1.32
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.30 2011/08/22 04:46:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.32 2012/06/02 19:16:31 zmedico Exp $
4 4
5# @ECLASS: depend.php.eclass 5# @ECLASS: depend.php.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo PHP team <php-bugs@gentoo.org> 7# Gentoo PHP team <php-bugs@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
13# @DESCRIPTION: 13# @DESCRIPTION:
14# This eclass provides functions that allow ebuilds to depend on php5 and check 14# This eclass provides functions that allow ebuilds to depend on php5 and check
15# for specific PHP features, SAPIs etc. Also provides dodoc-php wrapper to install 15# for specific PHP features, SAPIs etc. Also provides dodoc-php wrapper to install
16# documentation for PHP packages to php-specific location. 16# documentation for PHP packages to php-specific location.
17 17
18inherit eutils phpconfutils 18inherit eutils multilib phpconfutils
19 19
20# PHP5-only depend functions 20# PHP5-only depend functions
21 21
22# @FUNCTION: need_php5_cli 22# @FUNCTION: need_php5_cli
23# @DESCRIPTION: 23# @DESCRIPTION:
104# determined by ${CATEGORY} - any PHP version or PHP5 for dev-php or 104# determined by ${CATEGORY} - any PHP version or PHP5 for dev-php or
105# dev-php5, respectively. 105# dev-php5, respectively.
106need_php_by_category() { 106need_php_by_category() {
107 case "${CATEGORY}" in 107 case "${CATEGORY}" in
108 dev-php) need_php ;; 108 dev-php) need_php ;;
109 dev-php5) need_php5 ;;
110 *) die "Version of PHP required by packages in category ${CATEGORY} unknown" 109 *) die "Version of PHP required by packages in category ${CATEGORY} unknown"
111 esac 110 esac
112} 111}
113 112
114 113

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20