Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: php-ext-pecl-r1.eclass php-ext-source-r1.eclass
Date: Sat, 03 Sep 2011 08:25:46
Message-Id: 20110903082534.46B4720051@flycatcher.gentoo.org
1 scarabeus 11/09/03 08:25:34
2
3 Modified: php-ext-pecl-r1.eclass php-ext-source-r1.eclass
4 Log:
5 Mark php-ext-pecl-r1 and php-ext-source-r1 eclasses as dead. Nothing in main tree use them anymore.
6
7 Revision Changes Path
8 1.15 eclass/php-ext-pecl-r1.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-pecl-r1.eclass?rev=1.15&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-pecl-r1.eclass?rev=1.15&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-pecl-r1.eclass?r1=1.14&r2=1.15
13
14 Index: php-ext-pecl-r1.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v
17 retrieving revision 1.14
18 retrieving revision 1.15
19 diff -u -r1.14 -r1.15
20 --- php-ext-pecl-r1.eclass 22 Aug 2011 04:46:32 -0000 1.14
21 +++ php-ext-pecl-r1.eclass 3 Sep 2011 08:25:34 -0000 1.15
22 @@ -1,103 +1,7 @@
23 # Copyright 1999-2011 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.14 2011/08/22 04:46:32 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.15 2011/09/03 08:25:34 scarabeus Exp $
27
28 -# @ECLASS: php-ext-pecl-r1.eclass
29 -# @MAINTAINER:
30 -# Gentoo PHP team <php-bugs@g.o>
31 -# @AUTHOR:
32 -# Author: Tal Peer <coredumb@g.o>
33 -# Author: Luca Longinotti <chtekk@g.o>
34 -# Author: Jakub Moc <jakub@g.o>
35 -# @BLURB: A uniform way of installing PECL extensions
36 -# @DESCRIPTION:
37 -# This eclass should be used by all dev-php[45]/pecl-* ebuilds
38 -# as a uniform way of installing PECL extensions.
39 -# For more information about PECL, see http://pecl.php.net/
40 -
41 -# @ECLASS-VARIABLE: PHP_EXT_PECL_PKG
42 -# @DESCRIPTION:
43 -# Set in ebuild before inheriting this eclass if the tarball name
44 -# differs from ${PN/pecl-/} so that SRC_URI and HOMEPAGE gets set
45 -# correctly by the eclass.
46 -#
47 -# Setting this variable manually also affects PHP_EXT_NAME and ${S}
48 -# unless you override those in ebuild. Also see PHP_EXT_PECL_FILENAME
49 -# if this is not desired for whatever reason.
50 -
51 -# @ECLASS-VARIABLE: PHP_EXT_PECL_FILENAME
52 -# @DESCRIPTION:
53 -# Set in ebuild before inheriting this eclass if the tarball name
54 -# differs from ${PN/pecl-/} so that SRC_URI gets set correctly by
55 -# the eclass.
56 -#
57 -# Unlike PHP_EXT_PECL_PKG, setting this variable does not affect
58 -# HOMEPAGE, PHP_EXT_NAME or ${S}.
59 -
60 -
61 -[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
62 -
63 -PECL_PKG="${PHP_EXT_PECL_PKG}"
64 -MY_PV="${PV/_/}"
65 -PECL_PKG_V="${PECL_PKG}-${MY_PV}"
66 -
67 -[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}"
68 -
69 -inherit php-ext-source-r1 depend.php
70 -
71 -EXPORT_FUNCTIONS src_compile src_install src_test
72 -
73 -if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then
74 - FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz"
75 -else
76 - FILENAME="${PECL_PKG_V}.tgz"
77 -fi
78 -
79 -SRC_URI="http://pecl.php.net/get/${FILENAME}"
80 -HOMEPAGE="http://pecl.php.net/${PECL_PKG}"
81 -
82 -S="${WORKDIR}/${PECL_PKG_V}"
83 -
84 -# @FUNCTION: php-ext-pecl-r1_src_compile
85 -# @DESCRIPTION:
86 -# Takes care of standard compile for PECL packages.
87 -php-ext-pecl-r1_src_compile() {
88 - has_php
89 - php-ext-source-r1_src_compile
90 -}
91 -
92 -# @FUNCTION: php-ext-pecl-r1_src_install
93 -# @DESCRIPTION:
94 -# Takes care of standard install for PECL packages.
95 -# You can also simply add examples to IUSE to automagically install
96 -# examples supplied with the package.
97 -
98 -# @VARIABLE: DOCS
99 -# @DESCRIPTION:
100 -# Set in ebuild if you wish to install additional, package-specific documentation.
101 -php-ext-pecl-r1_src_install() {
102 - has_php
103 - php-ext-source-r1_src_install
104 -
105 - for doc in ${DOCS} "${WORKDIR}"/package.xml CREDITS ; do
106 - [[ -s ${doc} ]] && dodoc-php ${doc}
107 - done
108 -
109 - if has examples ${IUSE} && use examples ; then
110 - insinto /usr/share/doc/${CATEGORY}/${PF}/examples
111 - doins -r examples/*
112 - fi
113 -}
114 -
115 -# @FUNCTION: php-ext-pecl-r1_src_test
116 -# @DESCRIPTION:
117 -# Takes care of running any tests delivered with the PECL package.
118 -# Testing is somewhat standardized across pecl extensions through phpize's
119 -# run-tests.php - unfortunatly there are some quirks we need to work around
120 -php-ext-pecl-r1_src_test() {
121 - # Makefile passes a hard-coded -d extension_dir=./modules, we move the lib
122 - # away from there in src_compile
123 - ln -s "${WORKDIR}/${PHP_EXT_NAME}-default.so" "${S}/modules/${PHP_EXT_NAME}.so"
124 -
125 - NO_INTERACTION="yes" emake test || die "emake test failed"
126 -}
127 +# @DEAD
128 +# To be removed on 2011/11/03.
129 +ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"
130
131
132
133 1.23 eclass/php-ext-source-r1.eclass
134
135 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r1.eclass?rev=1.23&view=markup
136 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r1.eclass?rev=1.23&content-type=text/plain
137 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/php-ext-source-r1.eclass?r1=1.22&r2=1.23
138
139 Index: php-ext-source-r1.eclass
140 ===================================================================
141 RCS file: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v
142 retrieving revision 1.22
143 retrieving revision 1.23
144 diff -u -r1.22 -r1.23
145 --- php-ext-source-r1.eclass 22 Aug 2011 04:46:32 -0000 1.22
146 +++ php-ext-source-r1.eclass 3 Sep 2011 08:25:34 -0000 1.23
147 @@ -1,132 +1,7 @@
148 # Copyright 1999-2011 Gentoo Foundation
149 # Distributed under the terms of the GNU General Public License v2
150 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v 1.22 2011/08/22 04:46:32 vapier Exp $
151 +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v 1.23 2011/09/03 08:25:34 scarabeus Exp $
152
153 -# @ECLASS: php-ext-src-r1.eclass
154 -# @MAINTAINER:
155 -# Gentoo PHP team <php-bugs@g.o>
156 -# @AUTHOR:
157 -# Author: Tal Peer <coredumb@g.o>
158 -# Author: Stuart Herbert <stuart@g.o>
159 -# Author: Luca Longinotti <chtekk@g.o>
160 -# Author: Jakub Moc <jakub@g.o> (documentation)
161 -# @BLURB: A unified interface for compiling and installing standalone PHP extensions from source code.
162 -# @DESCRIPTION:
163 -# This eclass provides a unified interface for compiling and installing standalone
164 -# PHP extensions (modules) from source code.
165 -
166 -inherit php-ext-base-r1 flag-o-matic autotools depend.php
167 -
168 -EXPORT_FUNCTIONS src_unpack src_compile src_install
169 -
170 -# @ECLASS-VARIABLE: PHP_EXT_NAME
171 -# @DESCRIPTION:
172 -# The extension name. This must be set, otherwise the eclass dies.
173 -# Only automagically set by php-ext-pecl-r1.eclass, so unless your ebuild
174 -# inherits that eclass, you must set this manually before inherit.
175 -[[ -z "${PHP_EXT_NAME}" ]] && die "No module name specified for the php-ext-source-r1 eclass"
176 -
177 -DEPEND=">=sys-devel/m4-1.4.3
178 - >=sys-devel/libtool-1.5.18"
179 -RDEPEND=""
180 -
181 -
182 -# @FUNCTION: php-ext-source-r1_src_unpack
183 -# @DESCRIPTION:
184 -# runs standard src_unpack + _phpize
185 -
186 -# @VARIABLE: PHP_EXT_SKIP_PHPIZE
187 -# @DESCRIPTION:
188 -# phpize will be run by default for all ebuilds that use
189 -# php-ext-source-r1_src_unpack
190 -# Set PHP_EXT_SKIP_PHPIZE="yes" in your ebuild if you do not want to run phpize.
191 -php-ext-source-r1_src_unpack() {
192 - unpack ${A}
193 - cd "${S}"
194 - if [[ "${PHP_EXT_SKIP_PHPIZE}" != 'yes' ]] ; then
195 - php-ext-source-r1_phpize
196 - fi
197 -}
198 -
199 -# @FUNCTION: php-ext-source-r1_phpize
200 -# @DESCRIPTION:
201 -# Runs phpize and autotools in addition to the standard src_unpack
202 -php-ext-source-r1_phpize() {
203 - has_php
204 - # Create configure out of config.m4
205 - # need to convert WANT_AUTO*=latest to an actual version (bug #329071)
206 - autotools_run_tool phpize
207 - # force run of libtoolize and regeneration of related autotools
208 - # files (bug 220519)
209 - rm aclocal.m4
210 - eautoreconf
211 -}
212 -
213 -# @FUNCTION: php-ext-source-r1_src_compile
214 -# @DESCRIPTION:
215 -# Takes care of standard compile for PHP extensions (modules).
216 -
217 -# @VARIABLE: my_conf
218 -# @DESCRIPTION:
219 -# Set this in the ebuild to pass configure options to econf.
220 -php-ext-source-r1_src_compile() {
221 - # Pull in the PHP settings
222 - has_php
223 - addpredict /usr/share/snmp/mibs/.index
224 - addpredict /session_mm_cli0.sem
225 -
226 - # Set the correct config options
227 - my_conf="--prefix=${PHPPREFIX} --with-php-config=${PHPCONFIG} ${my_conf}"
228 -
229 - # Concurrent PHP Apache2 modules support
230 - if has_concurrentmodphp ; then
231 - append-ldflags "-Wl,--version-script=${ROOT}/var/lib/php-pkg/${PHP_PKG}/php${PHP_VERSION}-ldvs"
232 - fi
233 -
234 - # First compile run: the default one
235 - econf ${my_conf} || die "Unable to configure code to compile"
236 - emake || die "Unable to make code"
237 - mv -f "modules/${PHP_EXT_NAME}.so" "${WORKDIR}/${PHP_EXT_NAME}-default.so" || die "Unable to move extension"
238 -
239 - # Concurrent PHP Apache2 modules support
240 - if has_concurrentmodphp ; then
241 - # First let's clean up
242 - make distclean || die "Unable to clean build environment"
243 -
244 - # Second compile run: the versioned one
245 - econf ${my_conf} || die "Unable to configure versioned code to compile"
246 - sed -e "s|-Wl,--version-script=${ROOT}/var/lib/php-pkg/${PHP_PKG}/php${PHP_VERSION}-ldvs|-Wl,--version-script=${ROOT}/var/lib/php-pkg/${PHP_PKG}/php${PHP_VERSION}-ldvs -Wl,--allow-shlib-undefined -L/usr/$(get_libdir)/apache2/modules/ -lphp${PHP_VERSION}|g" -i Makefile
247 - append-ldflags "-Wl,--allow-shlib-undefined -L/usr/$(get_libdir)/apache2/modules/ -lphp${PHP_VERSION}"
248 - emake || die "Unable to make versioned code"
249 - mv -f "modules/${PHP_EXT_NAME}.so" "${WORKDIR}/${PHP_EXT_NAME}-versioned.so" || die "Unable to move versioned extension"
250 - fi
251 -}
252 -
253 -# @FUNCTION: php-ext-source-r1_src_install
254 -# @DESCRIPTION:
255 -# Takes care of standard install for PHP extensions (modules).
256 -
257 -# @VARIABLE: DOCS
258 -# @DESCRIPTION:
259 -# Set in ebuild if you wish to install additional, package-specific documentation.
260 -php-ext-source-r1_src_install() {
261 - # Pull in the PHP settings
262 - has_php
263 - addpredict /usr/share/snmp/mibs/.index
264 -
265 - # Let's put the default module away
266 - insinto "${EXT_DIR}"
267 - newins "${WORKDIR}/${PHP_EXT_NAME}-default.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension"
268 -
269 - # And now the versioned one, if it exists
270 - if has_concurrentmodphp ; then
271 - insinto "${EXT_DIR}-versioned"
272 - newins "${WORKDIR}/${PHP_EXT_NAME}-versioned.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension"
273 - fi
274 -
275 - for doc in ${DOCS} ; do
276 - [[ -s ${doc} ]] && dodoc-php ${doc}
277 - done
278 -
279 - php-ext-base-r1_src_install
280 -}
281 +# @DEAD
282 +# To be removed on 2011/11/03.
283 +ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass"