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