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