/[gentoo-x86]/dev-python/django/django-0.96.ebuild
Gentoo

Contents of /dev-python/django/django-0.96.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Apr 24 16:04:52 2007 UTC (10 years, 8 months ago) by seemant
Branch: MAIN
Changes since 1.2: +2 -2 lines
adjust the mysql-python dependency, as 1.2.1_p2 is the minimum allowed version.  Closes bug #175821 by Jean-Claude Repetto
(Portage version: 2.1.2.4)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-0.96.ebuild,v 1.2 2007/03/25 21:54:41 seemant Exp $
4
5 inherit bash-completion distutils eutils versionator
6
7 RPV=$(get_version_component_range 1-2)
8
9 MY_P="Django-${PV}"
10
11 DESCRIPTION="high-level python web framework"
12 HOMEPAGE="http://www.djangoproject.com/"
13 SRC_URI="http://media.djangoproject.com/releases/${RPV}/${MY_P}.tar.gz"
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
17 IUSE="examples mysql postgres sqlite test"
18
19 RDEPEND="dev-python/imaging
20 sqlite? ( || (
21 ( >=dev-python/pysqlite-2.0.3 <dev-lang/python-2.5 )
22 >=dev-lang/python-2.5 ) )
23 test? ( || (
24 ( >=dev-python/pysqlite-2.0.3 <dev-lang/python-2.5 )
25 >=dev-lang/python-2.5 ) )
26 postgres? ( dev-python/psycopg )
27 mysql? ( >=dev-python/mysql-python-1.2.1_p2 )"
28 DEPEND="${RDEPEND}
29 >=dev-python/setuptools-0.6_rc3"
30
31 S=${WORKDIR}/${MY_P}
32
33 DOCS="docs/* AUTHORS"
34
35 src_unpack() {
36 unpack ${A}
37 cd "${S}"
38 sed -i \
39 -e '/ez_setup/d' \
40 setup.py || die "sed failed"
41 }
42
43 src_test() {
44 cat >> tests/settings.py << __EOF__
45 DATABASE_ENGINE='sqlite3'
46 ROOT_URLCONF='tests/urls.py'
47 SITE_ID=1
48 __EOF__
49 PYTHONPATH="." ${python} tests/runtests.py --settings=settings -v1 || die "tests failed"
50 }
51
52 src_install() {
53 distutils_python_version
54
55 site_pkgs="/usr/$(get_libdir)/python${PYVER}/site-packages/"
56 export PYTHONPATH="${PYTHONPATH}:${D}/${site_pkgs}"
57 dodir ${site_pkgs}
58
59 distutils_src_install
60
61 dobashcompletion extras/django_bash_completion
62
63 if use examples ; then
64 insinto /usr/share/doc/${PF}
65 doins -r examples
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20