Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/dbus-python: ChangeLog dbus-python-0.83.0-r1.ebuild
Date: Sun, 02 Aug 2009 00:45:47
Message-Id: E1MXPCq-0007xq-OH@stork.gentoo.org
1 arfrever 09/08/02 00:45:44
2
3 Modified: ChangeLog dbus-python-0.83.0-r1.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS.
6 (Portage version: 13874-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.47 dev-python/dbus-python/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/dbus-python/ChangeLog?rev=1.47&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/dbus-python/ChangeLog?rev=1.47&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/dbus-python/ChangeLog?r1=1.46&r2=1.47
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-python/dbus-python/ChangeLog,v
18 retrieving revision 1.46
19 retrieving revision 1.47
20 diff -u -r1.46 -r1.47
21 --- ChangeLog 10 Mar 2009 15:35:12 -0000 1.46
22 +++ ChangeLog 2 Aug 2009 00:45:44 -0000 1.47
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-python/dbus-python
25 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-python/dbus-python/ChangeLog,v 1.46 2009/03/10 15:35:12 betelgeuse Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/dev-python/dbus-python/ChangeLog,v 1.47 2009/08/02 00:45:44 arfrever Exp $
28 +
29 + 02 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
30 + dbus-python-0.83.0-r1.ebuild:
31 + Set SUPPORT_PYTHON_ABIS.
32
33 10 Mar 2009; Petteri Räty <betelgeuse@g.o> metadata.xml:
34 Remove steev from metadata.xml as he isn't associated with this package
35
36
37
38 1.3 dev-python/dbus-python/dbus-python-0.83.0-r1.ebuild
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/dbus-python/dbus-python-0.83.0-r1.ebuild?rev=1.3&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/dbus-python/dbus-python-0.83.0-r1.ebuild?rev=1.3&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/dbus-python/dbus-python-0.83.0-r1.ebuild?r1=1.2&r2=1.3
43
44 Index: dbus-python-0.83.0-r1.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/dev-python/dbus-python/dbus-python-0.83.0-r1.ebuild,v
47 retrieving revision 1.2
48 retrieving revision 1.3
49 diff -u -r1.2 -r1.3
50 --- dbus-python-0.83.0-r1.ebuild 10 Mar 2009 15:33:46 -0000 1.2
51 +++ dbus-python-0.83.0-r1.ebuild 2 Aug 2009 00:45:44 -0000 1.3
52 @@ -1,6 +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/dbus-python/dbus-python-0.83.0-r1.ebuild,v 1.2 2009/03/10 15:33:46 betelgeuse Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/dev-python/dbus-python/dbus-python-0.83.0-r1.ebuild,v 1.3 2009/08/02 00:45:44 arfrever Exp $
57 +
58 +EAPI="2"
59 +SUPPORT_PYTHON_ABIS="1"
60
61 inherit python multilib
62
63 @@ -23,22 +26,37 @@
64 test? ( dev-python/pygobject )
65 dev-util/pkgconfig"
66
67 -src_unpack() {
68 - unpack ${A}
69 - cd "${S}"
70 +RESTRICT_PYTHON_ABIS="3*"
71
72 - # disable pyc compiling
73 +src_prepare() {
74 + # Disable compiling of .pyc files.
75 mv "${S}"/py-compile "${S}"/py-compile.orig
76 ln -s $(type -P true) "${S}"/py-compile
77 +
78 + python_copy_sources
79 +}
80 +
81 +src_configure() {
82 + configure_package() {
83 + econf --docdir=/usr/share/doc/dbus-python-${PV}
84 + }
85 + python_execute_function -s configure_package
86 }
87
88 src_compile() {
89 - econf --docdir=/usr/share/doc/dbus-python-${PV}
90 - emake || die "emake failed"
91 + build_package() {
92 + emake
93 + }
94 + python_execute_function -s build_package
95 }
96
97 src_install() {
98 - emake DESTDIR="${D}" install || die "make install failed"
99 + python_need_rebuild
100 +
101 + install_package() {
102 + emake DESTDIR="${D}" install
103 + }
104 + python_execute_function -s install_package
105
106 if use examples; then
107 insinto /usr/share/doc/${PF}/
108 @@ -47,9 +65,7 @@
109 }
110
111 pkg_postinst() {
112 - python_version
113 - python_need_rebuild
114 - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/dbus
115 + python_mod_optimize dbus
116 }
117
118 pkg_postrm() {