1 |
commit: 90d6b363a5e12a3de93aa91d77447344948147ce |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 10 22:48:03 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 10 22:48:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90d6b363 |
7 |
|
8 |
dev-php/xcache: new revision for v3.2.0. |
9 |
|
10 |
The main reason for this revision is to make the coverager module |
11 |
optional. It is now hidden behind the USE=coverage flag and is not |
12 |
enabled by default (it is not recommended for production servers). |
13 |
|
14 |
At the same time, the ebuild was upgraded to EAPI=6 and now uses the |
15 |
newer revision php-ext-source-r3.eclass. Finally, the htdocs/ admin |
16 |
interface directory was moved out of /usr/share/php and into |
17 |
/usr/share/xcache, which is more appropriate. Two minor repoman |
18 |
warnings were also corrected. |
19 |
|
20 |
Gentoo-Bug: 491358 |
21 |
|
22 |
Package-Manager: portage-2.2.28 |
23 |
|
24 |
dev-php/xcache/metadata.xml | 7 ++++ |
25 |
dev-php/xcache/xcache-3.2.0-r1.ebuild | 64 +++++++++++++++++++++++++++++++++++ |
26 |
dev-php/xcache/xcache-3.2.0.ebuild | 60 -------------------------------- |
27 |
3 files changed, 71 insertions(+), 60 deletions(-) |
28 |
|
29 |
diff --git a/dev-php/xcache/metadata.xml b/dev-php/xcache/metadata.xml |
30 |
index b86acf6..48b6cd3 100644 |
31 |
--- a/dev-php/xcache/metadata.xml |
32 |
+++ b/dev-php/xcache/metadata.xml |
33 |
@@ -5,4 +5,11 @@ |
34 |
<email>php-bugs@g.o</email> |
35 |
<name>PHP</name> |
36 |
</maintainer> |
37 |
+ |
38 |
+ <use> |
39 |
+ <flag name="coverage"> |
40 |
+ Enable the coverager module (not recommended for |
41 |
+ production servers). |
42 |
+ </flag> |
43 |
+ </use> |
44 |
</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-php/xcache/xcache-3.2.0-r1.ebuild b/dev-php/xcache/xcache-3.2.0-r1.ebuild |
47 |
new file mode 100644 |
48 |
index 0000000..f6cd14d |
49 |
--- /dev/null |
50 |
+++ b/dev-php/xcache/xcache-3.2.0-r1.ebuild |
51 |
@@ -0,0 +1,64 @@ |
52 |
+# Copyright 1999-2016 Gentoo Foundation |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+# $Id$ |
55 |
+ |
56 |
+EAPI=6 |
57 |
+ |
58 |
+PHP_EXT_NAME="xcache" |
59 |
+PHP_EXT_SAPIS="apache2 cgi fpm" |
60 |
+USE_PHP="php5-5 php5-6" |
61 |
+ |
62 |
+inherit php-ext-source-r3 confutils |
63 |
+ |
64 |
+DESCRIPTION="A fast and stable PHP opcode cacher" |
65 |
+HOMEPAGE="http://xcache.lighttpd.net/" |
66 |
+SRC_URI="http://xcache.lighttpd.net/pub/Releases/${PV}/${P}.tar.bz2" |
67 |
+ |
68 |
+LICENSE="BSD" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64 ~x86" |
71 |
+IUSE="coverage" |
72 |
+ |
73 |
+# make test would just run php's test and as such need the full php source |
74 |
+RESTRICT="test" |
75 |
+ |
76 |
+DEPEND=" |
77 |
+ !dev-php/eaccelerator |
78 |
+ !dev-php/pecl-apc |
79 |
+ virtual/httpd-php:* |
80 |
+ php_targets_php5-5? ( !dev-lang/php:5.5[opcache] ) |
81 |
+" |
82 |
+RDEPEND="${DEPEND}" |
83 |
+ |
84 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS ) |
85 |
+ |
86 |
+src_configure() { |
87 |
+ PHP_EXT_ECONF_ARGS=( |
88 |
+ --enable-xcache=shared |
89 |
+ --enable-xcache-constant \ |
90 |
+ --enable-xcache-optimizer \ |
91 |
+ $(use_enable coverage xcache-coverager) \ |
92 |
+ --enable-xcache-assembler \ |
93 |
+ --enable-xcache-encoder \ |
94 |
+ --enable-xcache-decoder ) |
95 |
+ |
96 |
+ php-ext-source-r3_src_configure |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ php-ext-source-r3_src_install |
101 |
+ |
102 |
+ insinto "${PHP_EXT_SHARED_DIR}" |
103 |
+ doins lib/Decompiler.class.php |
104 |
+ |
105 |
+ # Install the admin interface somewhere where it can be |
106 |
+ # copied/symlinked into a document root. |
107 |
+ insinto "/usr/share/${PN}" |
108 |
+ doins -r htdocs |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ elog "The lib/Decompiler.class.php file shipped with this release" |
113 |
+ elog "was installed into ${PHP_EXT_SHARED_DIR}. The htdocs/ admin" |
114 |
+ elog "interface directory can be found under ${EPREFIX}/usr/share/${PN}." |
115 |
+} |
116 |
|
117 |
diff --git a/dev-php/xcache/xcache-3.2.0.ebuild b/dev-php/xcache/xcache-3.2.0.ebuild |
118 |
deleted file mode 100644 |
119 |
index 6ad537b..0000000 |
120 |
--- a/dev-php/xcache/xcache-3.2.0.ebuild |
121 |
+++ /dev/null |
122 |
@@ -1,60 +0,0 @@ |
123 |
-# Copyright 1999-2014 Gentoo Foundation |
124 |
-# Distributed under the terms of the GNU General Public License v2 |
125 |
-# $Id$ |
126 |
- |
127 |
-EAPI="5" |
128 |
- |
129 |
-PHP_EXT_NAME="xcache" |
130 |
-PHP_EXT_INI="yes" |
131 |
-PHPSAPILIST="apache2 cgi fpm" |
132 |
-USE_PHP="php5-4 php5-5 php5-6" |
133 |
- |
134 |
-inherit php-ext-source-r2 confutils |
135 |
- |
136 |
-DESCRIPTION="A fast and stable PHP opcode cacher" |
137 |
-HOMEPAGE="http://xcache.lighttpd.net/" |
138 |
-SRC_URI="http://xcache.lighttpd.net/pub/Releases/${PV}/${P}.tar.bz2" |
139 |
- |
140 |
-LICENSE="BSD" |
141 |
-SLOT="0" |
142 |
-KEYWORDS="~amd64 ~x86" |
143 |
-IUSE="" |
144 |
- |
145 |
-# make test would just run php's test and as such need the full php source |
146 |
-RESTRICT="test" |
147 |
- |
148 |
-DEPEND=" |
149 |
- !dev-php/eaccelerator |
150 |
- !dev-php/pecl-apc |
151 |
- virtual/httpd-php |
152 |
- php_targets_php5-5? ( !dev-lang/php:5.5[opcache] ) |
153 |
-" |
154 |
-RDEPEND="${DEPEND}" |
155 |
- |
156 |
-src_configure() { |
157 |
- |
158 |
- my_conf="--enable-xcache=shared \ |
159 |
- --enable-xcache-constant \ |
160 |
- --enable-xcache-optimizer \ |
161 |
- --enable-xcache-coverager \ |
162 |
- --enable-xcache-assembler \ |
163 |
- --enable-xcache-encoder \ |
164 |
- --enable-xcache-decoder" |
165 |
- |
166 |
- php-ext-source-r2_src_configure |
167 |
-} |
168 |
- |
169 |
-src_install() { |
170 |
- php-ext-source-r2_src_install |
171 |
- dodoc AUTHORS ChangeLog NEWS README THANKS |
172 |
- |
173 |
- insinto "${PHP_EXT_SHARED_DIR}" |
174 |
- doins lib/Decompiler.class.php |
175 |
- insinto "${PHP_EXT_SHARED_DIR}" |
176 |
- doins -r htdocs |
177 |
-} |
178 |
- |
179 |
-pkg_postinst() { |
180 |
- elog "lib/Decompiler.class.php, and the htdocs/ directory shipped with this" |
181 |
- elog "release were installed into ${PHP_EXT_SHARED_DIR}." |
182 |
-} |