1 |
commit: f9e1b0d1ab39aead618bddb0f87181974ff91fd0 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 5 10:17:52 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 5 10:18:44 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9e1b0d1 |
7 |
|
8 |
dev-python/django: Version Bump |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/django/Manifest | 1 + |
14 |
dev-python/django/django-1.8.6.ebuild | 107 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 108 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
18 |
index cf99be6..aea0f1d 100644 |
19 |
--- a/dev-python/django/Manifest |
20 |
+++ b/dev-python/django/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST Django-1.5.12.tar.gz 8202839 SHA256 b3de77beb6e59b72071ca66f20c2ad34e1b90d3 |
22 |
DIST Django-1.6.11.tar.gz 6764000 SHA256 7e50e573e484435873b3515d7982d80093b2695aba17fd0ff024307454dc3a56 SHA512 de6024b49e0344bf153f73ec344180fb701e415e4f9c330118821744d0e579436cc265724f7ef7213c9551847022ba9570312633f317b9003db533d06deb9829 WHIRLPOOL 5de086952bda9449f85798e8fe3bac82f11e1b856c1d39e340399e71ca6bf183318eebf1f536714567036485637166a929082a1ba9d6c1816f07c53dcc12c72a |
23 |
DIST Django-1.7.10.tar.gz 7584312 SHA256 b9357d2cebe61997055d417d607f9c650e817cd1a383b9a1b88bf1edad797c75 SHA512 ef9c8f3f5db17474970805bd5a3956c65766362d883013c19d32cb0fcc795de74a831758d66d18103255e5c510b2ee384099f08e12d75c567caad2d80404cc20 WHIRLPOOL 380f05ff7f51dfc50f578f946b5b83ae36ab8a96a10ccce9c62642f5b2434c2ba9de2d1d9bc57859db003e4569fa0c3e118cf51cd80a9fe40c04c49fdf213999 |
24 |
DIST Django-1.8.5.tar.gz 7270297 SHA256 2d174e4a3f54708d0d5b6ff1bf54ae71652e83bb06d7576b3b20d916b29c3653 SHA512 91a8788ec6a9f3592615da55948d080719425a2135e241e7b5014c6b9c354daa53c2caeadd9ac3d991730c8ef8fba579a0aa4f3094a1e83b0600811e9a3bd20b WHIRLPOOL af7037d853f6d9ea67df412589aab22113a8f4fb41c79d9f42e9b8fa0184b273a75815a558dddfeb8650f14532f77fc9585fc3c72912beaa152a932e667fcb06 |
25 |
+DIST Django-1.8.6.tar.gz 7341303 SHA256 359d56f55a033a92831eab1f7ec47db3f9ad8e07f28ead9035d961886d54459a SHA512 bab5dbc83e73413b12aabc78e686d912775c881c9f9d4dee70bcec66782ae3a564019b0bbc62f8b3d4f642167f9e31c9083364debbe4b9c862be82e7ca654794 WHIRLPOOL 4a3e3b83be74b4b74fa6d27b58e5c3066a9d3179c05e507071072bde3bed6eef7e08fdf1f254af8e8ea485acfcbf78015daaa1615d34d2511ac22ad86dea984b |
26 |
|
27 |
diff --git a/dev-python/django/django-1.8.6.ebuild b/dev-python/django/django-1.8.6.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..4a89c43 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/django/django-1.8.6.ebuild |
32 |
@@ -0,0 +1,107 @@ |
33 |
+# Copyright 1999-2015 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) |
40 |
+PYTHON_REQ_USE='sqlite?' |
41 |
+WEBAPP_NO_AUTO_INSTALL="yes" |
42 |
+ |
43 |
+inherit bash-completion-r1 distutils-r1 eutils versionator webapp |
44 |
+ |
45 |
+MY_PN="Django" |
46 |
+MY_P="${MY_PN}-${PV}" |
47 |
+ |
48 |
+DESCRIPTION="High-level Python web framework" |
49 |
+HOMEPAGE="http://www.djangoproject.com/ https://pypi.python.org/pypi/Django" |
50 |
+SRC_URI=" |
51 |
+ https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz |
52 |
+ mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz |
53 |
+ " |
54 |
+ |
55 |
+LICENSE="BSD" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
58 |
+IUSE="doc sqlite test" |
59 |
+ |
60 |
+RDEPEND="" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) |
64 |
+ test? ( |
65 |
+ ${PYTHON_DEPS//sqlite?/sqlite} |
66 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
67 |
+ dev-python/numpy[$(python_gen_usedep 'python*')] |
68 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
69 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
70 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
71 |
+ )" |
72 |
+ |
73 |
+S="${WORKDIR}/${MY_P}" |
74 |
+ |
75 |
+WEBAPP_MANUAL_SLOT="yes" |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}"/${PN}-1.7.6-bashcomp.patch |
79 |
+) |
80 |
+ |
81 |
+pkg_setup() { |
82 |
+ webapp_pkg_setup |
83 |
+} |
84 |
+ |
85 |
+python_prepare_all() { |
86 |
+ # Prevent d'loading in the doc build |
87 |
+ sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die |
88 |
+ |
89 |
+ distutils-r1_python_prepare_all |
90 |
+} |
91 |
+ |
92 |
+python_compile_all() { |
93 |
+ use doc && emake -C docs html |
94 |
+} |
95 |
+ |
96 |
+python_test() { |
97 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
98 |
+ # and don't work with ${BUILD_DIR}/lib. |
99 |
+ PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ |
100 |
+ || die "Tests fail with ${EPYTHON}" |
101 |
+} |
102 |
+ |
103 |
+python_install_all() { |
104 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
105 |
+ bashcomp_alias ${PN}-admin django-admin.py |
106 |
+ |
107 |
+ if use doc; then |
108 |
+ rm -fr docs/_build/html/_sources || die |
109 |
+ local HTML_DOCS=( docs/_build/html/. ) |
110 |
+ fi |
111 |
+ |
112 |
+ insinto "${MY_HTDOCSDIR#${EPREFIX}}" |
113 |
+ doins -r django/contrib/admin/static/admin/. |
114 |
+ distutils-r1_python_install_all |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ distutils-r1_src_install |
119 |
+ webapp_src_install |
120 |
+} |
121 |
+ |
122 |
+pkg_postinst() { |
123 |
+ elog "Additional Backend support can be enabled via" |
124 |
+ optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python |
125 |
+ optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient |
126 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
127 |
+ echo "" |
128 |
+ elog "Other features can be enhanced by" |
129 |
+ optfeature "GEO Django" sci-libs/gdal[geos] |
130 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
131 |
+ optfeature "ImageField Support" virtual/python-imaging |
132 |
+ optfeature "Password encryption" dev-python/bcrypt |
133 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
134 |
+ echo "" |
135 |
+ elog "A copy of the admin media is available to webapp-config for installation in a" |
136 |
+ elog "webroot, as well as the traditional location in python's site-packages dir" |
137 |
+ elog "for easy development." |
138 |
+ webapp_pkg_postinst |
139 |
+} |