Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/django: django-1.5.1.ebuild ChangeLog
Date: Mon, 27 May 2013 20:15:39
Message-Id: 20130527201536.5BB812171D@flycatcher.gentoo.org
1 idella4 13/05/27 20:15:36
2
3 Modified: ChangeLog
4 Added: django-1.5.1.ebuild
5 Log:
6 bump, patch to rectify bugs in doc build
7
8 (Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.106 dev-python/django/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?rev=1.106&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?rev=1.106&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?r1=1.105&r2=1.106
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v
20 retrieving revision 1.105
21 retrieving revision 1.106
22 diff -u -r1.105 -r1.106
23 --- ChangeLog 3 Apr 2013 13:52:49 -0000 1.105
24 +++ ChangeLog 27 May 2013 20:15:36 -0000 1.106
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/django
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.105 2013/04/03 13:52:49 floppym Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.106 2013/05/27 20:15:36 idella4 Exp $
30 +
31 +*django-1.5.1 (27 May 2013)
32 +
33 + 27 May 2013; Ian Delaney <idella4@g.o> +django-1.5.1.ebuild,
34 + +files/django-1.5.1-objects.patch:
35 + bump, patch to rectify bugs in doc build
36
37 *django-1.5-r1 (03 Apr 2013)
38
39
40
41
42 1.1 dev-python/django/django-1.5.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/django-1.5.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/django-1.5.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: django-1.5.1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.5.1.ebuild,v 1.1 2013/05/27 20:15:36 idella4 Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
55 PYTHON_REQ_USE='sqlite?'
56
57 inherit bash-completion-r1 distutils-r1 versionator webapp
58
59 MY_P="Django-${PV}"
60
61 DESCRIPTION="High-level Python web framework"
62 HOMEPAGE="http://www.djangoproject.com/ http://pypi.python.org/pypi/Django"
63 SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
64
65 LICENSE="BSD"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
68 IUSE="doc mysql postgres sqlite test"
69
70 PY2_USEDEP=$(python_gen_usedep 'python2*')
71 RDEPEND="dev-python/imaging[${PY2_USEDEP}]
72 postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
73 mysql? ( >=dev-python/mysql-python-1.2.3[${PY2_USEDEP}] )"
74 DEPEND="${RDEPEND}
75 doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
76 test? ( ${PYTHON_DEPS//sqlite?/sqlite} )"
77
78 S="${WORKDIR}/${MY_P}"
79
80 WEBAPP_MANUAL_SLOT="yes"
81
82 PATCHES=( "${FILESDIR}"/${P}-objects.patch )
83
84 python_compile_all() {
85 if use doc; then
86 emake -C docs html
87 fi
88 }
89
90 python_test() {
91 # Tests have non-standard assumptions about PYTHONPATH,
92 # and don't work with ${BUILD_DIR}/lib.
93 # https://code.djangoproject.com/ticket/20514
94 PYTHONPATH=. \
95 "${PYTHON}" tests/runtests.py --settings=test_sqlite -v1 \
96 || die "Tests fail with ${EPYTHON}"
97 }
98
99 src_test() {
100 # Port conflict in django.test.testcases.LiveServerTestCase.
101 # Several other races with temp files.
102 DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test
103 }
104
105 src_install() {
106 distutils-r1_src_install
107 webapp_src_install
108 }
109
110 python_install_all() {
111 newbashcomp extras/django_bash_completion ${PN}
112
113 if use doc; then
114 rm -fr docs/_build/html/_sources
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 pkg_postinst() {
124 elog "A copy of the admin media is available to"
125 elog "webapp-config for installation in a webroot,"
126 elog "as well as the traditional location in python's"
127 elog "site-packages dir for easy development"
128 elog
129 ewarn "If you build Django ${PV} without USE=\"vhosts\""
130
131 # XXX: call webapp_pkg_postinst? the old ebuild didn't do that...
132 ewarn "webapp-config will automatically install the"
133 ewarn "admin media into the localhost webroot."
134 }