1 |
commit: 8fd1ff0cc5aae7870de0d1778c623f6198c119bc |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 22 19:26:04 2012 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 22 19:26:04 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/eva.git;a=commit;h=8fd1ff0c |
7 |
|
8 |
dev-python/south: 0.7.5 → 0.7.6 |
9 |
|
10 |
Required for sentry. |
11 |
|
12 |
--- |
13 |
dev-python/south/Manifest | 1 + |
14 |
dev-python/south/metadata.xml | 8 ++++ |
15 |
dev-python/south/south-0.7.6.ebuild | 70 +++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 79 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/south/Manifest b/dev-python/south/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..ee6c6a4 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/south/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST south-0.7.6.tar.gz 136861 SHA256 481197a915a017291f34b0e01a004f7e1a4c1b43354809177849d46def1d9a03 SHA512 4c2dce16d30a3739347a8b8578ad32a80f256d2d9c3f3d63c82a39bc531dbb0a0c7d548c3dcf2de3bf414accf934cb87d11b4c8eac3f8abf40949a2c112d77bd WHIRLPOOL 04115995db09c7c6c06125ebc4242cef29f1a5ee8c6d99c726f5a86d5b6b7d663cf9463fce05a347213ec17c0b5a4639aa744420a9124135fc78e49060c227c6 |
25 |
|
26 |
diff --git a/dev-python/south/metadata.xml b/dev-python/south/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..5b2a5c5 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/south/metadata.xml |
31 |
@@ -0,0 +1,8 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer> |
36 |
+ <email>dev-zero@g.o</email> |
37 |
+ <name>Tiziano Müller</name> |
38 |
+ </maintainer> |
39 |
+</pkgmetadata> |
40 |
|
41 |
diff --git a/dev-python/south/south-0.7.6.ebuild b/dev-python/south/south-0.7.6.ebuild |
42 |
new file mode 100644 |
43 |
index 0000000..89d0dab |
44 |
--- /dev/null |
45 |
+++ b/dev-python/south/south-0.7.6.ebuild |
46 |
@@ -0,0 +1,70 @@ |
47 |
+# Copyright 1999-2012 Gentoo Foundation |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/south/south-0.7.5.ebuild,v 1.2 2012/07/13 12:28:26 dev-zero Exp $ |
50 |
+ |
51 |
+EAPI="4" |
52 |
+ |
53 |
+PYTHON_DEPEND="2" |
54 |
+SUPPORT_PYTHON_ABIS="1" |
55 |
+RESTRICT_PYTHON_ABIS="2.5 3.*" |
56 |
+ |
57 |
+inherit distutils |
58 |
+ |
59 |
+DESCRIPTION="Intelligent schema migrations for Django apps." |
60 |
+HOMEPAGE="http://south.aeracode.org/" |
61 |
+SRC_URI="https://bitbucket.org/andrewgodwin/south/get/${PV}.tar.gz -> ${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="Apache-2.0" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+IUSE="doc" |
67 |
+ |
68 |
+RDEPEND="dev-python/django" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ dev-python/setuptools |
71 |
+ doc? ( dev-python/sphinx dev-python/jinja )" |
72 |
+ |
73 |
+# we are setting up the tests, but they fail |
74 |
+RESTRICT="test" |
75 |
+ |
76 |
+src_unpack() { |
77 |
+ default |
78 |
+ mv "${WORKDIR}"/*-south-* "${S}" |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ distutils_src_compile |
83 |
+ |
84 |
+ use doc && emake -C docs html |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ distutils_src_install |
89 |
+ |
90 |
+ use doc && dohtml -r docs/_build/html/* |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ distutils_pkg_postinst |
95 |
+ elog "In order to use the south schema migrations for your Django project," |
96 |
+ elog "just add 'south' to your INSTALLED_APPS in the settings.py file." |
97 |
+ elog "manage.py will now automagically offer the new functions." |
98 |
+} |
99 |
+ |
100 |
+src_test() { |
101 |
+ testing() { |
102 |
+ mkdir -p "${T}/test-${PYTHON_ABI}" |
103 |
+ cd "${T}/test-${PYTHON_ABI}" |
104 |
+ |
105 |
+ django-admin.py-${PYTHON_ABI} startproject southtest || die "setting up test env failed" |
106 |
+ cd southtest |
107 |
+ sed -i \ |
108 |
+ -e "/^INSTALLED_APPS/a\ 'south'," \ |
109 |
+ -e 's/\(django.db.backends.\)/\1sqlite3/' \ |
110 |
+ -e "s/\(NAME': '\)/\1test.db/" \ |
111 |
+ southtest/settings.py || die "sed failed" |
112 |
+ echo "SKIP_SOUTH_TESTS=False" >> southtest/settings.py |
113 |
+ PYTHONPATH="${S}/build-${PYTHON_ABI}/lib:${S}/south/tests" "$(PYTHON)" manage.py test south || die "tests failed" |
114 |
+ } |
115 |
+ python_execute_function testing |
116 |
+} |