1 |
commit: 350c82f7517ecf93de109c3a270368f07027a4e1 |
2 |
Author: Hans de Graaff <hans <AT> degraaff <DOT> org> |
3 |
AuthorDate: Fri Sep 30 06:27:45 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 06:27:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=350c82f7 |
7 |
|
8 |
dev-python/django: add 1.6.11.4 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/django/Manifest | 1 + |
13 |
dev-python/django/django-1.6.11.4.ebuild | 109 +++++++++++++++++++++++++++++++ |
14 |
dev-python/django/metadata.xml | 2 +- |
15 |
3 files changed, 111 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest |
18 |
index 80d908e..c58e63d 100644 |
19 |
--- a/dev-python/django/Manifest |
20 |
+++ b/dev-python/django/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST Django-1.6.11.3.tar.gz 6665419 SHA256 49161983509d84668ed9972db15d89d455a7bb79bb93290749f087f08923eaaf SHA512 350356fa3f3c73ea1dfec77c71f8947869e57d683b4a4edd8f5b7ed71bb63db5ce569d8b7132ea6c160493005cce6fa3f97b0c7c60e88e3887cec516e25e03d1 WHIRLPOOL f06b866e50e7b7471369a76cb559a841cf7a55bf14a597e4793853d152a352f285be35f2135ab80a3c39c752726d1504f6a1f4b8f72d1fcf454d1f998c6c7f32 |
23 |
+DIST Django-1.6.11.4.tar.gz 6666909 SHA256 2b45d4bdc93076519eb027730ac5f8f5d06f39b5170a9fe27bce5e6f328269b1 SHA512 b774740b6ee41bd0fb8c7a06b88c1f5848ab5a27b64d0efbfe104b06f1a173db6c2f1a4d2152283251aab2a4f4748430c80cf1bf5f3c81a382cdd4f4313c01d1 WHIRLPOOL 327f3c1c949ad770614a5d958c5679bc5b5d0cb07da624796d804382755652ce2232280dcb69ea7492e1eef34ff3db5f6ca67c97fb9a450b12233adfef9a60e5 |
24 |
|
25 |
diff --git a/dev-python/django/django-1.6.11.4.ebuild b/dev-python/django/django-1.6.11.4.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..492521a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/django/django-1.6.11.4.ebuild |
30 |
@@ -0,0 +1,109 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) |
38 |
+ |
39 |
+PYTHON_REQ_USE='sqlite?,threads(+)' |
40 |
+WEBAPP_NO_AUTO_INSTALL="yes" |
41 |
+ |
42 |
+inherit bash-completion-r1 distutils-r1 eutils versionator webapp |
43 |
+ |
44 |
+MY_P="Django-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="High-level Python web framework" |
47 |
+HOMEPAGE="http://www.djangoproject.com/ https://pypi.python.org/pypi/Django" |
48 |
+#SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz" |
49 |
+SRC_URI="https://downloads.reviewboard.org/releases/Django/1.6/${MY_P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="doc sqlite test" |
55 |
+ |
56 |
+RDEPEND="" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] ) |
60 |
+ test? ( |
61 |
+ ${PYTHON_DEPS//sqlite?/sqlite} |
62 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
63 |
+ <dev-python/numpy-1.9[$(python_gen_usedep 'python*')] |
64 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
65 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
67 |
+ )" |
68 |
+ |
69 |
+# dev-python/bcrypt[${PYTHON_USEDEP}] |
70 |
+# dev-python/selenium[${PYTHON_USEDEP}] |
71 |
+ |
72 |
+S="${WORKDIR}/${MY_P}" |
73 |
+ |
74 |
+WEBAPP_MANUAL_SLOT="yes" |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/${PN}-1.5-py3tests.patch |
78 |
+ "${FILESDIR}"/${PN}-1.6-objects.patch |
79 |
+ "${FILESDIR}"/${PN}-1.6.10-bashcomp.patch |
80 |
+) |
81 |
+ |
82 |
+pkg_setup() { |
83 |
+ webapp_pkg_setup |
84 |
+} |
85 |
+ |
86 |
+python_prepare_all() { |
87 |
+ # Disable tests requiring network connection. |
88 |
+ sed \ |
89 |
+ -e "s:test_sensitive_cookie_not_cached:_&:g" \ |
90 |
+ -i tests/cache/tests.py || die |
91 |
+ |
92 |
+ distutils-r1_python_prepare_all |
93 |
+} |
94 |
+python_compile_all() { |
95 |
+ use doc && emake -C docs html |
96 |
+} |
97 |
+ |
98 |
+python_test() { |
99 |
+ # Tests have non-standard assumptions about PYTHONPATH, |
100 |
+ # and don't work with ${BUILD_DIR}/lib. |
101 |
+ PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \ |
102 |
+ || die "Tests fail with ${EPYTHON}" |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ distutils-r1_src_install |
107 |
+ webapp_src_install |
108 |
+ |
109 |
+ elog "Additional Backend support can be enabled via" |
110 |
+ optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python |
111 |
+ optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysql-connector-python |
112 |
+ optfeature "PostgreSQL backend support" dev-python/psycopg:2 |
113 |
+ optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached |
114 |
+ optfeature "ImageField Support" dev-python/pillow |
115 |
+ echo "" |
116 |
+ |
117 |
+ ewarn "This an unofficial Django security release by the reviewboard team" |
118 |
+} |
119 |
+ |
120 |
+python_install_all() { |
121 |
+ newbashcomp extras/django_bash_completion ${PN}-admin |
122 |
+ bashcomp_alias ${PN}-admin django-admin.py |
123 |
+ |
124 |
+ if use doc; then |
125 |
+ rm -fr docs/_build/html/_sources || die |
126 |
+ local HTML_DOCS=( docs/_build/html/. ) |
127 |
+ fi |
128 |
+ |
129 |
+ insinto "${MY_HTDOCSDIR#${EPREFIX}}" |
130 |
+ doins -r django/contrib/admin/static/admin/. |
131 |
+ distutils-r1_python_install_all |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
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 |
+} |
140 |
|
141 |
diff --git a/dev-python/django/metadata.xml b/dev-python/django/metadata.xml |
142 |
index f977299..bd70e45 100644 |
143 |
--- a/dev-python/django/metadata.xml |
144 |
+++ b/dev-python/django/metadata.xml |
145 |
@@ -1,5 +1,5 @@ |
146 |
<?xml version = '1.0' encoding = 'UTF-8'?> |
147 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
148 |
<pkgmetadata> |
149 |
-<maintainer><email>graaff@g.o</email></maintainer> |
150 |
+<maintainer type="person"><email>graaff@g.o</email></maintainer> |
151 |
</pkgmetadata> |