Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/django: ChangeLog django-1.2.4-r1.ebuild
Date: Tue, 25 Jan 2011 21:56:14
Message-Id: 20110125215604.BE91520054@flycatcher.gentoo.org
1 arfrever 11/01/25 21:56:04
2
3 Modified: ChangeLog
4 Added: django-1.2.4-r1.ebuild
5 Log:
6 Fix regression in FormWizard (Django ticket #14576). Fix tests with Python 2.7 (Django ticket #14947).
7
8 (Portage version: 2.2.0_alpha19_p1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.58 dev-python/django/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?rev=1.58&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?rev=1.58&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/ChangeLog?r1=1.57&r2=1.58
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v
20 retrieving revision 1.57
21 retrieving revision 1.58
22 diff -u -r1.57 -r1.58
23 --- ChangeLog 23 Dec 2010 14:46:35 -0000 1.57
24 +++ ChangeLog 25 Jan 2011 21:56:04 -0000 1.58
25 @@ -1,6 +1,14 @@
26 # ChangeLog for dev-python/django
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.57 2010/12/23 14:46:35 arfrever Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django/ChangeLog,v 1.58 2011/01/25 21:56:04 arfrever Exp $
31 +
32 +*django-1.2.4-r1 (25 Jan 2011)
33 +
34 + 25 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
35 + +django-1.2.4-r1.ebuild, +files/django-1.2.4-python-2.7.patch,
36 + +files/django-1.2.4-ticket-14576.patch:
37 + Fix regression in FormWizard (Django ticket #14576). Fix tests with Python 2.7
38 + (Django ticket #14947).
39
40 *django-1.2.4 (23 Dec 2010)
41
42
43
44
45 1.1 dev-python/django/django-1.2.4-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/django-1.2.4-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/django-1.2.4-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: django-1.2.4-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.2.4-r1.ebuild,v 1.1 2011/01/25 21:56:04 arfrever Exp $
55
56 EAPI="3"
57 PYTHON_DEPEND="2"
58 SUPPORT_PYTHON_ABIS="1"
59 RESTRICT_PYTHON_ABIS="3.*"
60
61 inherit bash-completion distutils eutils versionator webapp
62
63 MY_P="Django-${PV}"
64
65 DESCRIPTION="High-level Python web framework"
66 HOMEPAGE="http://www.djangoproject.com/ http://pypi.python.org/pypi/Django"
67 SRC_URI="http://media.djangoproject.com/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
68
69 LICENSE="BSD"
70 SLOT="0"
71 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
72 IUSE="doc mysql postgres sqlite test"
73
74 RDEPEND="dev-python/imaging
75 sqlite? ( || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] dev-python/pysqlite:2 ) )
76 postgres? ( dev-python/psycopg )
77 mysql? ( >=dev-python/mysql-python-1.2.1_p2 )"
78 DEPEND="${RDEPEND}
79 doc? ( >=dev-python/sphinx-0.3 )
80 test? ( || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] dev-python/pysqlite:2 ) )"
81
82 S="${WORKDIR}/${MY_P}"
83
84 DOCS="docs/* AUTHORS"
85 WEBAPP_MANUAL_SLOT="yes"
86
87 pkg_setup() {
88 python_pkg_setup
89 webapp_pkg_setup
90 }
91
92 src_prepare() {
93 distutils_src_prepare
94 epatch "${FILESDIR}/${P}-ticket-14576.patch"
95 epatch "${FILESDIR}/${P}-python-2.7.patch"
96 }
97
98 src_compile() {
99 distutils_src_compile
100
101 if use doc; then
102 einfo "Generation of documentation"
103 pushd docs > /dev/null
104 emake html || die "Generation of documentation failed"
105 popd > /dev/null
106 fi
107 }
108
109 src_test() {
110 testing() {
111 # Tests have non-standard assumptions about PYTHONPATH and
112 # don't work with usual "build-${PYTHON_ABI}/lib".
113 PYTHONPATH="." "$(PYTHON)" tests/runtests.py --settings=test_sqlite -v1
114 }
115 python_execute_function testing
116 }
117
118 src_install() {
119 distutils_src_install
120
121 dobashcompletion extras/django_bash_completion
122
123 if use doc; then
124 rm -fr docs/_build/html/_sources
125 dohtml -A txt -r docs/_build/html/* || die "dohtml failed"
126 fi
127
128 insinto "${MY_HTDOCSDIR#${EPREFIX}}"
129 doins -r django/contrib/admin/media/* || die "doins failed"
130
131 webapp_src_install
132 }
133
134 pkg_preinst() {
135 :
136 }
137
138 pkg_postinst() {
139 bash-completion_pkg_postinst
140 distutils_pkg_postinst
141
142 einfo "Now, Django has the best of both worlds with Gentoo,"
143 einfo "ease of deployment for production and development."
144 echo
145 elog "A copy of the admin media is available to"
146 elog "webapp-config for installation in a webroot,"
147 elog "as well as the traditional location in python's"
148 elog "site-packages dir for easy development"
149 echo
150 ewarn "If you build Django ${PV} without USE=\"vhosts\""
151 ewarn "webapp-config will automatically install the"
152 ewarn "admin media into the localhost webroot."
153 }