/[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.35 Revision 1.36
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.35 2015/05/04 18:59:30 grknight Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r2.eclass,v 1.36 2015/05/04 20:02:26 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:
100 100
101# @FUNCTION: php-ext-source-r2_src_unpack 101# @FUNCTION: php-ext-source-r2_src_unpack
102# @DESCRIPTION: 102# @DESCRIPTION:
103# runs standard src_unpack + _phpize 103# runs standard src_unpack + _phpize
104 104
105# @VARIABLE: PHP_EXT_SKIP_PHPIZE 105# @ECLASS-VARIABLE: PHP_EXT_SKIP_PHPIZE
106# @DESCRIPTION: 106# @DESCRIPTION:
107# phpize will be run by default for all ebuilds that use 107# phpize will be run by default for all ebuilds that use
108# php-ext-source-r2_src_unpack 108# php-ext-source-r2_src_unpack
109# Set PHP_EXT_SKIP_PHPIZE="yes" in your ebuild if you do not want to run phpize. 109# Set PHP_EXT_SKIP_PHPIZE="yes" in your ebuild if you do not want to run phpize.
110
110php-ext-source-r2_src_unpack() { 111php-ext-source-r2_src_unpack() {
111 unpack ${A} 112 unpack ${A}
112 local slot orig_s="${PHP_EXT_S}" 113 local slot orig_s="${PHP_EXT_S}"
113 for slot in $(php_get_slots); do 114 for slot in $(php_get_slots); do
114 cp -r "${orig_s}" "${WORKDIR}/${slot}" || die "Failed to copy source ${orig_s} to PHP target directory" 115 cp -r "${orig_s}" "${WORKDIR}/${slot}" || die "Failed to copy source ${orig_s} to PHP target directory"
141 142
142# @FUNCTION: php-ext-source-r2_src_configure 143# @FUNCTION: php-ext-source-r2_src_configure
143# @DESCRIPTION: 144# @DESCRIPTION:
144# Takes care of standard configure for PHP extensions (modules). 145# Takes care of standard configure for PHP extensions (modules).
145 146
146# @VARIABLE: my_conf 147# @ECLASS-VARIABLE: my_conf
147# @DESCRIPTION: 148# @DESCRIPTION:
148# Set this in the ebuild to pass configure options to econf. 149# Set this in the ebuild to pass configure options to econf.
150
149php-ext-source-r2_src_configure() { 151php-ext-source-r2_src_configure() {
150 # net-snmp creates this file #385403 152 # net-snmp creates this file #385403
151 addpredict /usr/share/snmp/mibs/.index 153 addpredict /usr/share/snmp/mibs/.index
152 addpredict /var/lib/net-snmp/mib_indexes 154 addpredict /var/lib/net-snmp/mib_indexes
153 155
179 181
180# @FUNCTION: php-ext-source-r2_src_install 182# @FUNCTION: php-ext-source-r2_src_install
181# @DESCRIPTION: 183# @DESCRIPTION:
182# Takes care of standard install for PHP extensions (modules). 184# Takes care of standard install for PHP extensions (modules).
183 185
184# @VARIABLE: DOCS 186# @ECLASS-VARIABLE: DOCS
185# @DESCRIPTION: 187# @DESCRIPTION:
186# Set in ebuild if you wish to install additional, package-specific documentation. 188# Set in ebuild if you wish to install additional, package-specific documentation.
187php-ext-source-r2_src_install() { 189php-ext-source-r2_src_install() {
188 local slot 190 local slot
189 for slot in $(php_get_slots); do 191 for slot in $(php_get_slots); do

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

  ViewVC Help
Powered by ViewVC 1.1.20