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