1 |
commit: 86c0130c6e56f79e9830e3ee07a0400f04dd0efd |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 5 23:28:22 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 5 23:28:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86c0130c |
7 |
|
8 |
dev-php/PEAR-PEAR: remove unused PEAR-PEAR-1.10.3-r2.ebuild. |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
dev-php/PEAR-PEAR/PEAR-PEAR-1.10.3-r2.ebuild | 173 --------------------------- |
13 |
1 file changed, 173 deletions(-) |
14 |
|
15 |
diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.3-r2.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.3-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index a097da16a52..00000000000 |
18 |
--- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.3-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,173 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-MY_PN="${PN/PEAR-/}" |
27 |
-MY_P="${MY_PN}-${PV}" |
28 |
- |
29 |
-DESCRIPTION="PEAR Base System" |
30 |
-HOMEPAGE="http://pear.php.net/package/${MY_PN}" |
31 |
-SRC_URI="http://pear.php.net/get/${MY_P}.tgz" |
32 |
-LICENSE="MIT" |
33 |
-KEYWORDS="~amd64 ~arm ~hppa" |
34 |
-SLOT="0" |
35 |
-IUSE="" |
36 |
- |
37 |
-DEPEND="" |
38 |
-RDEPEND="dev-lang/php:*[cli,xml,zlib] |
39 |
- dev-php/PEAR-Archive_Tar |
40 |
- dev-php/PEAR-Console_Getopt |
41 |
- dev-php/PEAR-Exception |
42 |
- dev-php/PEAR-Structures_Graph |
43 |
- dev-php/PEAR-XML_Util" |
44 |
- |
45 |
-S="${WORKDIR}/${MY_P}" |
46 |
- |
47 |
-PATCHES=( "${FILESDIR}/gentoo-libtool-mismatch-fix-v2.patch" ) |
48 |
- |
49 |
-pkg_setup() { |
50 |
- [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="${EPREFIX}/var/cache/pear" |
51 |
- [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="${EPREFIX}/var/tmp/pear" |
52 |
- [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="${EPREFIX}/tmp" |
53 |
- |
54 |
- elog |
55 |
- elog "cache_dir is set to: ${PEAR_CACHEDIR}" |
56 |
- elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" |
57 |
- elog "temp_dir is set to: ${PEAR_TEMPDIR}" |
58 |
- elog |
59 |
- elog "If you want to change the above values, you need to set" |
60 |
- elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" |
61 |
- elog "accordingly in /etc/portage/make.conf and re-emerge ${PN}." |
62 |
- elog |
63 |
-} |
64 |
- |
65 |
-src_prepare() { |
66 |
- default |
67 |
- # Exception.php is part of dev-php/PEAR-Exception. |
68 |
- rm PEAR/Exception.php || die "failed to remove PEAR/Exception.php" |
69 |
-} |
70 |
- |
71 |
-src_install() { |
72 |
- insinto /usr/share/php |
73 |
- doins -r PEAR/ |
74 |
- doins -r OS/ |
75 |
- doins PEAR.php System.php |
76 |
- doins scripts/pearcmd.php |
77 |
- doins scripts/peclcmd.php |
78 |
- |
79 |
- newbin scripts/pear.sh pear |
80 |
- newbin scripts/peardev.sh peardev |
81 |
- newbin scripts/pecl.sh pecl |
82 |
- |
83 |
- # adjust some scripts for current version |
84 |
- [[ -z "${PEAR}" ]] && PEAR="${PV}" |
85 |
- for i in pearcmd.php peclcmd.php ; do |
86 |
- sed "s:@pear_version@:${PEAR}:g" -i "${D}/usr/share/php/${i}" \ |
87 |
- || die "failed to sed pear_version" |
88 |
- done |
89 |
- |
90 |
- for i in pear peardev pecl ; do |
91 |
- sed "s:@bin_dir@:${EPREFIX}/usr/bin:g" -i "${D}/usr/bin/${i}" \ |
92 |
- || die "failed to sed @bin_dir@ in ${i}" |
93 |
- sed "s:@php_dir@:${EPREFIX}/usr/share/php:g" -i "${D}/usr/bin/${i}" \ |
94 |
- || die "failed to sed @php_dir@ in ${i}" |
95 |
- done |
96 |
- |
97 |
- sed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" \ |
98 |
- -i "${D}/usr/bin/pear" \ |
99 |
- || die "failed to set PHP ini values in pear executable" |
100 |
- |
101 |
- sed "s:@package_version@:${PEAR}:g" \ |
102 |
- -i "${D}/usr/share/php/PEAR/Command/Package.php" \ |
103 |
- || die "failed to sed @package_version@" |
104 |
- |
105 |
- sed "s:@PEAR-VER@:${PEAR}:g" \ |
106 |
- -i "${D}/usr/share/php/PEAR/Dependency2.php" \ |
107 |
- || die "failed to sed @PEAR-VER@ in Dependency2.php" |
108 |
- |
109 |
- sed "s:@PEAR-VER@:${PEAR}:g" \ |
110 |
- -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v1.php" \ |
111 |
- || die "failed to sed @PEAR-VER@ in v1.php" |
112 |
- |
113 |
- sed "s:@PEAR-VER@:${PEAR}:g" \ |
114 |
- -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v2.php" \ |
115 |
- || die "failed to sed @PEAR-VER@ in v2.php" |
116 |
- |
117 |
- # finalize install |
118 |
- insinto /etc |
119 |
- newins "${FILESDIR}"/pear.conf-r2 pear.conf |
120 |
- |
121 |
- sed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" \ |
122 |
- -i "${D}/etc/pear.conf" \ |
123 |
- || die "failed to sed PHPCLILEN in pear.conf" |
124 |
- |
125 |
- sed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" \ |
126 |
- -i "${D}/etc/pear.conf" \ |
127 |
- || die "failed to sed CACHEDIRLEN in pear.conf" |
128 |
- |
129 |
- sed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" \ |
130 |
- -i "${D}/etc/pear.conf" \ |
131 |
- || die "failed to sed DOWNLOADDIRLEN in pear.conf" |
132 |
- |
133 |
- sed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" \ |
134 |
- -i "${D}/etc/pear.conf" \ |
135 |
- || die "failed to sed TEMPDIRLEN in pear.conf" |
136 |
- |
137 |
- # Change the paths for eprefix! |
138 |
- sed "s|s:19:\"/usr/share/php/docs\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/docs\"|g" \ |
139 |
- -i "${D}/etc/pear.conf" \ |
140 |
- || die "failed to sed the docs path (prefix) in pear.conf" |
141 |
- |
142 |
- sed "s|s:19:\"/usr/share/php/data\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/data\"|g" \ |
143 |
- -i "${D}/etc/pear.conf" \ |
144 |
- || die "failed to sed the data path (prefix) in pear.conf" |
145 |
- |
146 |
- sed "s|s:20:\"/usr/share/php/tests\"|s:$(( ${#EPREFIX}+20 )):\"${EPREFIX}/usr/share/php/tests\"|g" \ |
147 |
- -i "${D}/etc/pear.conf" \ |
148 |
- || die "failed to sed the tests path (prefix) in pear.conf" |
149 |
- |
150 |
- sed "s|s:14:\"/usr/share/php\"|s:$(( ${#EPREFIX}+14 )):\"${EPREFIX}/usr/share/php\"|g" \ |
151 |
- -i "${D}/etc/pear.conf" \ |
152 |
- || die "failed to sed the PHP include path (prefix) in pear.conf" |
153 |
- |
154 |
- sed "s|s:8:\"/usr/bin\"|s:$(( ${#EPREFIX}+8 )):\"${EPREFIX}/usr/bin\"|g" \ |
155 |
- -i "${D}/etc/pear.conf" \ |
156 |
- || die "failed to sed the bin path (prefix) in pear.conf" |
157 |
- |
158 |
- [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR#${EPREFIX}}" |
159 |
- keepdir "${PEAR_CACHEDIR#${EPREFIX}}" |
160 |
- diropts -m1777 |
161 |
- keepdir "${PEAR_DOWNLOADDIR#${EPREFIX}}" |
162 |
- |
163 |
- insinto /usr/share/php/.packagexml |
164 |
- newins "${WORKDIR}/package.xml" "${MY_P}.xml" |
165 |
-} |
166 |
- |
167 |
-pkg_postinst() { |
168 |
- pear clear-cache || die "failed to clear PEAR cache" |
169 |
- |
170 |
- # Update PEAR/PECL channels as needed, add new ones to the list if needed |
171 |
- elog "Updating PEAR/PECL channels" |
172 |
- local pearchans="pear.php.net pecl.php.net 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 |
- |
181 |
- # Register the package from the package.xml file |
182 |
- # It is not critical to complete so only warn on failure |
183 |
- if [[ -f "${EROOT}usr/share/php/.packagexml/${MY_P}.xml" ]] ; then |
184 |
- "${EROOT}usr/bin/peardev" install -nrO --force \ |
185 |
- "${EROOT}usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ |
186 |
- || ewarn "Failed to insert package into local PEAR database" |
187 |
- fi |
188 |
-} |
189 |
- |
190 |
-pkg_prerm() { |
191 |
- # Uninstall known dependency |
192 |
- "${EROOT}usr/bin/peardev" uninstall -nrO "pear.php.net/PEAR" |
193 |
-} |