1 |
commit: 455634fa7080a3aa5437871558552d722efbfe70 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 30 10:05:55 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 30 12:03:49 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=455634fa |
7 |
|
8 |
dev-python/dnspython: Conver to py ABI slotted ebuilds |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=484954 |
11 |
|
12 |
Package-Manager: portage-2.2.23 |
13 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
14 |
|
15 |
dev-python/dnspython/dnspython-1.11.1.ebuild | 5 +- |
16 |
dev-python/dnspython/dnspython-1.12.0-r1.ebuild | 73 ---------------------- |
17 |
...-1.12.0.ebuild => dnspython-1.12.0-r200.ebuild} | 17 ++--- |
18 |
...-1.12.0.ebuild => dnspython-1.12.0-r300.ebuild} | 26 +++++--- |
19 |
4 files changed, 31 insertions(+), 90 deletions(-) |
20 |
|
21 |
diff --git a/dev-python/dnspython/dnspython-1.11.1.ebuild b/dev-python/dnspython/dnspython-1.11.1.ebuild |
22 |
index ea07615..3969929 100644 |
23 |
--- a/dev-python/dnspython/dnspython-1.11.1.ebuild |
24 |
+++ b/dev-python/dnspython/dnspython-1.11.1.ebuild |
25 |
@@ -17,7 +17,10 @@ KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd |
26 |
IUSE="examples test" |
27 |
|
28 |
DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]" |
29 |
-RDEPEND="${DEPEND}" |
30 |
+RDEPEND="${DEPEND} |
31 |
+ !dev-python/dnspython:py2 |
32 |
+ !dev-python/dnspython:py3 |
33 |
+" |
34 |
|
35 |
DOCS=( ChangeLog README ) |
36 |
|
37 |
|
38 |
diff --git a/dev-python/dnspython/dnspython-1.12.0-r1.ebuild b/dev-python/dnspython/dnspython-1.12.0-r1.ebuild |
39 |
deleted file mode 100644 |
40 |
index 450cb03..0000000 |
41 |
--- a/dev-python/dnspython/dnspython-1.12.0-r1.ebuild |
42 |
+++ /dev/null |
43 |
@@ -1,73 +0,0 @@ |
44 |
-# Copyright 1999-2015 Gentoo Foundation |
45 |
-# Distributed under the terms of the GNU General Public License v2 |
46 |
-# $Id$ |
47 |
- |
48 |
-EAPI=5 |
49 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
50 |
- |
51 |
-inherit distutils-r1 multilib |
52 |
- |
53 |
-PN3="${PN}3" |
54 |
-P3="${PN3}-${PV}" |
55 |
- |
56 |
-DESCRIPTION="DNS toolkit for Python" |
57 |
-HOMEPAGE="http://www.dnspython.org/ https://pypi.python.org/pypi/dnspython" |
58 |
-SRC_URI=" |
59 |
- http://www.dnspython.org/kits/${PV}/${P}.tar.gz |
60 |
- http://www.dnspython.org/kits3/${PV}/${P3}.zip" |
61 |
- |
62 |
-LICENSE="ISC" |
63 |
-SLOT="0" |
64 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
65 |
-IUSE="examples test" |
66 |
- |
67 |
-DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}] |
68 |
- app-arch/unzip" |
69 |
-RDEPEND="${DEPEND}" |
70 |
- |
71 |
-S2="${S}" |
72 |
-S3="${WORKDIR}/${P3}" |
73 |
- |
74 |
-# For testsuite |
75 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
76 |
- |
77 |
-s_locator() { |
78 |
- if python_is_python3; then |
79 |
- einfo "Setting \${S} to ${S3}" |
80 |
- S="${S3}" $@ |
81 |
- else |
82 |
- einfo "Setting \${S} to ${S2}" |
83 |
- S="${S2}" $@ |
84 |
- fi |
85 |
-} |
86 |
- |
87 |
-python_prepare() { |
88 |
- s_locator distutils-r1_python_prepare |
89 |
-} |
90 |
- |
91 |
-python_compile() { |
92 |
- s_locator distutils-r1_python_compile |
93 |
-} |
94 |
- |
95 |
-python_install(){ |
96 |
- s_locator distutils-r1_python_install |
97 |
-} |
98 |
- |
99 |
-my_test() { |
100 |
- pushd tests &> /dev/null |
101 |
- "${PYTHON}" utest.py || die "tests failed under ${EPYTHON}" |
102 |
- einfo "Testsuite passed under ${EPYTHON}" |
103 |
-} |
104 |
- |
105 |
-python_test() { |
106 |
- s_locator my_test |
107 |
-} |
108 |
- |
109 |
-python_install() { |
110 |
- s_locator distutils-r1_python_install |
111 |
-} |
112 |
- |
113 |
-python_install_all() { |
114 |
- use examples && local EXAMPLES=( examples/. ) |
115 |
- distutils-r1_python_install_all |
116 |
-} |
117 |
|
118 |
diff --git a/dev-python/dnspython/dnspython-1.12.0.ebuild b/dev-python/dnspython/dnspython-1.12.0-r200.ebuild |
119 |
similarity index 77% |
120 |
copy from dev-python/dnspython/dnspython-1.12.0.ebuild |
121 |
copy to dev-python/dnspython/dnspython-1.12.0-r200.ebuild |
122 |
index 9edf38a..6bb0c4b 100644 |
123 |
--- a/dev-python/dnspython/dnspython-1.12.0.ebuild |
124 |
+++ b/dev-python/dnspython/dnspython-1.12.0-r200.ebuild |
125 |
@@ -1,8 +1,9 @@ |
126 |
-# Copyright 1999-2014 Gentoo Foundation |
127 |
+# Copyright 1999-2015 Gentoo Foundation |
128 |
# Distributed under the terms of the GNU General Public License v2 |
129 |
# $Id$ |
130 |
|
131 |
EAPI=5 |
132 |
+ |
133 |
PYTHON_COMPAT=( python2_7 ) |
134 |
|
135 |
inherit distutils-r1 |
136 |
@@ -12,21 +13,23 @@ HOMEPAGE="http://www.dnspython.org/ https://pypi.python.org/pypi/dnspython" |
137 |
SRC_URI="http://www.dnspython.org/kits/${PV}/${P}.tar.gz" |
138 |
|
139 |
LICENSE="ISC" |
140 |
-SLOT="0" |
141 |
+SLOT="py2" |
142 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
143 |
IUSE="examples test" |
144 |
|
145 |
-DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]" |
146 |
-RDEPEND="${DEPEND}" |
147 |
+RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}] |
148 |
+ !dev-python/dnspython:0" |
149 |
+DEPEND="${RDEPEND} |
150 |
+ !dev-python/dnspython:0 |
151 |
+ app-arch/unzip" |
152 |
|
153 |
-# For tests |
154 |
+# For testsuite |
155 |
DISTUTILS_IN_SOURCE_BUILD=1 |
156 |
|
157 |
python_test() { |
158 |
- pushd "${BUILD_DIR}"/../tests &> /dev/null |
159 |
+ cd tests || die |
160 |
"${PYTHON}" utest.py || die "tests failed under ${EPYTHON}" |
161 |
einfo "Testsuite passed under ${EPYTHON}" |
162 |
- popd &> /dev/null |
163 |
} |
164 |
|
165 |
python_install_all() { |
166 |
|
167 |
diff --git a/dev-python/dnspython/dnspython-1.12.0.ebuild b/dev-python/dnspython/dnspython-1.12.0-r300.ebuild |
168 |
similarity index 63% |
169 |
rename from dev-python/dnspython/dnspython-1.12.0.ebuild |
170 |
rename to dev-python/dnspython/dnspython-1.12.0-r300.ebuild |
171 |
index 9edf38a..a32c94a 100644 |
172 |
--- a/dev-python/dnspython/dnspython-1.12.0.ebuild |
173 |
+++ b/dev-python/dnspython/dnspython-1.12.0-r300.ebuild |
174 |
@@ -1,32 +1,40 @@ |
175 |
-# Copyright 1999-2014 Gentoo Foundation |
176 |
+# Copyright 1999-2015 Gentoo Foundation |
177 |
# Distributed under the terms of the GNU General Public License v2 |
178 |
# $Id$ |
179 |
|
180 |
EAPI=5 |
181 |
-PYTHON_COMPAT=( python2_7 ) |
182 |
+ |
183 |
+PYTHON_COMPAT=( python3_{3,4} ) |
184 |
|
185 |
inherit distutils-r1 |
186 |
|
187 |
+MY_PN="${PN}3" |
188 |
+MY_P="${MY_PN}-${PV}" |
189 |
+ |
190 |
DESCRIPTION="DNS toolkit for Python" |
191 |
HOMEPAGE="http://www.dnspython.org/ https://pypi.python.org/pypi/dnspython" |
192 |
-SRC_URI="http://www.dnspython.org/kits/${PV}/${P}.tar.gz" |
193 |
+SRC_URI="http://www.dnspython.org/kits3/${PV}/${MY_P}.zip" |
194 |
|
195 |
LICENSE="ISC" |
196 |
-SLOT="0" |
197 |
+SLOT="py3" |
198 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
199 |
IUSE="examples test" |
200 |
|
201 |
-DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]" |
202 |
-RDEPEND="${DEPEND}" |
203 |
+RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}] |
204 |
+ !dev-python/dnspython:0" |
205 |
+DEPEND="${RDEPEND} |
206 |
+ !dev-python/dnspython:0 |
207 |
+ app-arch/unzip" |
208 |
+ |
209 |
+S="${WORKDIR}/${MY_P}" |
210 |
|
211 |
-# For tests |
212 |
+# For testsuite |
213 |
DISTUTILS_IN_SOURCE_BUILD=1 |
214 |
|
215 |
python_test() { |
216 |
- pushd "${BUILD_DIR}"/../tests &> /dev/null |
217 |
+ cd tests || die |
218 |
"${PYTHON}" utest.py || die "tests failed under ${EPYTHON}" |
219 |
einfo "Testsuite passed under ${EPYTHON}" |
220 |
- popd &> /dev/null |
221 |
} |
222 |
|
223 |
python_install_all() { |