Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 02 Jul 2017 00:41:28
Message-Id: 1498956065.a63845aeadda82444f658871152d5e77b0d7c334.grknight@gentoo
1 commit: a63845aeadda82444f658871152d5e77b0d7c334
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 2 00:41:05 2017 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 2 00:41:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a63845ae
7
8 php-pear-lib-r1.eclass: Remove deprecated eclass
9
10 eclass/php-pear-lib-r1.eclass | 102 ------------------------------------------
11 1 file changed, 102 deletions(-)
12
13 diff --git a/eclass/php-pear-lib-r1.eclass b/eclass/php-pear-lib-r1.eclass
14 deleted file mode 100644
15 index 6c66dcaca34..00000000000
16 --- a/eclass/php-pear-lib-r1.eclass
17 +++ /dev/null
18 @@ -1,102 +0,0 @@
19 -# Copyright 1999-2015 Gentoo Foundation
20 -# Distributed under the terms of the GNU General Public License v2
21 -
22 -# @DEAD
23 -# This eclass should not be used as most packages that did
24 -# are now broken since ${FILESDIR} could easily be referenced in
25 -# pkg_setup.
26 -
27 -# @ECLASS: php-pear-lib-r1.eclass
28 -# @MAINTAINER:
29 -# Gentoo PHP team <php-bugs@g.o>
30 -# @AUTHOR:
31 -# Author: Luca Longinotti <chtekk@g.o>
32 -# @BLURB: Provides means for an easy installation of PEAR-based libraries.
33 -# @DESCRIPTION:
34 -# This class provides means for an easy installation of PEAR-based libraries,
35 -# such as Creole, Jargon, Phing etc., while retaining the functionality to put
36 -# the libraries into version-dependant directories.
37 -
38 -inherit multilib
39 -
40 -EXPORT_FUNCTIONS pkg_setup src_install
41 -
42 -# Silence repoman warnings
43 -case "${EAPI:-0}" in
44 - 5)
45 - PHP_DEPEND="dev-lang/php:*"
46 - ;;
47 - *)
48 - PHP_DEPEND="dev-lang/php"
49 - ;;
50 -esac
51 -
52 -DEPEND="${PHP_DEPEND}
53 - >=dev-php/pear-1.9.0"
54 -RDEPEND="${DEPEND}"
55 -
56 -if [[ -n $PHP_PEAR_CHANNEL ]] ; then
57 - PHP_PEAR_PV=${PV/_rc/RC}
58 - [[ -z ${PHP_PEAR_PN} ]] && die "Missing PHP_PEAR_PN. Please notify the maintainer"
59 - PHP_PEAR_P=${PHP_PEAR_PN}-${PHP_PEAR_PV}
60 -
61 - S="${WORKDIR}/${PHP_PEAR_P}"
62 -
63 - SRC_URI="http://${PHP_PEAR_URI}/get/${PHP_PEAR_P}.tgz"
64 -fi
65 -
66 -
67 -# @FUNCTION: php-pear-lib-r1_pkg_setup
68 -# @DESCRIPTION:
69 -# Adds required PEAR channel if necessary
70 -php-pear-lib-r1_pkg_setup() {
71 - if [[ -n $PHP_PEAR_CHANNEL ]] ; then
72 - if [[ -f $PHP_PEAR_CHANNEL ]]; then
73 - pear channel-add $PHP_PEAR_CHANNEL || einfo "Ignore any errors about existing channels"
74 - else
75 - die "Could not find channel file $PHP_PEAR_CHANNEL"
76 - fi
77 - fi
78 -}
79 -
80 -
81 -# @FUNCTION: php-pear-lib-r1_src_install
82 -# @DESCRIPTION:
83 -# Takes care of standard install for PEAR-based libraries.
84 -php-pear-lib-r1_src_install() {
85 - # SNMP support
86 - addpredict /usr/share/snmp/mibs/.index
87 - addpredict /var/lib/net-snmp/
88 - addpredict /var/lib/net-snmp/mib_indexes
89 - addpredict /session_mm_cli0.sem
90 -
91 - PHP_BIN="/usr/bin/php"
92 -
93 - cd "${S}"
94 -
95 - # metadata_dir needs to be set relative to ${D} for >=dev-php/PEAR-PEAR-1.10
96 - if [[ -f "${WORKDIR}"/package2.xml ]] ; then
97 - mv -f "${WORKDIR}/package2.xml" "${S}"
98 - local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
99 - peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" -d metadata_dir="/usr/share/php" \
100 - install --force --loose --nodeps --offline --packagingroot="${D}" \
101 - "${S}/package2.xml" || die "Unable to install PEAR package"
102 - else
103 - mv -f "${WORKDIR}/package.xml" "${S}"
104 - local WWW_DIR="/usr/share/webapps/${PN}/${PVR}/htdocs"
105 - peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" -d metadata_dir="/usr/share/php" \
106 - install --force --loose --nodeps --offline --packagingroot="${D}" \
107 - "${S}/package.xml" || die "Unable to install PEAR package"
108 - fi
109 -
110 - rm -Rf "${D}/usr/share/php/.channels" \
111 - "${D}/usr/share/php/.depdblock" \
112 - "${D}/usr/share/php/.depdb" \
113 - "${D}/usr/share/php/.filemap" \
114 - "${D}/usr/share/php/.lock" \
115 - "${D}/usr/share/php/.registry"
116 -
117 - einfo
118 - einfo "Installing to /usr/share/php ..."
119 - einfo
120 -}