From 1f50947e7a476852334474bac607897219642f70 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Sat, 3 Sep 2011 08:25:34 +0000 Subject: [PATCH] Mark php-ext-pecl-r1 and php-ext-source-r1 eclasses as dead. Nothing in main tree use them anymore. --- eclass/php-ext-pecl-r1.eclass | 104 +------------------------ eclass/php-ext-source-r1.eclass | 133 +------------------------------- 2 files changed, 8 insertions(+), 229 deletions(-) diff --git a/eclass/php-ext-pecl-r1.eclass b/eclass/php-ext-pecl-r1.eclass index 01f4de2a29d4..8d01572617c4 100644 --- a/eclass/php-ext-pecl-r1.eclass +++ b/eclass/php-ext-pecl-r1.eclass @@ -1,103 +1,7 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.14 2011/08/22 04:46:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-pecl-r1.eclass,v 1.15 2011/09/03 08:25:34 scarabeus Exp $ -# @ECLASS: php-ext-pecl-r1.eclass -# @MAINTAINER: -# Gentoo PHP team -# @AUTHOR: -# Author: Tal Peer -# Author: Luca Longinotti -# Author: Jakub Moc -# @BLURB: A uniform way of installing PECL extensions -# @DESCRIPTION: -# This eclass should be used by all dev-php[45]/pecl-* ebuilds -# as a uniform way of installing PECL extensions. -# For more information about PECL, see http://pecl.php.net/ - -# @ECLASS-VARIABLE: PHP_EXT_PECL_PKG -# @DESCRIPTION: -# Set in ebuild before inheriting this eclass if the tarball name -# differs from ${PN/pecl-/} so that SRC_URI and HOMEPAGE gets set -# correctly by the eclass. -# -# Setting this variable manually also affects PHP_EXT_NAME and ${S} -# unless you override those in ebuild. Also see PHP_EXT_PECL_FILENAME -# if this is not desired for whatever reason. - -# @ECLASS-VARIABLE: PHP_EXT_PECL_FILENAME -# @DESCRIPTION: -# Set in ebuild before inheriting this eclass if the tarball name -# differs from ${PN/pecl-/} so that SRC_URI gets set correctly by -# the eclass. -# -# Unlike PHP_EXT_PECL_PKG, setting this variable does not affect -# HOMEPAGE, PHP_EXT_NAME or ${S}. - - -[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}" - -PECL_PKG="${PHP_EXT_PECL_PKG}" -MY_PV="${PV/_/}" -PECL_PKG_V="${PECL_PKG}-${MY_PV}" - -[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}" - -inherit php-ext-source-r1 depend.php - -EXPORT_FUNCTIONS src_compile src_install src_test - -if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then - FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz" -else - FILENAME="${PECL_PKG_V}.tgz" -fi - -SRC_URI="http://pecl.php.net/get/${FILENAME}" -HOMEPAGE="http://pecl.php.net/${PECL_PKG}" - -S="${WORKDIR}/${PECL_PKG_V}" - -# @FUNCTION: php-ext-pecl-r1_src_compile -# @DESCRIPTION: -# Takes care of standard compile for PECL packages. -php-ext-pecl-r1_src_compile() { - has_php - php-ext-source-r1_src_compile -} - -# @FUNCTION: php-ext-pecl-r1_src_install -# @DESCRIPTION: -# Takes care of standard install for PECL packages. -# You can also simply add examples to IUSE to automagically install -# examples supplied with the package. - -# @VARIABLE: DOCS -# @DESCRIPTION: -# Set in ebuild if you wish to install additional, package-specific documentation. -php-ext-pecl-r1_src_install() { - has_php - php-ext-source-r1_src_install - - for doc in ${DOCS} "${WORKDIR}"/package.xml CREDITS ; do - [[ -s ${doc} ]] && dodoc-php ${doc} - done - - if has examples ${IUSE} && use examples ; then - insinto /usr/share/doc/${CATEGORY}/${PF}/examples - doins -r examples/* - fi -} - -# @FUNCTION: php-ext-pecl-r1_src_test -# @DESCRIPTION: -# Takes care of running any tests delivered with the PECL package. -# Testing is somewhat standardized across pecl extensions through phpize's -# run-tests.php - unfortunatly there are some quirks we need to work around -php-ext-pecl-r1_src_test() { - # Makefile passes a hard-coded -d extension_dir=./modules, we move the lib - # away from there in src_compile - ln -s "${WORKDIR}/${PHP_EXT_NAME}-default.so" "${S}/modules/${PHP_EXT_NAME}.so" - - NO_INTERACTION="yes" emake test || die "emake test failed" -} +# @DEAD +# To be removed on 2011/11/03. +ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass" diff --git a/eclass/php-ext-source-r1.eclass b/eclass/php-ext-source-r1.eclass index 5e82ac912b55..3178d5c72b18 100644 --- a/eclass/php-ext-source-r1.eclass +++ b/eclass/php-ext-source-r1.eclass @@ -1,132 +1,7 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v 1.22 2011/08/22 04:46:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source-r1.eclass,v 1.23 2011/09/03 08:25:34 scarabeus Exp $ -# @ECLASS: php-ext-src-r1.eclass -# @MAINTAINER: -# Gentoo PHP team -# @AUTHOR: -# Author: Tal Peer -# Author: Stuart Herbert -# Author: Luca Longinotti -# Author: Jakub Moc (documentation) -# @BLURB: A unified interface for compiling and installing standalone PHP extensions from source code. -# @DESCRIPTION: -# This eclass provides a unified interface for compiling and installing standalone -# PHP extensions (modules) from source code. - -inherit php-ext-base-r1 flag-o-matic autotools depend.php - -EXPORT_FUNCTIONS src_unpack src_compile src_install - -# @ECLASS-VARIABLE: PHP_EXT_NAME -# @DESCRIPTION: -# The extension name. This must be set, otherwise the eclass dies. -# Only automagically set by php-ext-pecl-r1.eclass, so unless your ebuild -# inherits that eclass, you must set this manually before inherit. -[[ -z "${PHP_EXT_NAME}" ]] && die "No module name specified for the php-ext-source-r1 eclass" - -DEPEND=">=sys-devel/m4-1.4.3 - >=sys-devel/libtool-1.5.18" -RDEPEND="" - - -# @FUNCTION: php-ext-source-r1_src_unpack -# @DESCRIPTION: -# runs standard src_unpack + _phpize - -# @VARIABLE: PHP_EXT_SKIP_PHPIZE -# @DESCRIPTION: -# phpize will be run by default for all ebuilds that use -# php-ext-source-r1_src_unpack -# Set PHP_EXT_SKIP_PHPIZE="yes" in your ebuild if you do not want to run phpize. -php-ext-source-r1_src_unpack() { - unpack ${A} - cd "${S}" - if [[ "${PHP_EXT_SKIP_PHPIZE}" != 'yes' ]] ; then - php-ext-source-r1_phpize - fi -} - -# @FUNCTION: php-ext-source-r1_phpize -# @DESCRIPTION: -# Runs phpize and autotools in addition to the standard src_unpack -php-ext-source-r1_phpize() { - has_php - # Create configure out of config.m4 - # need to convert WANT_AUTO*=latest to an actual version (bug #329071) - autotools_run_tool phpize - # force run of libtoolize and regeneration of related autotools - # files (bug 220519) - rm aclocal.m4 - eautoreconf -} - -# @FUNCTION: php-ext-source-r1_src_compile -# @DESCRIPTION: -# Takes care of standard compile for PHP extensions (modules). - -# @VARIABLE: my_conf -# @DESCRIPTION: -# Set this in the ebuild to pass configure options to econf. -php-ext-source-r1_src_compile() { - # Pull in the PHP settings - has_php - addpredict /usr/share/snmp/mibs/.index - addpredict /session_mm_cli0.sem - - # Set the correct config options - my_conf="--prefix=${PHPPREFIX} --with-php-config=${PHPCONFIG} ${my_conf}" - - # Concurrent PHP Apache2 modules support - if has_concurrentmodphp ; then - append-ldflags "-Wl,--version-script=${ROOT}/var/lib/php-pkg/${PHP_PKG}/php${PHP_VERSION}-ldvs" - fi - - # First compile run: the default one - econf ${my_conf} || die "Unable to configure code to compile" - emake || die "Unable to make code" - mv -f "modules/${PHP_EXT_NAME}.so" "${WORKDIR}/${PHP_EXT_NAME}-default.so" || die "Unable to move extension" - - # Concurrent PHP Apache2 modules support - if has_concurrentmodphp ; then - # First let's clean up - make distclean || die "Unable to clean build environment" - - # Second compile run: the versioned one - econf ${my_conf} || die "Unable to configure versioned code to compile" - 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 - append-ldflags "-Wl,--allow-shlib-undefined -L/usr/$(get_libdir)/apache2/modules/ -lphp${PHP_VERSION}" - emake || die "Unable to make versioned code" - mv -f "modules/${PHP_EXT_NAME}.so" "${WORKDIR}/${PHP_EXT_NAME}-versioned.so" || die "Unable to move versioned extension" - fi -} - -# @FUNCTION: php-ext-source-r1_src_install -# @DESCRIPTION: -# Takes care of standard install for PHP extensions (modules). - -# @VARIABLE: DOCS -# @DESCRIPTION: -# Set in ebuild if you wish to install additional, package-specific documentation. -php-ext-source-r1_src_install() { - # Pull in the PHP settings - has_php - addpredict /usr/share/snmp/mibs/.index - - # Let's put the default module away - insinto "${EXT_DIR}" - newins "${WORKDIR}/${PHP_EXT_NAME}-default.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension" - - # And now the versioned one, if it exists - if has_concurrentmodphp ; then - insinto "${EXT_DIR}-versioned" - newins "${WORKDIR}/${PHP_EXT_NAME}-versioned.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension" - fi - - for doc in ${DOCS} ; do - [[ -s ${doc} ]] && dodoc-php ${doc} - done - - php-ext-base-r1_src_install -} +# @DEAD +# To be removed on 2011/11/03. +ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass" -- 2.26.2