1 |
commit: fbfc7330bf19313e2aa121d786a2cfdbb4e8c12e |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 8 20:00:23 2019 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 8 20:00:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbfc7330 |
7 |
|
8 |
dev-php/twig: clean up vulnerable versions |
9 |
|
10 |
Signed-off-by: Dirkjan Ochtman <djc <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
dev-php/twig/Manifest | 2 - |
14 |
dev-php/twig/twig-1.31.0.ebuild | 82 ----------------------------------------- |
15 |
dev-php/twig/twig-1.35.3.ebuild | 82 ----------------------------------------- |
16 |
3 files changed, 166 deletions(-) |
17 |
|
18 |
diff --git a/dev-php/twig/Manifest b/dev-php/twig/Manifest |
19 |
index 1650929d3b1..2d9b40a94e2 100644 |
20 |
--- a/dev-php/twig/Manifest |
21 |
+++ b/dev-php/twig/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST twig-1.31.0.tar.gz 242247 BLAKE2B f11195b235c5dd8cda5373394d94306c81810d46c155194cc11bfcb832778b03085bf05de10b636ebda9223876ab9b752214e8676c000578c702f6d9b832ffe1 SHA512 c8c25139b2568d40c9d1b14d8f489047abe13b1598c9d3292ddd3898a685ac69ede00a516c12c4f22805314fca4712991cd27e39dd9c4f57e5576f86e2746401 |
24 |
-DIST twig-1.35.3.tar.gz 256758 BLAKE2B e96f6651fddd2fab3a1d379a2996ded594942bcb511548d419a56e8e4cc6c6b30e6a0a96b44211351ce9b3d2f36cde6b1c85acd46e51d5c2e19793703fccecc4 SHA512 c27d4407b5ad0e51724599fe0371a5951e8a8654df443ca6ac817a9c6958c3235b4d56a396eeceb71eaf707887420a6beace10ca42f1c09882988039c932fe7b |
25 |
DIST twig-1.40.1.tar.gz 274081 BLAKE2B 0e73bd9fff58677446ba03ed560bff17c1879192b79cca9f718ccd330e1eac64ee1195d7034fa52ec009e323868d1cc1bedc182e90f0a77c8b54d6aa16022554 SHA512 de174e5dd14562a155515a3238aa07ef5a22c3bf0eff8ecc320f1a972e56f1ec759a53ee24579c6434e286b3775044e88c753fd08930037314b45c9577b310b1 |
26 |
|
27 |
diff --git a/dev-php/twig/twig-1.31.0.ebuild b/dev-php/twig/twig-1.31.0.ebuild |
28 |
deleted file mode 100644 |
29 |
index 7e678f068e6..00000000000 |
30 |
--- a/dev-php/twig/twig-1.31.0.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,82 +0,0 @@ |
33 |
-# Copyright 1999-2017 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
- |
38 |
-MY_PN="Twig" |
39 |
-USE_PHP="php5-6" |
40 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
41 |
-PHP_EXT_S="${S}/ext/${PN}" |
42 |
-PHP_EXT_NAME="${PN}" |
43 |
-PHP_EXT_OPTIONAL_USE="extension" |
44 |
- |
45 |
-inherit php-ext-source-r3 |
46 |
- |
47 |
-DESCRIPTION="PHP templating engine with syntax similar to Django" |
48 |
-HOMEPAGE="http://twig.sensiolabs.org/" |
49 |
-SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz |
50 |
- -> ${P}.tar.gz" |
51 |
-LICENSE="BSD" |
52 |
-SLOT="0" |
53 |
-KEYWORDS="~amd64 ~x86" |
54 |
-IUSE="doc extension test" |
55 |
- |
56 |
-DEPEND="test? ( dev-php/phpunit )" |
57 |
- |
58 |
-# We always require *some* version of PHP; the eclass (conditionally) |
59 |
-# requires *specific* versions. |
60 |
-RDEPEND="dev-lang/php" |
61 |
- |
62 |
-src_prepare(){ |
63 |
- # We need to call eapply_user ourselves, because it may be skipped |
64 |
- # if either the "extension" USE flag is not set, or if the user's |
65 |
- # PHP_TARGETS is essentially empty (does not contain "php5-6"). In |
66 |
- # the latter case, the eclass src_prepare does nothing. We only call |
67 |
- # the eclass phase conditionally because the correct version of |
68 |
- # e.g. "phpize" may not be there unless USE=extension is set. |
69 |
- eapply_user |
70 |
- use extension && php-ext-source-r3_src_prepare |
71 |
-} |
72 |
- |
73 |
-src_configure() { |
74 |
- # The eclass phase will try to run the ./configure script even if it |
75 |
- # doesn't exist (in contrast to the default src_configure), so we |
76 |
- # need to skip it if the eclass src_prepare (that creates said |
77 |
- # script) is not run. |
78 |
- use extension && php-ext-source-r3_src_configure |
79 |
-} |
80 |
- |
81 |
-src_compile() { |
82 |
- # Avoids the same problem as in src_configure. |
83 |
- use extension && php-ext-source-r3_src_compile |
84 |
-} |
85 |
- |
86 |
-src_install(){ |
87 |
- use extension && php-ext-source-r3_src_install |
88 |
- |
89 |
- cd "${S}" || die |
90 |
- # The autoloader requires the 'T' in "Twig" capitalized. |
91 |
- insinto "/usr/share/php/${MY_PN}" |
92 |
- doins -r lib/"${MY_PN}"/* |
93 |
- |
94 |
- # The eclass src_install calls einstalldocs, so we may install a few |
95 |
- # files twice. Doing so should be harmless. |
96 |
- dodoc README.rst CHANGELOG |
97 |
- |
98 |
- # This installs the reStructuredText source documents. There's got |
99 |
- # to be some way to turn them into HTML using Sphinx, but upstream |
100 |
- # doesn't provide for it. |
101 |
- use doc && dodoc -r doc |
102 |
-} |
103 |
- |
104 |
-src_test(){ |
105 |
- phpunit --bootstrap test/bootstrap.php || die "test suite failed" |
106 |
-} |
107 |
- |
108 |
-pkg_postinst(){ |
109 |
- elog "${PN} has been installed in /usr/share/php/${MY_PN}/." |
110 |
- elog "To use it in a script, require('${MY_PN}/Autoloader.php')," |
111 |
- elog "and then run \"Twig_Autoloader::register();\". Most of" |
112 |
- elog "the examples in the documentation should work without" |
113 |
- elog "further modification." |
114 |
-} |
115 |
|
116 |
diff --git a/dev-php/twig/twig-1.35.3.ebuild b/dev-php/twig/twig-1.35.3.ebuild |
117 |
deleted file mode 100644 |
118 |
index b4bbd806de7..00000000000 |
119 |
--- a/dev-php/twig/twig-1.35.3.ebuild |
120 |
+++ /dev/null |
121 |
@@ -1,82 +0,0 @@ |
122 |
-# Copyright 1999-2018 Gentoo Foundation |
123 |
-# Distributed under the terms of the GNU General Public License v2 |
124 |
- |
125 |
-EAPI=6 |
126 |
- |
127 |
-MY_PN="Twig" |
128 |
-USE_PHP="php5-6" |
129 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
130 |
-PHP_EXT_S="${S}/ext/${PN}" |
131 |
-PHP_EXT_NAME="${PN}" |
132 |
-PHP_EXT_OPTIONAL_USE="extension" |
133 |
- |
134 |
-inherit php-ext-source-r3 |
135 |
- |
136 |
-DESCRIPTION="PHP templating engine with syntax similar to Django" |
137 |
-HOMEPAGE="http://twig.sensiolabs.org/" |
138 |
-SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz |
139 |
- -> ${P}.tar.gz" |
140 |
-LICENSE="BSD" |
141 |
-SLOT="0" |
142 |
-KEYWORDS="~amd64 ~x86" |
143 |
-IUSE="doc extension test" |
144 |
- |
145 |
-DEPEND="test? ( dev-php/phpunit )" |
146 |
- |
147 |
-# We always require *some* version of PHP; the eclass (conditionally) |
148 |
-# requires *specific* versions. |
149 |
-RDEPEND="dev-lang/php" |
150 |
- |
151 |
-src_prepare(){ |
152 |
- # We need to call eapply_user ourselves, because it may be skipped |
153 |
- # if either the "extension" USE flag is not set, or if the user's |
154 |
- # PHP_TARGETS is essentially empty (does not contain "php5-6"). In |
155 |
- # the latter case, the eclass src_prepare does nothing. We only call |
156 |
- # the eclass phase conditionally because the correct version of |
157 |
- # e.g. "phpize" may not be there unless USE=extension is set. |
158 |
- eapply_user |
159 |
- use extension && php-ext-source-r3_src_prepare |
160 |
-} |
161 |
- |
162 |
-src_configure() { |
163 |
- # The eclass phase will try to run the ./configure script even if it |
164 |
- # doesn't exist (in contrast to the default src_configure), so we |
165 |
- # need to skip it if the eclass src_prepare (that creates said |
166 |
- # script) is not run. |
167 |
- use extension && php-ext-source-r3_src_configure |
168 |
-} |
169 |
- |
170 |
-src_compile() { |
171 |
- # Avoids the same problem as in src_configure. |
172 |
- use extension && php-ext-source-r3_src_compile |
173 |
-} |
174 |
- |
175 |
-src_install(){ |
176 |
- use extension && php-ext-source-r3_src_install |
177 |
- |
178 |
- cd "${S}" || die |
179 |
- # The autoloader requires the 'T' in "Twig" capitalized. |
180 |
- insinto "/usr/share/php/${MY_PN}" |
181 |
- doins -r lib/"${MY_PN}"/* |
182 |
- |
183 |
- # The eclass src_install calls einstalldocs, so we may install a few |
184 |
- # files twice. Doing so should be harmless. |
185 |
- dodoc README.rst CHANGELOG |
186 |
- |
187 |
- # This installs the reStructuredText source documents. There's got |
188 |
- # to be some way to turn them into HTML using Sphinx, but upstream |
189 |
- # doesn't provide for it. |
190 |
- use doc && dodoc -r doc |
191 |
-} |
192 |
- |
193 |
-src_test(){ |
194 |
- phpunit --bootstrap test/bootstrap.php || die "test suite failed" |
195 |
-} |
196 |
- |
197 |
-pkg_postinst(){ |
198 |
- elog "${PN} has been installed in /usr/share/php/${MY_PN}/." |
199 |
- elog "To use it in a script, require('${MY_PN}/Autoloader.php')," |
200 |
- elog "and then run \"Twig_Autoloader::register();\". Most of" |
201 |
- elog "the examples in the documentation should work without" |
202 |
- elog "further modification." |
203 |
-} |