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