1 |
beandog 09/10/05 18:24:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: PEAR-PEAR-1.9.0.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.108 dev-php/PEAR-PEAR/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog?rev=1.108&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog?rev=1.108&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog?r1=1.107&r2=1.108 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v |
19 |
retrieving revision 1.107 |
20 |
retrieving revision 1.108 |
21 |
diff -u -r1.107 -r1.108 |
22 |
--- ChangeLog 23 Sep 2009 02:41:50 -0000 1.107 |
23 |
+++ ChangeLog 5 Oct 2009 18:24:36 -0000 1.108 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-php/PEAR-PEAR |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.107 2009/09/23 02:41:50 beandog Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.108 2009/10/05 18:24:36 beandog Exp $ |
29 |
+ |
30 |
+*PEAR-PEAR-1.9.0 (05 Oct 2009) |
31 |
+ |
32 |
+ 05 Oct 2009; Steve Dibb <beandog@g.o> +PEAR-PEAR-1.9.0.ebuild: |
33 |
+ Version bump |
34 |
|
35 |
*PEAR-PEAR-1.8.1 (23 Sep 2009) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: PEAR-PEAR-1.9.0.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild,v 1.1 2009/10/05 18:24:36 beandog Exp $ |
50 |
|
51 |
inherit depend.php |
52 |
|
53 |
PEAR="${PV}" |
54 |
|
55 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
56 |
|
57 |
DESCRIPTION="PEAR Base System" |
58 |
HOMEPAGE="http://pear.php.net/package/PEAR" |
59 |
SRC_URI="http://pear.php.net/get/PEAR-${PEAR}.tgz" |
60 |
LICENSE="MIT" |
61 |
SLOT="0" |
62 |
IUSE="" |
63 |
|
64 |
DEPEND="dev-lang/php" |
65 |
PDEPEND="=dev-php/pear-${PV}" |
66 |
|
67 |
S="${WORKDIR}" |
68 |
|
69 |
pkg_setup() { |
70 |
has_php |
71 |
|
72 |
# we check that PHP was compiled with the correct USE flags |
73 |
if [[ ${PHP_VERSION} == "4" ]] ; then |
74 |
require_php_with_use cli pcre expat zlib |
75 |
else |
76 |
require_php_with_use cli pcre xml zlib |
77 |
fi |
78 |
|
79 |
[[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="/var/cache/pear" |
80 |
[[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="/var/tmp/pear" |
81 |
[[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="/tmp" |
82 |
|
83 |
elog |
84 |
elog "cache_dir is set to: ${PEAR_CACHEDIR}" |
85 |
elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" |
86 |
elog "temp_dir is set to: ${PEAR_TEMPDIR}" |
87 |
elog |
88 |
elog "If you want to change the above values, you need to set" |
89 |
elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" |
90 |
elog "accordingly in /etc/make.conf and re-emerge ${PN}." |
91 |
elog |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
# Prevent SNMP related sandbox violoation. |
96 |
addpredict /usr/share/snmp/mibs/.index |
97 |
addpredict /var/lib/net-snmp/ |
98 |
|
99 |
# install PEAR package |
100 |
cd "${S}"/PEAR-${PEAR} |
101 |
|
102 |
insinto /usr/share/php |
103 |
doins -r PEAR/ |
104 |
doins -r OS/ |
105 |
doins PEAR.php PEAR5.php System.php |
106 |
doins scripts/pearcmd.php |
107 |
doins scripts/peclcmd.php |
108 |
|
109 |
newbin scripts/pear.sh pear |
110 |
newbin scripts/peardev.sh peardev |
111 |
newbin scripts/pecl.sh pecl |
112 |
|
113 |
# adjust some scripts for current version |
114 |
for i in pearcmd.php peclcmd.php ; do |
115 |
dosed "s:@pear_version@:${PEAR}:g" /usr/share/php/${i} |
116 |
done |
117 |
|
118 |
for i in pear peardev pecl ; do |
119 |
dosed "s:@php_bin@:${PHPCLI}:g" /usr/bin/${i} |
120 |
dosed "s:@bin_dir@:/usr/bin:g" /usr/bin/${i} |
121 |
dosed "s:@php_dir@:/usr/share/php:g" /usr/bin/${i} |
122 |
done |
123 |
dosed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" /usr/bin/pear |
124 |
|
125 |
dosed "s:@package_version@:${PEAR}:g" /usr/share/php/PEAR/Command/Package.php |
126 |
dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/Dependency2.php |
127 |
dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v1.php |
128 |
dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v2.php |
129 |
|
130 |
# finalize install |
131 |
insinto /etc |
132 |
newins "${FILESDIR}"/pear.conf-r1 pear.conf |
133 |
dosed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" /etc/pear.conf |
134 |
dosed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" /etc/pear.conf |
135 |
dosed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" /etc/pear.conf |
136 |
dosed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" /etc/pear.conf |
137 |
|
138 |
[[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR}" |
139 |
keepdir "${PEAR_CACHEDIR}" |
140 |
diropts -m1777 |
141 |
keepdir "${PEAR_DOWNLOADDIR}" |
142 |
} |
143 |
|
144 |
pkg_preinst() { |
145 |
rm -f "${ROOT}/etc/pear.conf" |
146 |
} |