Gentoo Archives: gentoo-commits

From: "Markus Ullmann (jokey)" <jokey@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-php/PEAR-PEAR: ChangeLog PEAR-PEAR-1.6.2.ebuild
Date: Mon, 22 Oct 2007 22:46:36
Message-Id: E1Ik5qF-00082g-Hl@stork.gentoo.org
1 jokey 07/10/22 22:33:47
2
3 Modified: ChangeLog
4 Added: PEAR-PEAR-1.6.2.ebuild
5 Log:
6 Version bump from php overlay
7 (Portage version: 2.1.3.15)
8
9 Revision Changes Path
10 1.96 dev-php/PEAR-PEAR/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog?rev=1.96&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog?rev=1.96&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog?r1=1.95&r2=1.96
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v
19 retrieving revision 1.95
20 retrieving revision 1.96
21 diff -u -r1.95 -r1.96
22 --- ChangeLog 6 Sep 2007 15:50:15 -0000 1.95
23 +++ ChangeLog 22 Oct 2007 22:33:47 -0000 1.96
24 @@ -1,6 +1,19 @@
25 # ChangeLog for dev-php/PEAR-PEAR
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.95 2007/09/06 15:50:15 jokey Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.96 2007/10/22 22:33:47 jokey Exp $
29 +
30 +*PEAR-PEAR-1.6.2 (22 Oct 2007)
31 +
32 + 22 Oct 2007; Markus Ullmann <jokey@g.o>
33 + +files/1.6.2-accept-encoding-bug_12116.patch, +PEAR-PEAR-1.6.2.ebuild:
34 + Version bump from php overlay
35 +
36 + 29 Sep 2007; Jakub Moc <jakub@g.o>
37 + +files/1.6.2-accept-encoding-bug_12116.patch, +files/pear.conf,
38 + +metadata.xml, +PEAR-PEAR-1.6.2.ebuild:
39 + Version bump - bugfix release, also add patch for PEAR bug #12116. Remove
40 + obsolete blockers, fix RDEPEND. Add some pear channels. Lots of ebuild
41 + sanitizations.
42
43 06 Sep 2007; Markus Ullmann <jokey@g.o> -PEAR-PEAR-1.4.11.ebuild,
44 -PEAR-PEAR-1.5.1.ebuild:
45
46
47
48 1.1 dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2.ebuild
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2.ebuild?rev=1.1&content-type=text/plain
52
53 Index: PEAR-PEAR-1.6.2.ebuild
54 ===================================================================
55 # Copyright 1999-2007 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2.ebuild,v 1.1 2007/10/22 22:33:47 jokey Exp $
58
59 inherit depend.php
60
61 ARCHIVE_TAR="1.3.2"
62 CONSOLE_GETOPT="1.2.3"
63 STRUCTURES_GRAPH="1.0.2"
64 XML_RPC="1.5.1"
65 PEAR="${PV}"
66
67 [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="/var/cache/pear"
68
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
70
71 DESCRIPTION="PEAR Base System (PEAR, Archive_Tar, Console_Getopt, Structures_Graph, XML_RPC)."
72 HOMEPAGE="http://pear.php.net/"
73 SRC_URI="http://pear.php.net/get/Archive_Tar-${ARCHIVE_TAR}.tgz
74 http://pear.php.net/get/Console_Getopt-${CONSOLE_GETOPT}.tgz
75 http://pear.php.net/get/Structures_Graph-${STRUCTURES_GRAPH}.tgz
76 http://pear.php.net/get/XML_RPC-${XML_RPC}.tgz
77 http://pear.php.net/get/PEAR-${PEAR}.tgz"
78 LICENSE="LGPL-2.1 PHP"
79 SLOT="0"
80 IUSE=""
81
82 # we depend on a recent sandbox version to mitigate problems users
83 # have been experiencing
84 DEPEND="dev-lang/php
85 >=sys-apps/sandbox-1.2.17"
86 RDEPEND="dev-lang/php"
87
88 S=${WORKDIR}
89
90 pkg_setup() {
91 has_php
92
93 # we check that PHP was compiled with the correct USE flags
94 if [[ ${PHP_VERSION} == "4" ]] ; then
95 require_php_with_use cli pcre expat zlib
96 else
97 require_php_with_use cli pcre xml zlib
98 fi
99 }
100
101 src_unpack() {
102 unpack ${A}
103 cd "${WORKDIR}"/PEAR-${PV}
104 epatch "${FILESDIR}"/${PV}-accept-encoding-bug_12116.patch # PEAR bug #12116
105 }
106
107 src_install() {
108 require_php_cli
109
110 # Prevent SNMP related sandbox violoation.
111 addpredict /usr/share/snmp/mibs/.index
112 addpredict /var/lib/net-snmp/
113
114 mkdir -p PEAR/XML/RPC
115
116 # Install PEAR Package.
117 cp -r PEAR-${PEAR}/OS PEAR/
118 cp -r PEAR-${PEAR}/PEAR PEAR/
119 cp PEAR-${PEAR}/PEAR.php PEAR/PEAR.php
120 cp PEAR-${PEAR}/System.php PEAR/System.php
121
122 # Prepare /usr/bin/pear script.
123 cp PEAR-${PEAR}/scripts/pearcmd.php PEAR/pearcmd.php
124 sed -i "s:@pear_version@:${PEAR}:g" PEAR/pearcmd.php || die "sed failed"
125 cp PEAR-${PEAR}/scripts/pear.sh PEAR/pear
126 sed -i -e "s:@php_bin@:${PHPCLI}:g" \
127 -e "s:@bin_dir@:/usr/bin:g" \
128 -e "s:@php_dir@:/usr/share/php:g" \
129 -e "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" PEAR/pear || die "sed failed"
130
131 # Prepare /usr/bin/peardev script.
132 cp PEAR-${PEAR}/scripts/peardev.sh PEAR/peardev
133 sed -i -e "s:@php_bin@:${PHPCLI}:g" \
134 -e "s:@bin_dir@:/usr/bin:g" \
135 -e "s:@php_dir@:/usr/share/php:g" PEAR/peardev || die "sed failed"
136
137 # Prepare /usr/bin/pecl script.
138 cp PEAR-${PEAR}/scripts/peclcmd.php PEAR/peclcmd.php
139 sed -i "s:@pear_version@:${PEAR}:g" PEAR/peclcmd.php || die "sed failed"
140 cp PEAR-${PEAR}/scripts/pecl.sh PEAR/pecl
141 sed -i -e "s:@php_bin@:${PHPCLI}:g" \
142 -e "s:@bin_dir@:/usr/bin:g" \
143 -e "s:@php_dir@:/usr/share/php:g" PEAR/pecl || die "sed failed"
144
145 # Prepare PEAR/Dependency2.php.
146 sed -i "s:@PEAR-VER@:${PEAR}:g" PEAR/PEAR/Dependency2.php || die "sed failed"
147
148 # Install Archive_Tar Package.
149 cp -r Archive_Tar-${ARCHIVE_TAR}/Archive PEAR/
150
151 # Install Console_Getopt Package.
152 cp -r Console_Getopt-${CONSOLE_GETOPT}/Console PEAR/
153
154 # Install Structures_Graph Package.
155 cp -r Structures_Graph-${STRUCTURES_GRAPH}/Structures PEAR/
156
157 # Install XML_RPC Package.
158 cp XML_RPC-${XML_RPC}/RPC.php PEAR/XML/RPC.php
159 cp XML_RPC-${XML_RPC}/Server.php PEAR/XML/RPC/Server.php
160
161 # Finalize installation.
162 cd PEAR
163 insinto /usr/share/php
164 doins -r Archive Console OS PEAR Structures XML *.php
165 dobin pear peardev pecl
166
167 insinto /etc
168 doins "${FILESDIR}/pear.conf"
169 sed -i -e "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" \
170 -e "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" "${D}/etc/pear.conf" || die "sed failed"
171
172 keepdir "${PEAR_CACHEDIR}"
173 fperms 755 "${PEAR_CACHEDIR}"
174 }
175
176 pkg_preinst() {
177 rm -f "${ROOT}/etc/pear.conf"
178 }
179
180 pkg_postinst() {
181 pear clear-cache
182
183 # Update PEAR/PECL channels as needed, add new ones to the list if needed
184 pearchans="pear.php.net pecl.php.net components.ez.no pear.phpdb.org pear.phing.info pear.symfony-project.com pear.phpunit.de pear.php-baustelle.de pear.zeronotice.org pear.phpontrax.com"
185
186 for chan in ${pearchans} ; do
187 pear channel-discover ${chan}
188 pear channel-update ${chan}
189 done
190 }
191
192
193
194 --
195 gentoo-commits@g.o mailing list