1 |
commit: 808ff6442675786f11f915b238916bd327630862 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 1 15:40:20 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 1 16:12:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=808ff644 |
7 |
|
8 |
dev-python/django: bump to 1.11.16 |
9 |
|
10 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
11 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
12 |
|
13 |
dev-python/django/Manifest | 1 + |
14 |
dev-python/django/django-1.11.16.ebuild | 112 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 113 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
18 |
index 00cc24e8b76..e9b35c1ccfe 100644 |
19 |
--- a/dev-python/django/Manifest |
20 |
+++ b/dev-python/django/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST Django-1.11.15.tar.gz 7843843 BLAKE2B b7713de8136302d8d95929ed449ab01173e28c0d5d20529eaae9d6bd6d323f53b674a4fb6e8398da4b57a223f10ef63e7961accc8fd777313f18b4e2b0f225ed SHA512 4ea18c59f7c74d0b6deb9d292d5de068c6dcc53d9596f321f5a7e823ff5fe423cc8d69c88bf53e3acd9c36c4ecc4447148243a127d5114a4894b0fd4d449f37e |
23 |
+DIST Django-1.11.16.tar.gz 7852514 BLAKE2B a881caa6c31c80d6b0146cb49a08ba63ebfba21637747328adb8ec3afada2182b72c46576a79cc9e163546e5b980a2be516d842492517319deb0a4f5512ad605 SHA512 bf1329ac364c9037fd6cecd0e8565c8bd8d830343671f9ce5415a10e70da37256667675b3f97e4d2508a8a912fa7a06ca7f585586ac18e6734c939bc41a8b455 |
24 |
DIST Django-2.0.8.tar.gz 7987343 BLAKE2B ab35f50ce1911cb9603c7ac85e7ab01e6019ce9a2dac4cd733b11f35722368946ff3a130c3c791da4d49cf609b5747b4c5de64e29e27a8e12abb7f9e29cd363b SHA512 ac3cc3f58cb977518c6f549834beb35677c2d5541cfb5723045b98165926e826178cb33737c52a0f999be24bc38b84dde489a5f91d1c8d51b8338aa611acb518 |
25 |
DIST Django-2.0.9.tar.gz 7992507 BLAKE2B c6f1d79401007d2c83553e885d5e32c7890b3f1ed53c948ea4c55cc2a0272c06d0b7fdafef7be5042ab26b3f8c3ffef64f6f01f49d6e615503f8bfad99b66c3a SHA512 7a766ce0240b19a18dc5a9a4682630c4ce90fa6ed0d02a97303088a990d09e097b609220f4e2806854585724f483cb2ae7e4f29bfd1898f3a0d6e758c2f4ea4a |
26 |
DIST Django-2.1.1.tar.gz 8595422 BLAKE2B b4d46162b8a48ada2e1321e6731afdfac8c6acbc394991178c33a374ea2d61d0b1f91ede6a56f9e88d20ba2ddbe6910fe452f79fc6cfb342fddc6222c454dad1 SHA512 e29180097cda0de35eb3dac77b7f7f3f31771257b9bfcd6d3fd37d421c572e1226bb1760635ccedee357cee7ca3dcb302de6126a771007a2cdef82970a596813 |
27 |
|
28 |
diff --git a/dev-python/django/django-1.11.16.ebuild b/dev-python/django/django-1.11.16.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..802b7b5468c |
31 |
--- /dev/null |
32 |
+++ b/dev-python/django/django-1.11.16.ebuild |
33 |
@@ -0,0 +1,112 @@ |
34 |
+# Copyright 1999-2018 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
40 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
41 |
+WEBAPP_NO_AUTO_INSTALL="yes" |
42 |
+ |
43 |
+inherit bash-completion-r1 distutils-r1 eutils eapi7-ver webapp |
44 |
+ |
45 |
+MY_PN="Django" |
46 |
+MY_P="${MY_PN}-${PV}" |
47 |
+ |
48 |
+DESCRIPTION="High-level Python web framework" |
49 |
+HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" |
50 |
+SRC_URI=" |
51 |
+ https://www.djangoproject.com/m/releases/$(ver_cut 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 |
+# admin fonts: Roboto (media-fonts/roboto) |
57 |
+LICENSE+=" Apache-2.0" |
58 |
+# admin icons, jquery, xregexp.js |
59 |
+LICENSE+=" MIT" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
62 |
+IUSE="doc sqlite test" |
63 |
+ |
64 |
+RDEPEND="" |
65 |
+DEPEND="${RDEPEND} |
66 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
67 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
68 |
+ doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) |
69 |
+ test? ( |
70 |
+ $(python_gen_impl_dep sqlite) |
71 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
72 |
+ dev-python/numpy[$(python_gen_usedep 'python*')] |
73 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
74 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
75 |
+ dev-python/mock[${PYTHON_USEDEP}] |
76 |
+ virtual/python-enum34[${PYTHON_USEDEP}] |
77 |
+ )" |
78 |
+ |
79 |
+S="${WORKDIR}/${MY_P}" |
80 |
+ |
81 |
+WEBAPP_MANUAL_SLOT="yes" |
82 |
+ |
83 |
+PATCHES=( |
84 |
+ "${FILESDIR}"/${PN}-1.9-bashcomp.patch |
85 |
+) |
86 |
+ |
87 |
+pkg_setup() { |
88 |
+ webapp_pkg_setup |
89 |
+} |
90 |
+ |
91 |
+python_prepare_all() { |
92 |
+ # Prevent d'loading in the doc build |
93 |
+ sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die |
94 |
+ |
95 |
+ distutils-r1_python_prepare_all |
96 |
+} |
97 |
+ |
98 |
+python_compile_all() { |
99 |
+ use doc && emake -C docs html |
100 |
+} |
101 |
+ |
102 |
+python_test() { |
103 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
104 |
+ # and don't work with ${BUILD_DIR}/lib. |
105 |
+ PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 --parallel 1 \ |
106 |
+ || die "Tests fail with ${EPYTHON}" |
107 |
+} |
108 |
+ |
109 |
+python_install_all() { |
110 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
111 |
+ bashcomp_alias ${PN}-admin django-admin.py |
112 |
+ |
113 |
+ if use doc; then |
114 |
+ rm -fr docs/_build/html/_sources || die |
115 |
+ local HTML_DOCS=( docs/_build/html/. ) |
116 |
+ fi |
117 |
+ |
118 |
+ insinto "${MY_HTDOCSDIR#${EPREFIX}}" |
119 |
+ doins -r django/contrib/admin/static/admin/. |
120 |
+ distutils-r1_python_install_all |
121 |
+} |
122 |
+ |
123 |
+src_install() { |
124 |
+ distutils-r1_src_install |
125 |
+ webapp_src_install |
126 |
+} |
127 |
+ |
128 |
+pkg_postinst() { |
129 |
+ elog "Additional Backend support can be enabled via" |
130 |
+ optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python |
131 |
+ optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient |
132 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
133 |
+ echo "" |
134 |
+ elog "Other features can be enhanced by" |
135 |
+ optfeature "GEO Django" sci-libs/gdal[geos] |
136 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
137 |
+ optfeature "ImageField Support" dev-python/pillow |
138 |
+ optfeature "Password encryption" dev-python/bcrypt |
139 |
+ optfeature "High-level abstractions for Django forms" dev-python/django-formtools |
140 |
+ echo "" |
141 |
+ elog "A copy of the admin media is available to webapp-config for installation in a" |
142 |
+ elog "webroot, as well as the traditional location in python's site-packages dir" |
143 |
+ elog "for easy development." |
144 |
+ webapp_pkg_postinst |
145 |
+} |