summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-12-30 08:33:20 -0500
committerMichael Orlitzky <mjo@gentoo.org>2017-12-30 09:00:19 -0500
commita70b3dac6e02ec1c6dcb3c59d2e1749a534f2141 (patch)
treee2e69d3df5490a29b4d3bf056841888fd0da7175 /eclass
parentsys-kernel/gentoo-sources: genpatches-4.14-13 (diff)
downloadgentoo-a70b3dac6e02ec1c6dcb3c59d2e1749a534f2141.tar.gz
gentoo-a70b3dac6e02ec1c6dcb3c59d2e1749a534f2141.tar.bz2
gentoo-a70b3dac6e02ec1c6dcb3c59d2e1749a534f2141.zip
php-ext-pecl-r2.eclass: drop unused and last-rited eclass.
The php-ext-pecl-r2.eclass has no more in-tree consumers, and it was last-rited on 2017-10-19. This commit removes it. Closes: https://bugs.gentoo.org/642708
Diffstat (limited to 'eclass')
-rw-r--r--eclass/php-ext-pecl-r2.eclass105
1 files changed, 0 insertions, 105 deletions
diff --git a/eclass/php-ext-pecl-r2.eclass b/eclass/php-ext-pecl-r2.eclass
deleted file mode 100644
index 5fd3658e0f63..000000000000
--- a/eclass/php-ext-pecl-r2.eclass
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# @DEAD
-# @ECLASS: php-ext-pecl-r2.eclass
-# @MAINTAINER:
-# Gentoo PHP team <php-bugs@gentoo.org>
-# @AUTHOR:
-# Author: Tal Peer <coredumb@gentoo.org>
-# Author: Luca Longinotti <chtekk@gentoo.org>
-# Author: Jakub Moc <jakub@gentoo.org>
-# @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}.
-
-die "Please upgrade to php-ext-pecl-r3 (see https://wiki.gentoo.org/wiki/Project:PHP/Php-ext-source-r3_migration_guide). This eclass is due to be removed."
-
-[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
-
-
-[[ -z ${MY_PV} ]] && MY_PV=${PV}
-
-PECL_PKG="${PHP_EXT_PECL_PKG}"
-MY_PV="${MY_PV/_/}"
-PECL_PKG_V="${PECL_PKG}-${MY_PV}"
-
-[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}"
-
-S="${WORKDIR}/${PECL_PKG_V}"
-
-inherit php-ext-source-r2
-
-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}"
-
-# @FUNCTION: php-ext-pecl-r2_src_compile
-# @DESCRIPTION:
-# Takes care of standard compile for PECL packages.
-php-ext-pecl-r2_src_compile() {
- php-ext-source-r2_src_compile
-}
-
-# @FUNCTION: php-ext-pecl-r2_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-r2_src_install() {
- php-ext-source-r2_src_install
-
- for doc in ${DOCS} "${WORKDIR}"/package.xml CREDITS ; do
- [[ -s ${doc} ]] && dodoc ${doc}
- done
-
- if has examples ${IUSE} && use examples ; then
- insinto /usr/share/doc/${CATEGORY}/${PF}/examples
- doins -r examples/*
- fi
-}
-
-
-# @FUNCTION: php-ext-pecl-r2_src_test
-# @DESCRIPTION:
-# Takes care of running any tests delivered with the PECL package.
-# Standard phpize generates a run-tests.php file that is executed in make test
-# We only need to force it to non-interactive mode
-php-ext-pecl-r2_src_test() {
- for slot in `php_get_slots`; do
- php_init_slot_env ${slot}
- NO_INTERACTION="yes" emake test || die "emake test failed for slot ${slot}"
- done
-}