Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/twig/, dev-php/twig/files/
Date: Mon, 26 Aug 2019 13:37:48
Message-Id: 1566826647.147ff3d952aeea19a822f42ba2805e980d696735.grknight@gentoo
1 commit: 147ff3d952aeea19a822f42ba2805e980d696735
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 26 13:37:27 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 26 13:37:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=147ff3d9
7
8 dev-php/twig: Drop old versions which include the extension
9
10 PHP 5.6 is EOL and the extension needs to go away
11 PHP team is planning on masking 5.6 2019-10-01
12
13 Package-Manager: Portage-2.3.72, Repoman-2.3.17
14 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
15
16 dev-php/twig/Manifest | 1 -
17 dev-php/twig/files/1.40.1-autoloader-path.patch | 16 -----
18 dev-php/twig/metadata.xml | 5 --
19 dev-php/twig/twig-1.40.1.ebuild | 87 -------------------------
20 dev-php/twig/twig-1.42.2.ebuild | 86 ------------------------
21 5 files changed, 195 deletions(-)
22
23 diff --git a/dev-php/twig/Manifest b/dev-php/twig/Manifest
24 index 36d6379ab8f..5f5c81ed533 100644
25 --- a/dev-php/twig/Manifest
26 +++ b/dev-php/twig/Manifest
27 @@ -1,3 +1,2 @@
28 DIST twig-1.40.1.tar.gz 274081 BLAKE2B 0e73bd9fff58677446ba03ed560bff17c1879192b79cca9f718ccd330e1eac64ee1195d7034fa52ec009e323868d1cc1bedc182e90f0a77c8b54d6aa16022554 SHA512 de174e5dd14562a155515a3238aa07ef5a22c3bf0eff8ecc320f1a972e56f1ec759a53ee24579c6434e286b3775044e88c753fd08930037314b45c9577b310b1
29 -DIST twig-1.42.2.tar.gz 277760 BLAKE2B c72462b172f1cda85ca8a7988870e20abf09bdc6114eb428213508fcf9c19a2b10e180e8fa052b8e51e8aee749c7c0ded936e5792ca1f8b5c7024872335df3fb SHA512 17ccfcea750d9d9154841598b34de8882aa1144696d912c8175b1add996db4f31b3cb85bc68dc75f62944fe858345811ebbf952aabb0c3ff8c1bbc2a0f1a2576
30 DIST twig-1.42.3.tar.gz 278164 BLAKE2B 4bff9f7f85ce8ca00871e9342ec11a68d4b930f7761bc7404f504322483d328570e9e540e2518b5e1ad513002ce95686b7a1a47ff7aa4b28c16b2871ba759b01 SHA512 9dc892d80445f9fa9a3bde5cfdc49f2975a43f36123c1f4bbbb40740269e9aa4355d0d8668552e535f74a8ff27cc8ee1dc6983b50567993c1deab09569a7c5e3
31
32 diff --git a/dev-php/twig/files/1.40.1-autoloader-path.patch b/dev-php/twig/files/1.40.1-autoloader-path.patch
33 deleted file mode 100644
34 index 8c236883e07..00000000000
35 --- a/dev-php/twig/files/1.40.1-autoloader-path.patch
36 +++ /dev/null
37 @@ -1,16 +0,0 @@
38 ---- a/lib/Twig/Autoloader.php 2019-04-29 16:12:28.000000000 +0200
39 -+++ b/lib/Twig/Autoloader.php.new 2019-05-06 21:37:39.955238245 +0200
40 -@@ -43,9 +43,11 @@
41 - return;
42 - }
43 -
44 -- if (is_file($file = __DIR__.'/../'.str_replace(['_', "\0"], ['/', ''], $class).'.php')) {
45 -+ if (is_file($file = __DIR__.'/../'.str_replace(['Twig_', "\0"], ['lib/', ''], $class).'.php')) {
46 - require $file;
47 -- } elseif (is_file($file = __DIR__.'/../../src/'.str_replace(['Twig\\', '\\', "\0"], ['', '/', ''], $class).'.php')) {
48 -+ } elseif (is_file($file = __DIR__.'/../'.str_replace(['_', "\0"], ['/', ''], $class).'.php')) {
49 -+ require $file;
50 -+ } elseif (is_file($file = __DIR__.'/../src/'.str_replace(['Twig\\', '\\', "\0"], ['', '/', ''], $class).'.php')) {
51 - require $file;
52 - }
53 - }
54
55 diff --git a/dev-php/twig/metadata.xml b/dev-php/twig/metadata.xml
56 index 434d766441f..26aeb448aae 100644
57 --- a/dev-php/twig/metadata.xml
58 +++ b/dev-php/twig/metadata.xml
59 @@ -9,11 +9,6 @@
60 <email>php-bugs@g.o</email>
61 <name>PHP</name>
62 </maintainer>
63 - <use>
64 - <flag name="extension">
65 - Build the C extension (only for php-5.6.x).
66 - </flag>
67 - </use>
68 <upstream>
69 <remote-id type="github">twigphp/Twig</remote-id>
70 </upstream>
71
72 diff --git a/dev-php/twig/twig-1.40.1.ebuild b/dev-php/twig/twig-1.40.1.ebuild
73 deleted file mode 100644
74 index 0903fb3e789..00000000000
75 --- a/dev-php/twig/twig-1.40.1.ebuild
76 +++ /dev/null
77 @@ -1,87 +0,0 @@
78 -# Copyright 1999-2019 Gentoo Authors
79 -# Distributed under the terms of the GNU General Public License v2
80 -
81 -EAPI=6
82 -
83 -MY_PN="Twig"
84 -USE_PHP="php5-6"
85 -S="${WORKDIR}/${MY_PN}-${PV}"
86 -PHP_EXT_S="${S}/ext/${PN}"
87 -PHP_EXT_NAME="${PN}"
88 -PHP_EXT_OPTIONAL_USE="extension"
89 -
90 -inherit eutils php-ext-source-r3
91 -
92 -DESCRIPTION="PHP templating engine with syntax similar to Django"
93 -HOMEPAGE="http://twig.sensiolabs.org/"
94 -SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz
95 - -> ${P}.tar.gz"
96 -LICENSE="BSD"
97 -SLOT="0"
98 -KEYWORDS="~amd64 ~x86"
99 -IUSE="doc extension test"
100 -
101 -DEPEND="test? ( dev-php/phpunit )"
102 -
103 -# We always require *some* version of PHP; the eclass (conditionally)
104 -# requires *specific* versions.
105 -RDEPEND="dev-lang/php"
106 -
107 -src_prepare(){
108 - # We need to call eapply_user ourselves, because it may be skipped
109 - # if either the "extension" USE flag is not set, or if the user's
110 - # PHP_TARGETS is essentially empty (does not contain "php5-6"). In
111 - # the latter case, the eclass src_prepare does nothing. We only call
112 - # the eclass phase conditionally because the correct version of
113 - # e.g. "phpize" may not be there unless USE=extension is set.
114 - epatch "${FILESDIR}/${PV}-autoloader-path.patch"
115 - eapply_user
116 - use extension && php-ext-source-r3_src_prepare
117 -}
118 -
119 -src_configure() {
120 - # The eclass phase will try to run the ./configure script even if it
121 - # doesn't exist (in contrast to the default src_configure), so we
122 - # need to skip it if the eclass src_prepare (that creates said
123 - # script) is not run.
124 - use extension && php-ext-source-r3_src_configure
125 -}
126 -
127 -src_compile() {
128 - # Avoids the same problem as in src_configure.
129 - use extension && php-ext-source-r3_src_compile
130 -}
131 -
132 -src_install(){
133 - use extension && php-ext-source-r3_src_install
134 -
135 - cd "${S}" || die
136 - # The autoloader requires the 'T' in "Twig" capitalized.
137 - insinto "/usr/share/php/${MY_PN}/lib"
138 - doins -r lib/"${MY_PN}"/*
139 - insinto "/usr/share/php/${MY_PN}/src"
140 - doins -r src/*
141 - insinto "/usr/share/php/${MY_PN}"
142 - dosym "lib/Autoloader.php" "/usr/share/php/${MY_PN}/Autoloader.php"
143 -
144 - # The eclass src_install calls einstalldocs, so we may install a few
145 - # files twice. Doing so should be harmless.
146 - dodoc README.rst CHANGELOG
147 -
148 - # This installs the reStructuredText source documents. There's got
149 - # to be some way to turn them into HTML using Sphinx, but upstream
150 - # doesn't provide for it.
151 - use doc && dodoc -r doc
152 -}
153 -
154 -src_test(){
155 - phpunit --bootstrap test/bootstrap.php || die "test suite failed"
156 -}
157 -
158 -pkg_postinst(){
159 - elog "${PN} has been installed in /usr/share/php/${MY_PN}/."
160 - elog "To use it in a script, require('${MY_PN}/Autoloader.php'),"
161 - elog "and then run \"Twig_Autoloader::register();\". Most of"
162 - elog "the examples in the documentation should work without"
163 - elog "further modification."
164 -}
165
166 diff --git a/dev-php/twig/twig-1.42.2.ebuild b/dev-php/twig/twig-1.42.2.ebuild
167 deleted file mode 100644
168 index 54c306ddc74..00000000000
169 --- a/dev-php/twig/twig-1.42.2.ebuild
170 +++ /dev/null
171 @@ -1,86 +0,0 @@
172 -# Copyright 1999-2019 Gentoo Authors
173 -# Distributed under the terms of the GNU General Public License v2
174 -
175 -EAPI=6
176 -
177 -MY_PN="Twig"
178 -USE_PHP="php5-6"
179 -S="${WORKDIR}/${MY_PN}-${PV}"
180 -PHP_EXT_S="${S}/ext/${PN}"
181 -PHP_EXT_NAME="${PN}"
182 -PHP_EXT_OPTIONAL_USE="extension"
183 -
184 -inherit eutils php-ext-source-r3
185 -
186 -DESCRIPTION="PHP templating engine with syntax similar to Django"
187 -HOMEPAGE="http://twig.sensiolabs.org/"
188 -SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz
189 - -> ${P}.tar.gz"
190 -LICENSE="BSD"
191 -SLOT="0"
192 -KEYWORDS="~amd64 ~x86"
193 -IUSE="doc extension test"
194 -
195 -DEPEND="test? ( dev-php/phpunit )"
196 -
197 -# We always require *some* version of PHP; the eclass (conditionally)
198 -# requires *specific* versions.
199 -RDEPEND="dev-lang/php"
200 -
201 -src_prepare(){
202 - # We need to call eapply_user ourselves, because it may be skipped
203 - # if either the "extension" USE flag is not set, or if the user's
204 - # PHP_TARGETS is essentially empty (does not contain "php5-6"). In
205 - # the latter case, the eclass src_prepare does nothing. We only call
206 - # the eclass phase conditionally because the correct version of
207 - # e.g. "phpize" may not be there unless USE=extension is set.
208 - eapply_user
209 - use extension && php-ext-source-r3_src_prepare
210 -}
211 -
212 -src_configure() {
213 - # The eclass phase will try to run the ./configure script even if it
214 - # doesn't exist (in contrast to the default src_configure), so we
215 - # need to skip it if the eclass src_prepare (that creates said
216 - # script) is not run.
217 - use extension && php-ext-source-r3_src_configure
218 -}
219 -
220 -src_compile() {
221 - # Avoids the same problem as in src_configure.
222 - use extension && php-ext-source-r3_src_compile
223 -}
224 -
225 -src_install(){
226 - use extension && php-ext-source-r3_src_install
227 -
228 - cd "${S}" || die
229 - # The autoloader requires the 'T' in "Twig" capitalized.
230 - insinto "/usr/share/php/${MY_PN}/lib"
231 - doins -r lib/*
232 - insinto "/usr/share/php/${MY_PN}/src"
233 - doins -r src/*
234 - insinto "/usr/share/php/${MY_PN}"
235 - #dosym "lib/Autoloader.php" "/usr/share/php/${MY_PN}/Autoloader.php"
236 -
237 - # The eclass src_install calls einstalldocs, so we may install a few
238 - # files twice. Doing so should be harmless.
239 - dodoc README.rst CHANGELOG
240 -
241 - # This installs the reStructuredText source documents. There's got
242 - # to be some way to turn them into HTML using Sphinx, but upstream
243 - # doesn't provide for it.
244 - use doc && dodoc -r doc
245 -}
246 -
247 -src_test(){
248 - phpunit --bootstrap test/bootstrap.php || die "test suite failed"
249 -}
250 -
251 -pkg_postinst(){
252 - elog "${PN} has been installed in /usr/share/php/${MY_PN}/."
253 - elog "To use it in a script, require('${MY_PN}/Autoloader.php'),"
254 - elog "and then run \"Twig_Autoloader::register();\". Most of"
255 - elog "the examples in the documentation should work without"
256 - elog "further modification."
257 -}