/[gentoo-x86]/eclass/php-ext-source-r2.eclass
Gentoo

Diff of /eclass/php-ext-source-r2.eclass

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

Revision 1.34 Revision 1.35
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 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/php-ext-source-r2.eclass,v 1.34 2015/03/26 16:15:33 grknight Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.35 2015/05/04 18:59:30 grknight Exp $
4 4
5# @ECLASS: php-ext-source-r2.eclass 5# @ECLASS: php-ext-source-r2.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:
30 *) 30 *)
31 die "php-ext-source-r2 is not compatible with EAPI=${EAPI}" 31 die "php-ext-source-r2 is not compatible with EAPI=${EAPI}"
32esac 32esac
33 33
34# @ECLASS-VARIABLE: PHP_EXT_NAME 34# @ECLASS-VARIABLE: PHP_EXT_NAME
35# @REQUIRED
35# @DESCRIPTION: 36# @DESCRIPTION:
36# The extension name. This must be set, otherwise the eclass dies. 37# The extension name. This must be set, otherwise the eclass dies.
37# Only automagically set by php-ext-pecl-r2.eclass, so unless your ebuild 38# Only automagically set by php-ext-pecl-r2.eclass, so unless your ebuild
38# inherits that eclass, you must set this manually before inherit. 39# inherits that eclass, you must set this manually before inherit.
39[[ -z "${PHP_EXT_NAME}" ]] && die "No module name specified for the php-ext-source-r2 eclass" 40[[ -z "${PHP_EXT_NAME}" ]] && die "No module name specified for the php-ext-source-r2 eclass"
49# Controls whether the extension is a ZendEngine extension or not. 50# Controls whether the extension is a ZendEngine extension or not.
50# Defaults to "no" and if you don't know what is it, you don't need it. 51# Defaults to "no" and if you don't know what is it, you don't need it.
51[[ -z "${PHP_EXT_ZENDEXT}" ]] && PHP_EXT_ZENDEXT="no" 52[[ -z "${PHP_EXT_ZENDEXT}" ]] && PHP_EXT_ZENDEXT="no"
52 53
53# @ECLASS-VARIABLE: USE_PHP 54# @ECLASS-VARIABLE: USE_PHP
55# @REQUIRED
54# @DESCRIPTION: 56# @DESCRIPTION:
55# Lists the PHP slots compatibile the extension is compatibile with 57# Lists the PHP slots compatibile the extension is compatibile with
56[[ -z "${USE_PHP}" ]] && USE_PHP="php5-3" \ 58# Example:
57 && eqawarn "An empty USE_PHP is deprecated and support will be removed on 2015-05-01" 59# @CODE
60# USE_PHP="php5-5 php5-6"
61# @CODE
62[[ -z "${USE_PHP}" ]] && die "USE_PHP is not set for the php-ext-source-r2 eclass"
58 63
59# @ECLASS-VARIABLE: PHP_EXT_OPTIONAL_USE 64# @ECLASS-VARIABLE: PHP_EXT_OPTIONAL_USE
60# @DESCRIPTION: 65# @DESCRIPTION:
61# If set, this is the USE flag that the PHP dependencies are behind 66# If set, this is the USE flag that the PHP dependencies are behind
62# Most commonly set as PHP_EXT_OPTIONAL_USE=php to get the dependencies behind 67# Most commonly set as PHP_EXT_OPTIONAL_USE=php to get the dependencies behind

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20