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/rhpl: ChangeLog rhpl-0.213.ebuild
Date: Mon, 31 May 2010 18:57:27
Message-Id: 20100531185724.3FD122CF37@corvid.gentoo.org
1 arfrever 10/05/31 18:57:24
2
3 Modified: ChangeLog rhpl-0.213.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS.
6 (Portage version: HEAD/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.15 dev-python/rhpl/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rhpl/ChangeLog?rev=1.15&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rhpl/ChangeLog?rev=1.15&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rhpl/ChangeLog?r1=1.14&r2=1.15
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-python/rhpl/ChangeLog,v
18 retrieving revision 1.14
19 retrieving revision 1.15
20 diff -u -r1.14 -r1.15
21 --- ChangeLog 7 Dec 2009 13:07:23 -0000 1.14
22 +++ ChangeLog 31 May 2010 18:57:23 -0000 1.15
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-python/rhpl
25 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/ChangeLog,v 1.14 2009/12/07 13:07:23 djc Exp $
27 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/ChangeLog,v 1.15 2010/05/31 18:57:23 arfrever Exp $
29 +
30 + 31 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + rhpl-0.213.ebuild:
32 + Set SUPPORT_PYTHON_ABIS.
33
34 07 Dec 2009; Dirkjan Ochtman <djc@g.o> rhpl-0.213.ebuild,
35 metadata.xml:
36
37
38
39 1.7 dev-python/rhpl/rhpl-0.213.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rhpl/rhpl-0.213.ebuild?rev=1.7&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rhpl/rhpl-0.213.ebuild?rev=1.7&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rhpl/rhpl-0.213.ebuild?r1=1.6&r2=1.7
44
45 Index: rhpl-0.213.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-python/rhpl/rhpl-0.213.ebuild,v
48 retrieving revision 1.6
49 retrieving revision 1.7
50 diff -u -r1.6 -r1.7
51 --- rhpl-0.213.ebuild 7 Dec 2009 13:07:23 -0000 1.6
52 +++ rhpl-0.213.ebuild 31 May 2010 18:57:23 -0000 1.7
53 @@ -1,8 +1,13 @@
54 -# Copyright 1999-2009 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/rhpl/rhpl-0.213.ebuild,v 1.6 2009/12/07 13:07:23 djc Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/rhpl-0.213.ebuild,v 1.7 2010/05/31 18:57:23 arfrever Exp $
59
60 -inherit eutils multilib python rpm toolchain-funcs distutils
61 +EAPI="3"
62 +PYTHON_DEPEND="2"
63 +SUPPORT_PYTHON_ABIS="1"
64 +RESTRICT_PYTHON_ABIS="3.*"
65 +
66 +inherit multilib python rpm toolchain-funcs
67
68 # Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
69 # tarball out of it
70 @@ -11,39 +16,49 @@
71 DESCRIPTION="Library of python code used by Red Hat Linux programs"
72 HOMEPAGE="http://fedoraproject.org/wiki/SystemConfig"
73 SRC_URI="mirror://fedora-dev/development/source/SRPMS/${P}-${RPMREV}.src.rpm"
74 +
75 LICENSE="GPL-2"
76 SLOT="0"
77 KEYWORDS="amd64 ppc x86"
78 IUSE=""
79 -RDEPEND="dev-lang/python
80 - !<sys-libs/libkudzu-1.2"
81 +
82 +RDEPEND="!<sys-libs/libkudzu-1.2"
83 DEPEND="${RDEPEND}
84 !s390? ( >=net-wireless/wireless-tools-28 )
85 sys-devel/gettext"
86
87 -src_unpack() {
88 - rpm_src_unpack
89 -# epatch "${FILESDIR}"/${PV}-use-raw-strings-for-gettext.diff
90 -
91 - sed -i \
92 - -e 's:gcc:$(CC):g' \
93 - "${S}"/src/Makefile
94 +src_prepare() {
95 + sed -e '/compileall/d' -i Makefile || die "sed failed"
96 + sed -e 's:gcc:$(CC):g' -i src/Makefile || die "sed failed"
97 + python_src_prepare
98 }
99
100 src_compile() {
101 - python_version
102 - emake \
103 - PYTHON=python${PYVER} \
104 - LIBDIR=$(get_libdir) \
105 - ARCH=${ARCH} \
106 - CC=$(tc-getCC) \
107 - || die "emake failed"
108 + building() {
109 + emake \
110 + PYTHON=$(PYTHON) \
111 + LIBDIR=$(get_libdir) \
112 + ARCH=${ARCH} \
113 + CC=$(tc-getCC)
114 + }
115 + python_execute_function -s building
116 }
117
118 src_install() {
119 - emake \
120 - DESTDIR="${D}" \
121 - PYTHON=python${PYVER} \
122 - LIBDIR=$(get_libdir) \
123 - install || die "emake install failed"
124 + installation() {
125 + emake \
126 + DESTDIR="${ED}" \
127 + PYTHON=$(PYTHON) \
128 + LIBDIR=$(get_libdir) \
129 + install
130 + }
131 + python_execute_function -s installation
132 +}
133 +
134 +pkg_postinst() {
135 + python_mod_optimize rhpl
136 +}
137 +
138 +pkg_postrm() {
139 + python_mod_cleanup rhpl
140 }