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/pygtkglext: ChangeLog pygtkglext-1.1.0.ebuild
Date: Sat, 10 Apr 2010 20:10:20
Message-Id: 20100410201016.A68B42C04A@corvid.gentoo.org
1 arfrever 10/04/10 20:10:16
2
3 Modified: ChangeLog pygtkglext-1.1.0.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS. Delete calls to deprecated python_version() (bug #314455).
6 (Portage version: HEAD/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.41 dev-python/pygtkglext/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtkglext/ChangeLog?rev=1.41&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtkglext/ChangeLog?rev=1.41&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtkglext/ChangeLog?r1=1.40&r2=1.41
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/ChangeLog,v
18 retrieving revision 1.40
19 retrieving revision 1.41
20 diff -u -r1.40 -r1.41
21 --- ChangeLog 27 Oct 2008 10:22:51 -0000 1.40
22 +++ ChangeLog 10 Apr 2010 20:10:16 -0000 1.41
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-python/pygtkglext
25 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/ChangeLog,v 1.40 2008/10/27 10:22:51 hawking Exp $
27 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/ChangeLog,v 1.41 2010/04/10 20:10:16 arfrever Exp $
29 +
30 + 10 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + pygtkglext-1.1.0.ebuild:
32 + Set SUPPORT_PYTHON_ABIS. Delete calls to deprecated python_version() (bug #314455).
33
34 27 Oct 2008; Ali Polatel <hawking@g.o> pygtkglext-1.1.0.ebuild:
35 Use python_need_rebuild.
36
37
38
39 1.22 dev-python/pygtkglext/pygtkglext-1.1.0.ebuild
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtkglext/pygtkglext-1.1.0.ebuild?rev=1.22&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtkglext/pygtkglext-1.1.0.ebuild?rev=1.22&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtkglext/pygtkglext-1.1.0.ebuild?r1=1.21&r2=1.22
44
45 Index: pygtkglext-1.1.0.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/pygtkglext-1.1.0.ebuild,v
48 retrieving revision 1.21
49 retrieving revision 1.22
50 diff -u -r1.21 -r1.22
51 --- pygtkglext-1.1.0.ebuild 27 Oct 2008 10:22:51 -0000 1.21
52 +++ pygtkglext-1.1.0.ebuild 10 Apr 2010 20:10:16 -0000 1.22
53 @@ -1,14 +1,18 @@
54 -# Copyright 1999-2008 Gentoo Foundation
55 +# Copyright 1999-2010 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/pygtkglext-1.1.0.ebuild,v 1.21 2008/10/27 10:22:51 hawking Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/pygtkglext-1.1.0.ebuild,v 1.22 2010/04/10 20:10:16 arfrever Exp $
59
60 -NEED_PYTHON="2.3"
61 +EAPI="3"
62 +PYTHON_DEPEND="2"
63 +SUPPORT_PYTHON_ABIS="1"
64 +PYTHON_EXPORT_PHASE_FUNCTIONS="1"
65
66 -inherit python multilib
67 +inherit python
68
69 DESCRIPTION="Python bindings to GtkGLExt"
70 HOMEPAGE="http://gtkglext.sourceforge.net/"
71 SRC_URI="mirror://sourceforge/gtkglext/${P}.tar.bz2"
72 +
73 LICENSE="LGPL-2.1 GPL-2"
74 SLOT="0"
75 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
76 @@ -23,19 +27,20 @@
77 virtual/glu"
78 DEPEND="${RDEPEND}
79 dev-util/pkgconfig"
80 +RESTRICT_PYTHON_ABIS="3.*"
81
82 -src_unpack() {
83 - unpack ${A}
84 - cd "${S}"
85 -
86 - # disable pyc compiling
87 +src_prepare() {
88 + # Disable byte-compilation.
89 mv py-compile py-compile.orig
90 ln -s $(type -P true) py-compile
91 +
92 + python_copy_sources
93 }
94
95 src_install() {
96 - python_need_rebuild
97 - emake DESTDIR="${D}" install || die "emake install failed"
98 + python_src_install
99 + python_clean_sitedirs
100 +
101 dodoc README AUTHORS ChangeLog
102
103 if use examples; then
104 @@ -45,11 +50,9 @@
105 }
106
107 pkg_postinst() {
108 - python_version
109 - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0
110 + python_mod_optimize gtk-2.0
111 }
112
113 pkg_postrm() {
114 - python_version
115 - python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0
116 + python_mod_cleanup gtk-2.0
117 }