Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/django: django-1.7.4.ebuild ChangeLog
Date: Fri, 06 Feb 2015 03:41:32
Message-Id: 20150206034128.255BB1126E@oystercatcher.gentoo.org
1 patrick 15/02/06 03:41:28
2
3 Modified: ChangeLog
4 Added: django-1.7.4.ebuild
5 Log:
6 Bump #538692
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.150 dev-python/django/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?rev=1.150&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?rev=1.150&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?r1=1.149&r2=1.150
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v
20 retrieving revision 1.149
21 retrieving revision 1.150
22 diff -u -r1.149 -r1.150
23 --- ChangeLog 22 Dec 2014 03:44:07 -0000 1.149
24 +++ ChangeLog 6 Feb 2015 03:41:28 -0000 1.150
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/django
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.149 2014/12/22 03:44:07 idella4 Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.150 2015/02/06 03:41:28 patrick Exp $
31 +
32 +*django-1.7.4 (06 Feb 2015)
33 +
34 + 06 Feb 2015; Patrick Lauer <patrick@g.o> +django-1.7.4.ebuild:
35 + Bump #538692
36
37 22 Dec 2014; Ian Delaney <idella4@g.o> django-1.7.ebuild:
38 postgres IUSE flag dropped and treated in the same as the dropped flag 'mysql'
39
40
41
42 1.1 dev-python/django/django-1.7.4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/django-1.7.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/django-1.7.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: django-1.7.4.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.7.4.ebuild,v 1.1 2015/02/06 03:41:28 patrick Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
55 PYTHON_REQ_USE='sqlite?'
56 WEBAPP_NO_AUTO_INSTALL="yes"
57
58 inherit bash-completion-r1 distutils-r1 readme.gentoo versionator webapp
59
60 MY_P="Django-${PV}"
61
62 DESCRIPTION="High-level Python web framework"
63 HOMEPAGE="http://www.djangoproject.com/ http://pypi.python.org/pypi/Django"
64 SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
65
66 LICENSE="BSD"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
69 IUSE="doc sqlite test"
70
71 RDEPEND="virtual/python-imaging[${PYTHON_USEDEP}]
72 dev-python/setuptools[${PYTHON_USEDEP}]"
73 DEPEND="${RDEPEND}
74 doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
75 test? ( ${PYTHON_DEPS//sqlite?/sqlite} )"
76
77 S="${WORKDIR}/${MY_P}"
78
79 WEBAPP_MANUAL_SLOT="yes"
80
81 pkg_setup() {
82 webapp_pkg_setup
83 }
84
85 python_prepare_all() {
86 # https://github.com/django/django/commit/d0c6016367c11d4d4cc42ace340f951f5b75738e
87 # Courtesy of Arfrever
88 sed -e "106a\\ with change_cwd(\"..\"):" \
89 -e "107,117s/^/ /" \
90 -i tests/test_runner/test_discover_runner.py
91
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 if use doc; then
100 emake -C docs html
101 fi
102 }
103
104 python_test() {
105 # Tests have non-standard assumptions about PYTHONPATH,
106 # and don't work with ${BUILD_DIR}/lib.
107 PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v1 \
108 || die "Tests fail with ${EPYTHON}"
109 }
110
111 src_test() {
112 # Port conflict in django.test.testcases.LiveServerTestCase.
113 # Several other races with temp files.
114 DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test
115 }
116
117 src_install() {
118 distutils-r1_src_install
119 webapp_src_install
120
121 DOC_CONTENTS="Optional support for mysql as a backend to sql is available in the form of
122 dev-python/mysql-python for support of python 2.7 support, or dev-python/mysql-connector-python
123 for support of python 2.7, 3.3 & 3.4. Support of postgresql as a backend can be enabled via
124 emerging dev-python/psycopg:2 in cpythons 2.7 3.3 & 3.4 but not in pypy.
125 Just emerge the package to suit the needs."
126
127 readme.gentoo_create_doc
128 }
129
130 python_install_all() {
131 newbashcomp extras/django_bash_completion ${PN}
132
133 if use doc; then
134 rm -fr docs/_build/html/_sources
135 local HTML_DOCS=( docs/_build/html/. )
136 fi
137
138 insinto "${MY_HTDOCSDIR#${EPREFIX}}"
139 doins -r django/contrib/admin/static/admin/.
140 distutils-r1_python_install_all
141 }
142
143 pkg_postinst() {
144 elog "A copy of the admin media is available to webapp-config for installation in a"
145 elog "webroot, as well as the traditional location in python's site-packages dir"
146 elog "for easy development."
147 webapp_pkg_postinst
148 }