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