1 |
commit: 9743051a9e723948215674eac1f2644c46f79d63 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 26 09:28:19 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 26 09:28:25 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9743051a |
7 |
|
8 |
dev-python/django: Security bump |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=566796 |
11 |
|
12 |
Package-Manager: portage-2.2.25 |
13 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
14 |
|
15 |
dev-python/django/Manifest | 2 + |
16 |
dev-python/django/django-1.7.11.ebuild | 105 ++++++++++++++++++++++++++++++++ |
17 |
dev-python/django/django-1.8.7.ebuild | 107 +++++++++++++++++++++++++++++++++ |
18 |
3 files changed, 214 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
21 |
index aea0f1d..afae027 100644 |
22 |
--- a/dev-python/django/Manifest |
23 |
+++ b/dev-python/django/Manifest |
24 |
@@ -2,5 +2,7 @@ DIST Django-1.4.22.tar.gz 7802249 SHA256 d0e2c9d772fcab2cf9c09e1c05e711cf5fe5eb9 |
25 |
DIST Django-1.5.12.tar.gz 8202839 SHA256 b3de77beb6e59b72071ca66f20c2ad34e1b90d39b0241e62c1f03c668ddd6ced SHA512 37736827618737c54e7b63f2376b915d8dc0cdaf1900a2f6c3c9e0edd69e50379f95e3b6a31c930efdca88793b6330e7226175af91951d8637e5db780bc9fd8d WHIRLPOOL a3d17e364b0f90ff3a059afbfb57fdb9988ad777048f3caa30244d7ae6b0c87f42e1e5af5bdcda8f09c713518e0fb2471e1e4da3a988f37e45e6bca7678ecafa |
26 |
DIST Django-1.6.11.tar.gz 6764000 SHA256 7e50e573e484435873b3515d7982d80093b2695aba17fd0ff024307454dc3a56 SHA512 de6024b49e0344bf153f73ec344180fb701e415e4f9c330118821744d0e579436cc265724f7ef7213c9551847022ba9570312633f317b9003db533d06deb9829 WHIRLPOOL 5de086952bda9449f85798e8fe3bac82f11e1b856c1d39e340399e71ca6bf183318eebf1f536714567036485637166a929082a1ba9d6c1816f07c53dcc12c72a |
27 |
DIST Django-1.7.10.tar.gz 7584312 SHA256 b9357d2cebe61997055d417d607f9c650e817cd1a383b9a1b88bf1edad797c75 SHA512 ef9c8f3f5db17474970805bd5a3956c65766362d883013c19d32cb0fcc795de74a831758d66d18103255e5c510b2ee384099f08e12d75c567caad2d80404cc20 WHIRLPOOL 380f05ff7f51dfc50f578f946b5b83ae36ab8a96a10ccce9c62642f5b2434c2ba9de2d1d9bc57859db003e4569fa0c3e118cf51cd80a9fe40c04c49fdf213999 |
28 |
+DIST Django-1.7.11.tar.gz 7586798 SHA256 2039144fce8f1b603d03fa5a5643578df1ad007c4ed41a617f02a3943f7059a1 SHA512 2e3415295ee6b590e366b09adb261baccb750519b9bcef1bb09bd52a2db705c8082bfc13440c621a5f41dd4f9bd626792eba4a572e78de3b7caf93c951c406ee WHIRLPOOL 8797862021c6acdfcba5752f6f5f2d567a564812fc5089678a9d00b9d8f1cb13c03bd0cb9b369b68ce1d1f1dc1522f05d41778f5181aef9c7d49783afc280e7c |
29 |
DIST Django-1.8.5.tar.gz 7270297 SHA256 2d174e4a3f54708d0d5b6ff1bf54ae71652e83bb06d7576b3b20d916b29c3653 SHA512 91a8788ec6a9f3592615da55948d080719425a2135e241e7b5014c6b9c354daa53c2caeadd9ac3d991730c8ef8fba579a0aa4f3094a1e83b0600811e9a3bd20b WHIRLPOOL af7037d853f6d9ea67df412589aab22113a8f4fb41c79d9f42e9b8fa0184b273a75815a558dddfeb8650f14532f77fc9585fc3c72912beaa152a932e667fcb06 |
30 |
DIST Django-1.8.6.tar.gz 7341303 SHA256 359d56f55a033a92831eab1f7ec47db3f9ad8e07f28ead9035d961886d54459a SHA512 bab5dbc83e73413b12aabc78e686d912775c881c9f9d4dee70bcec66782ae3a564019b0bbc62f8b3d4f642167f9e31c9083364debbe4b9c862be82e7ca654794 WHIRLPOOL 4a3e3b83be74b4b74fa6d27b58e5c3066a9d3179c05e507071072bde3bed6eef7e08fdf1f254af8e8ea485acfcbf78015daaa1615d34d2511ac22ad86dea984b |
31 |
+DIST Django-1.8.7.tar.gz 7276831 SHA256 17a66de5cf59b5ee81c3dc57609b145bb45adddc0dc06937b998597d6e7b4523 SHA512 74b89efd4fd2d19542a30e0fa0648652aa85ea309804afadae1162b1cac3492e599beaf5ea868d67bcef5f016283952dcc869726cbf6f15141f0816a0377b041 WHIRLPOOL adae3d00ceab8bb3e526107068270d53de968b782d5e37a64f59ecaf75e8933d3895dc6de5c934ea180c8436a88acb4949f7f4f8bba56c13c92d08874596c784 |
32 |
|
33 |
diff --git a/dev-python/django/django-1.7.11.ebuild b/dev-python/django/django-1.7.11.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..3a7c4ea |
36 |
--- /dev/null |
37 |
+++ b/dev-python/django/django-1.7.11.ebuild |
38 |
@@ -0,0 +1,105 @@ |
39 |
+# Copyright 1999-2015 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+# $Id$ |
42 |
+ |
43 |
+EAPI=5 |
44 |
+ |
45 |
+PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) |
46 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
47 |
+WEBAPP_NO_AUTO_INSTALL="yes" |
48 |
+ |
49 |
+inherit bash-completion-r1 distutils-r1 eutils versionator webapp |
50 |
+ |
51 |
+MY_P="Django-${PV}" |
52 |
+ |
53 |
+DESCRIPTION="High-level Python web framework" |
54 |
+HOMEPAGE="http://www.djangoproject.com/ https://pypi.python.org/pypi/Django" |
55 |
+SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz" |
56 |
+ |
57 |
+LICENSE="BSD" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
60 |
+IUSE="doc sqlite test" |
61 |
+ |
62 |
+RDEPEND="" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
65 |
+ doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) |
66 |
+ test? ( |
67 |
+ ${PYTHON_DEPS//sqlite?/sqlite} |
68 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
69 |
+ dev-python/numpy[$(python_gen_usedep 'python*')] |
70 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
71 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
72 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
73 |
+ )" |
74 |
+ |
75 |
+# dev-python/python-sqlparse[${PYTHON_USEDEP}] |
76 |
+# dev-python/bcrypt[${PYTHON_USEDEP}] |
77 |
+# dev-python/selenium[${PYTHON_USEDEP}] |
78 |
+# sci-libs/gdal[geos,${PYTHON_USEDEP}] |
79 |
+ |
80 |
+S="${WORKDIR}/${MY_P}" |
81 |
+ |
82 |
+WEBAPP_MANUAL_SLOT="yes" |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}"/${PN}-1.7.6-bashcomp.patch |
86 |
+) |
87 |
+ |
88 |
+pkg_setup() { |
89 |
+ webapp_pkg_setup |
90 |
+} |
91 |
+ |
92 |
+python_prepare_all() { |
93 |
+ # Prevent d'loading in the doc build |
94 |
+ sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die |
95 |
+ |
96 |
+ distutils-r1_python_prepare_all |
97 |
+} |
98 |
+ |
99 |
+python_compile_all() { |
100 |
+ use doc && emake -C docs html |
101 |
+} |
102 |
+ |
103 |
+python_test() { |
104 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
105 |
+ # and don't work with ${BUILD_DIR}/lib. |
106 |
+ PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ |
107 |
+ || die "Tests fail with ${EPYTHON}" |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ distutils-r1_src_install |
112 |
+ webapp_src_install |
113 |
+ |
114 |
+ elog "Additional Backend support can be enabled via" |
115 |
+ optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python |
116 |
+ optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient |
117 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
118 |
+ optfeature "GEO Django" sci-libs/gdal[geos] |
119 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
120 |
+ optfeature "ImageField Support" dev-python/pillow |
121 |
+ echo "" |
122 |
+} |
123 |
+ |
124 |
+python_install_all() { |
125 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
126 |
+ bashcomp_alias ${PN}-admin django-admin.py |
127 |
+ |
128 |
+ if use doc; then |
129 |
+ rm -fr docs/_build/html/_sources || die |
130 |
+ local HTML_DOCS=( docs/_build/html/. ) |
131 |
+ fi |
132 |
+ |
133 |
+ insinto "${MY_HTDOCSDIR#${EPREFIX}}" |
134 |
+ doins -r django/contrib/admin/static/admin/. |
135 |
+ distutils-r1_python_install_all |
136 |
+} |
137 |
+ |
138 |
+pkg_postinst() { |
139 |
+ elog "A copy of the admin media is available to webapp-config for installation in a" |
140 |
+ elog "webroot, as well as the traditional location in python's site-packages dir" |
141 |
+ elog "for easy development." |
142 |
+ webapp_pkg_postinst |
143 |
+} |
144 |
|
145 |
diff --git a/dev-python/django/django-1.8.7.ebuild b/dev-python/django/django-1.8.7.ebuild |
146 |
new file mode 100644 |
147 |
index 0000000..9225bd9 |
148 |
--- /dev/null |
149 |
+++ b/dev-python/django/django-1.8.7.ebuild |
150 |
@@ -0,0 +1,107 @@ |
151 |
+# Copyright 1999-2015 Gentoo Foundation |
152 |
+# Distributed under the terms of the GNU General Public License v2 |
153 |
+# $Id$ |
154 |
+ |
155 |
+EAPI=5 |
156 |
+ |
157 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) |
158 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
159 |
+WEBAPP_NO_AUTO_INSTALL="yes" |
160 |
+ |
161 |
+inherit bash-completion-r1 distutils-r1 eutils versionator webapp |
162 |
+ |
163 |
+MY_PN="Django" |
164 |
+MY_P="${MY_PN}-${PV}" |
165 |
+ |
166 |
+DESCRIPTION="High-level Python web framework" |
167 |
+HOMEPAGE="http://www.djangoproject.com/ https://pypi.python.org/pypi/Django" |
168 |
+SRC_URI=" |
169 |
+ https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz |
170 |
+ mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz |
171 |
+ " |
172 |
+ |
173 |
+LICENSE="BSD" |
174 |
+SLOT="0" |
175 |
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
176 |
+IUSE="doc sqlite test" |
177 |
+ |
178 |
+RDEPEND="" |
179 |
+DEPEND="${RDEPEND} |
180 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
181 |
+ doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) |
182 |
+ test? ( |
183 |
+ ${PYTHON_DEPS//sqlite?/sqlite} |
184 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
185 |
+ dev-python/numpy[$(python_gen_usedep 'python*')] |
186 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
187 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
188 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
189 |
+ )" |
190 |
+ |
191 |
+S="${WORKDIR}/${MY_P}" |
192 |
+ |
193 |
+WEBAPP_MANUAL_SLOT="yes" |
194 |
+ |
195 |
+PATCHES=( |
196 |
+ "${FILESDIR}"/${PN}-1.7.6-bashcomp.patch |
197 |
+) |
198 |
+ |
199 |
+pkg_setup() { |
200 |
+ webapp_pkg_setup |
201 |
+} |
202 |
+ |
203 |
+python_prepare_all() { |
204 |
+ # Prevent d'loading in the doc build |
205 |
+ sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die |
206 |
+ |
207 |
+ distutils-r1_python_prepare_all |
208 |
+} |
209 |
+ |
210 |
+python_compile_all() { |
211 |
+ use doc && emake -C docs html |
212 |
+} |
213 |
+ |
214 |
+python_test() { |
215 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
216 |
+ # and don't work with ${BUILD_DIR}/lib. |
217 |
+ PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ |
218 |
+ || die "Tests fail with ${EPYTHON}" |
219 |
+} |
220 |
+ |
221 |
+python_install_all() { |
222 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
223 |
+ bashcomp_alias ${PN}-admin django-admin.py |
224 |
+ |
225 |
+ if use doc; then |
226 |
+ rm -fr docs/_build/html/_sources || die |
227 |
+ local HTML_DOCS=( docs/_build/html/. ) |
228 |
+ fi |
229 |
+ |
230 |
+ insinto "${MY_HTDOCSDIR#${EPREFIX}}" |
231 |
+ doins -r django/contrib/admin/static/admin/. |
232 |
+ distutils-r1_python_install_all |
233 |
+} |
234 |
+ |
235 |
+src_install() { |
236 |
+ distutils-r1_src_install |
237 |
+ webapp_src_install |
238 |
+} |
239 |
+ |
240 |
+pkg_postinst() { |
241 |
+ elog "Additional Backend support can be enabled via" |
242 |
+ optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python |
243 |
+ optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient |
244 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
245 |
+ echo "" |
246 |
+ elog "Other features can be enhanced by" |
247 |
+ optfeature "GEO Django" sci-libs/gdal[geos] |
248 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
249 |
+ optfeature "ImageField Support" dev-python/pillow |
250 |
+ optfeature "Password encryption" dev-python/bcrypt |
251 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
252 |
+ echo "" |
253 |
+ elog "A copy of the admin media is available to webapp-config for installation in a" |
254 |
+ elog "webroot, as well as the traditional location in python's site-packages dir" |
255 |
+ elog "for easy development." |
256 |
+ webapp_pkg_postinst |
257 |
+} |