1 |
arfrever 09/10/30 13:32:05 |
2 |
|
3 |
Modified: ChangeLog pyzor-0.5.0-r1.ebuild |
4 |
Log: |
5 |
Set SUPPORT_PYTHON_ABIS. |
6 |
(Portage version: 14746-svn/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.53 dev-python/pyzor/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyzor/ChangeLog?rev=1.53&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyzor/ChangeLog?rev=1.53&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyzor/ChangeLog?r1=1.52&r2=1.53 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v |
18 |
retrieving revision 1.52 |
19 |
retrieving revision 1.53 |
20 |
diff -u -r1.52 -r1.53 |
21 |
--- ChangeLog 17 Oct 2009 09:46:59 -0000 1.52 |
22 |
+++ ChangeLog 30 Oct 2009 13:32:04 -0000 1.53 |
23 |
@@ -1,6 +1,10 @@ |
24 |
# ChangeLog for dev-python/pyzor |
25 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.52 2009/10/17 09:46:59 djc Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.53 2009/10/30 13:32:04 arfrever Exp $ |
28 |
+ |
29 |
+ 30 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
30 |
+ pyzor-0.5.0-r1.ebuild: |
31 |
+ Set SUPPORT_PYTHON_ABIS. |
32 |
|
33 |
*pyzor-0.5.0-r1 (17 Oct 2009) |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
1.2 dev-python/pyzor/pyzor-0.5.0-r1.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild?rev=1.2&view=markup |
41 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild?rev=1.2&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild?r1=1.1&r2=1.2 |
43 |
|
44 |
Index: pyzor-0.5.0-r1.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild,v |
47 |
retrieving revision 1.1 |
48 |
retrieving revision 1.2 |
49 |
diff -u -r1.1 -r1.2 |
50 |
--- pyzor-0.5.0-r1.ebuild 17 Oct 2009 09:46:59 -0000 1.1 |
51 |
+++ pyzor-0.5.0-r1.ebuild 30 Oct 2009 13:32:04 -0000 1.2 |
52 |
@@ -1,8 +1,9 @@ |
53 |
# Copyright 1999-2009 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild,v 1.1 2009/10/17 09:46:59 djc Exp $ |
56 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild,v 1.2 2009/10/30 13:32:04 arfrever Exp $ |
57 |
|
58 |
EAPI="2" |
59 |
+SUPPORT_PYTHON_ABIS="1" |
60 |
|
61 |
inherit distutils eutils |
62 |
|
63 |
@@ -17,6 +18,9 @@ |
64 |
|
65 |
DEPEND="pyzord? ( dev-lang/python[gdbm] )" |
66 |
RDEPEND="${DEPEND}" |
67 |
+RESTRICT_PYTHON_ABIS="3.*" |
68 |
+ |
69 |
+DOCS="THANKS UPGRADING" |
70 |
|
71 |
src_prepare() { |
72 |
epatch "${FILESDIR}/pyzord_getopt.patch" |
73 |
@@ -28,26 +32,31 @@ |
74 |
unittests.py || die "sed in unittest.py failed" |
75 |
} |
76 |
|
77 |
+src_test() { |
78 |
+ testing() { |
79 |
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" unittests.py |
80 |
+ } |
81 |
+ python_execute_function testing |
82 |
+} |
83 |
+ |
84 |
src_install () { |
85 |
- DOCS="INSTALL THANKS UPGRADING" |
86 |
distutils_src_install |
87 |
+ |
88 |
dohtml docs/usage.html |
89 |
- rm -rf "${D}/usr/share/doc/pyzor" |
90 |
+ rm -rf "${D}usr/share/doc/pyzor" |
91 |
|
92 |
if use pyzord; then |
93 |
dodir /usr/sbin |
94 |
- mv "${D}/usr/bin/pyzord" "${D}/usr/sbin/" |
95 |
+ mv "${D}usr/bin/pyzord" "${D}usr/sbin/" |
96 |
else |
97 |
- rm "${D}/usr/bin/pyzord" |
98 |
+ rm "${D}usr/bin/pyzord" |
99 |
fi |
100 |
} |
101 |
|
102 |
pkg_postinst() { |
103 |
+ distutils_pkg_postinst |
104 |
+ |
105 |
if use pyzord; then |
106 |
ewarn "/usr/bin/pyzord has been moved to /usr/sbin" |
107 |
fi |
108 |
} |
109 |
- |
110 |
-src_test() { |
111 |
- PYTHONPATH=build/lib/ "${python}" unittests.py || die "tests failed" |
112 |
-} |