1 |
commit: a70b3dac6e02ec1c6dcb3c59d2e1749a534f2141 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 30 13:33:20 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 30 14:00:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a70b3dac |
7 |
|
8 |
php-ext-pecl-r2.eclass: drop unused and last-rited eclass. |
9 |
|
10 |
The php-ext-pecl-r2.eclass has no more in-tree consumers, and it was |
11 |
last-rited on 2017-10-19. This commit removes it. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/642708 |
14 |
|
15 |
eclass/php-ext-pecl-r2.eclass | 105 ------------------------------------------ |
16 |
1 file changed, 105 deletions(-) |
17 |
|
18 |
diff --git a/eclass/php-ext-pecl-r2.eclass b/eclass/php-ext-pecl-r2.eclass |
19 |
deleted file mode 100644 |
20 |
index 5fd3658e0f6..00000000000 |
21 |
--- a/eclass/php-ext-pecl-r2.eclass |
22 |
+++ /dev/null |
23 |
@@ -1,105 +0,0 @@ |
24 |
-# Copyright 1999-2017 Gentoo Foundation |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-# @DEAD |
28 |
-# @ECLASS: php-ext-pecl-r2.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 |
-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." |
61 |
- |
62 |
-[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}" |
63 |
- |
64 |
- |
65 |
-[[ -z ${MY_PV} ]] && MY_PV=${PV} |
66 |
- |
67 |
-PECL_PKG="${PHP_EXT_PECL_PKG}" |
68 |
-MY_PV="${MY_PV/_/}" |
69 |
-PECL_PKG_V="${PECL_PKG}-${MY_PV}" |
70 |
- |
71 |
-[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}" |
72 |
- |
73 |
-S="${WORKDIR}/${PECL_PKG_V}" |
74 |
- |
75 |
-inherit php-ext-source-r2 |
76 |
- |
77 |
-EXPORT_FUNCTIONS src_compile src_install src_test |
78 |
- |
79 |
-if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then |
80 |
- FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz" |
81 |
-else |
82 |
- FILENAME="${PECL_PKG_V}.tgz" |
83 |
-fi |
84 |
- |
85 |
-SRC_URI="http://pecl.php.net/get/${FILENAME}" |
86 |
-HOMEPAGE="http://pecl.php.net/${PECL_PKG}" |
87 |
- |
88 |
-# @FUNCTION: php-ext-pecl-r2_src_compile |
89 |
-# @DESCRIPTION: |
90 |
-# Takes care of standard compile for PECL packages. |
91 |
-php-ext-pecl-r2_src_compile() { |
92 |
- php-ext-source-r2_src_compile |
93 |
-} |
94 |
- |
95 |
-# @FUNCTION: php-ext-pecl-r2_src_install |
96 |
-# @DESCRIPTION: |
97 |
-# Takes care of standard install for PECL packages. |
98 |
-# You can also simply add examples to IUSE to automagically install |
99 |
-# examples supplied with the package. |
100 |
- |
101 |
-# @VARIABLE: DOCS |
102 |
-# @DESCRIPTION: |
103 |
-# Set in ebuild if you wish to install additional, package-specific documentation. |
104 |
-php-ext-pecl-r2_src_install() { |
105 |
- php-ext-source-r2_src_install |
106 |
- |
107 |
- for doc in ${DOCS} "${WORKDIR}"/package.xml CREDITS ; do |
108 |
- [[ -s ${doc} ]] && dodoc ${doc} |
109 |
- done |
110 |
- |
111 |
- if has examples ${IUSE} && use examples ; then |
112 |
- insinto /usr/share/doc/${CATEGORY}/${PF}/examples |
113 |
- doins -r examples/* |
114 |
- fi |
115 |
-} |
116 |
- |
117 |
- |
118 |
-# @FUNCTION: php-ext-pecl-r2_src_test |
119 |
-# @DESCRIPTION: |
120 |
-# Takes care of running any tests delivered with the PECL package. |
121 |
-# Standard phpize generates a run-tests.php file that is executed in make test |
122 |
-# We only need to force it to non-interactive mode |
123 |
-php-ext-pecl-r2_src_test() { |
124 |
- for slot in `php_get_slots`; do |
125 |
- php_init_slot_env ${slot} |
126 |
- NO_INTERACTION="yes" emake test || die "emake test failed for slot ${slot}" |
127 |
- done |
128 |
-} |