Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PEAR/
Date: Sat, 27 Jan 2018 00:14:41
Message-Id: 1517012022.4cf9d012ef1108272a4659a6a089e8f763e414c4.mjo@gentoo
1 commit: 4cf9d012ef1108272a4659a6a089e8f763e414c4
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 27 00:13:42 2018 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 27 00:13:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cf9d012
7
8 dev-php/PEAR-PEAR: drop PEAR-PEAR-1.10.1-r1.ebuild.
9
10 Closes: https://bugs.gentoo.org/645846
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 dev-php/PEAR-PEAR/Manifest | 1 -
14 dev-php/PEAR-PEAR/PEAR-PEAR-1.10.1-r1.ebuild | 150 ---------------------------
15 2 files changed, 151 deletions(-)
16
17 diff --git a/dev-php/PEAR-PEAR/Manifest b/dev-php/PEAR-PEAR/Manifest
18 index 0c059eef00e..d385a3989d2 100644
19 --- a/dev-php/PEAR-PEAR/Manifest
20 +++ b/dev-php/PEAR-PEAR/Manifest
21 @@ -1,2 +1 @@
22 -DIST PEAR-1.10.1.tgz 291167 BLAKE2B 27bb792db46e560fc8ba7daccc4a8a4d6580193bcaecab11548e10cadfa66a56242b125594b88d58a86974c2d82330d4cdd6ede491f3dbc2040efb3c646745d3 SHA512 df5f09a92d211a09dae147af474399171aed46e0536c091468b73b43ba4acdbdbf7b5cbdd17ef48b7d36d7b9dd23187dc6c75733731c267768d49c89698b0ef2
23 DIST PEAR-1.10.5.tgz 291151 BLAKE2B b9095e6e488348917846693769f075c898271f2b65fbc69781247e8f46bf41afa4dfeb98d66c1aabce884e24c91bda50af3766745c3b8b5101aa54595e53c796 SHA512 c310fa8ec72ba201313dc03953ec1eba82daa137b27eac880fd5388dce72d38e6aa40737da43c3ad41db4df0d6717c7d77cf477d64b29245854ae95d2a94c364
24
25 diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.1-r1.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.1-r1.ebuild
26 deleted file mode 100644
27 index c31bf073b18..00000000000
28 --- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.1-r1.ebuild
29 +++ /dev/null
30 @@ -1,150 +0,0 @@
31 -# Copyright 1999-2017 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -MY_PN="${PN/PEAR-/}"
37 -MY_P="${MY_PN}-${PV}"
38 -
39 -DESCRIPTION="PEAR Base System"
40 -HOMEPAGE="http://pear.php.net/package/${MY_PN}"
41 -SRC_URI="http://pear.php.net/get/${MY_P}.tgz"
42 -LICENSE="MIT"
43 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
44 -SLOT="0"
45 -IUSE=""
46 -
47 -DEPEND=""
48 -RDEPEND="dev-lang/php:*[cli,xml,zlib]
49 - >=dev-php/PEAR-Archive_Tar-1.4.0
50 - >=dev-php/PEAR-Console_Getopt-1.4.1
51 - >=dev-php/PEAR-Structures_Graph-1.1.0
52 - >=dev-php/PEAR-XML_Util-1.3.0"
53 -
54 -S="${WORKDIR}/${MY_P}"
55 -
56 -PATCHES=( "${FILESDIR}/gentoo-libtool-mismatch-fix-v2.patch" )
57 -
58 -pkg_setup() {
59 - [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="${EPREFIX}/var/cache/pear"
60 - [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="${EPREFIX}/var/tmp/pear"
61 - [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="${EPREFIX}/tmp"
62 -
63 - elog
64 - elog "cache_dir is set to: ${PEAR_CACHEDIR}"
65 - elog "download_dir is set to: ${PEAR_DOWNLOADDIR}"
66 - elog "temp_dir is set to: ${PEAR_TEMPDIR}"
67 - elog
68 - elog "If you want to change the above values, you need to set"
69 - elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)"
70 - elog "accordingly in /etc/portage/make.conf and re-emerge ${PN}."
71 - elog
72 -}
73 -
74 -src_install() {
75 - insinto /usr/share/php
76 - doins -r PEAR/
77 - doins -r OS/
78 - doins PEAR.php System.php
79 - doins scripts/pearcmd.php
80 - doins scripts/peclcmd.php
81 -
82 - newbin scripts/pear.sh pear
83 - newbin scripts/peardev.sh peardev
84 - newbin scripts/pecl.sh pecl
85 -
86 - # adjust some scripts for current version
87 - for i in pearcmd.php peclcmd.php ; do
88 - sed "s:@pear_version@:${PEAR}:g" -i "${D}/usr/share/php/${i}" \
89 - || die "failed to sed pear_version"
90 - done
91 -
92 - for i in pear peardev pecl ; do
93 - sed "s:@bin_dir@:${EPREFIX}/usr/bin:g" -i "${D}/usr/bin/${i}" \
94 - || die "failed to sed @bin_dir@ in ${i}"
95 - sed "s:@php_dir@:${EPREFIX}/usr/share/php:g" -i "${D}/usr/bin/${i}" \
96 - || die "failed to sed @php_dir@ in ${i}"
97 - done
98 -
99 - sed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" \
100 - -i "${D}/usr/bin/pear" \
101 - || die "failed to set PHP ini values in pear executable"
102 -
103 - sed "s:@package_version@:${PEAR}:g" \
104 - -i "${D}/usr/share/php/PEAR/Command/Package.php" \
105 - || die "failed to sed @package_version@"
106 -
107 - sed "s:@PEAR-VER@:${PEAR}:g" \
108 - -i "${D}/usr/share/php/PEAR/Dependency2.php" \
109 - || die "failed to sed @PEAR-VER@ in Dependency2.php"
110 -
111 - sed "s:@PEAR-VER@:${PEAR}:g" \
112 - -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v1.php" \
113 - || die "failed to sed @PEAR-VER@ in v1.php"
114 -
115 - sed "s:@PEAR-VER@:${PEAR}:g" \
116 - -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v2.php" \
117 - || die "failed to sed @PEAR-VER@ in v2.php"
118 -
119 - # finalize install
120 - insinto /etc
121 - newins "${FILESDIR}"/pear.conf-r2 pear.conf
122 -
123 - sed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" \
124 - -i "${D}/etc/pear.conf" \
125 - || die "failed to sed PHPCLILEN in pear.conf"
126 -
127 - sed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" \
128 - -i "${D}/etc/pear.conf" \
129 - || die "failed to sed CACHEDIRLEN in pear.conf"
130 -
131 - sed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" \
132 - -i "${D}/etc/pear.conf" \
133 - || die "failed to sed DOWNLOADDIRLEN in pear.conf"
134 -
135 - sed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" \
136 - -i "${D}/etc/pear.conf" \
137 - || die "failed to sed TEMPDIRLEN in pear.conf"
138 -
139 - # Change the paths for eprefix!
140 - sed "s|s:19:\"/usr/share/php/docs\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/docs\"|g" \
141 - -i "${D}/etc/pear.conf" \
142 - || die "failed to sed the docs path (prefix) in pear.conf"
143 -
144 - sed "s|s:19:\"/usr/share/php/data\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/data\"|g" \
145 - -i "${D}/etc/pear.conf" \
146 - || die "failed to sed the data path (prefix) in pear.conf"
147 -
148 - sed "s|s:20:\"/usr/share/php/tests\"|s:$(( ${#EPREFIX}+20 )):\"${EPREFIX}/usr/share/php/tests\"|g" \
149 - -i "${D}/etc/pear.conf" \
150 - || die "failed to sed the tests path (prefix) in pear.conf"
151 -
152 - sed "s|s:14:\"/usr/share/php\"|s:$(( ${#EPREFIX}+14 )):\"${EPREFIX}/usr/share/php\"|g" \
153 - -i "${D}/etc/pear.conf" \
154 - || die "failed to sed the PHP include path (prefix) in pear.conf"
155 -
156 - sed "s|s:8:\"/usr/bin\"|s:$(( ${#EPREFIX}+8 )):\"${EPREFIX}/usr/bin\"|g" \
157 - -i "${D}/etc/pear.conf" \
158 - || die "failed to sed the bin path (prefix) in pear.conf"
159 -
160 - [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR#${EPREFIX}}"
161 - keepdir "${PEAR_CACHEDIR#${EPREFIX}}"
162 - diropts -m1777
163 - keepdir "${PEAR_DOWNLOADDIR#${EPREFIX}}"
164 -}
165 -
166 -pkg_postinst() {
167 - pear clear-cache || die "failed to clear PEAR cache"
168 -
169 - # Update PEAR/PECL channels as needed, add new ones to the list if needed
170 - elog "Updating PEAR/PECL channels"
171 - local pearchans="pear.php.net pecl.php.net pear.phing.info "
172 - pearchans+="pear.symfony-project.com"
173 -
174 - for chan in ${pearchans} ; do
175 - # The first command may fail if, for example, the channels have
176 - # already been initialized.
177 - pear channel-discover ${chan}
178 - pear channel-update ${chan} || die "failed to update channels: ${chan}"
179 - done
180 -}