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 net-irc/supybot-plugins: ChangeLog supybot-plugins-20060723-r2.ebuild
Date: Sun, 04 Apr 2010 21:14:29
Message-Id: E1NyX9E-0005C7-Lr@stork.gentoo.org
1 arfrever 10/04/04 21:14:24
2
3 Modified: ChangeLog supybot-plugins-20060723-r2.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS.
6 (Portage version: HEAD/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.5 net-irc/supybot-plugins/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/supybot-plugins/ChangeLog?rev=1.5&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/supybot-plugins/ChangeLog?rev=1.5&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/supybot-plugins/ChangeLog?r1=1.4&r2=1.5
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-irc/supybot-plugins/ChangeLog,v
18 retrieving revision 1.4
19 retrieving revision 1.5
20 diff -u -r1.4 -r1.5
21 --- ChangeLog 22 Sep 2009 00:02:21 -0000 1.4
22 +++ ChangeLog 4 Apr 2010 21:14:24 -0000 1.5
23 @@ -1,6 +1,10 @@
24 # ChangeLog for net-irc/supybot-plugins
25 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/net-irc/supybot-plugins/ChangeLog,v 1.4 2009/09/22 00:02:21 neurogeek Exp $
27 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/net-irc/supybot-plugins/ChangeLog,v 1.5 2010/04/04 21:14:24 arfrever Exp $
29 +
30 + 04 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + supybot-plugins-20060723-r2.ebuild:
32 + Set SUPPORT_PYTHON_ABIS.
33
34 *supybot-plugins-20060723-r2 (22 Sep 2009)
35
36
37
38
39 1.2 net-irc/supybot-plugins/supybot-plugins-20060723-r2.ebuild
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/supybot-plugins/supybot-plugins-20060723-r2.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/supybot-plugins/supybot-plugins-20060723-r2.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/supybot-plugins/supybot-plugins-20060723-r2.ebuild?r1=1.1&r2=1.2
44
45 Index: supybot-plugins-20060723-r2.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/net-irc/supybot-plugins/supybot-plugins-20060723-r2.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- supybot-plugins-20060723-r2.ebuild 22 Sep 2009 00:02:21 -0000 1.1
52 +++ supybot-plugins-20060723-r2.ebuild 4 Apr 2010 21:14:24 -0000 1.2
53 @@ -1,12 +1,15 @@
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/net-irc/supybot-plugins/supybot-plugins-20060723-r2.ebuild,v 1.1 2009/09/22 00:02:21 neurogeek Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/net-irc/supybot-plugins/supybot-plugins-20060723-r2.ebuild,v 1.2 2010/04/04 21:14:24 arfrever Exp $
59
60 -EAPI="2"
61 -inherit eutils python multilib
62 +EAPI="3"
63 +PYTHON_DEPEND="2"
64 +SUPPORT_PYTHON_ABIS="1"
65
66 -MY_PNAME="Supybot-plugins"
67 -MY_P="${MY_PNAME}-${PV}"
68 +inherit eutils python
69 +
70 +MY_PN="Supybot-plugins"
71 +MY_P="${MY_PN}-${PV}"
72
73 DESCRIPTION="Official set of extra plugins for Supybot"
74 HOMEPAGE="http://supybot.com"
75 @@ -14,42 +17,44 @@
76
77 LICENSE="BSD"
78 SLOT="0"
79 -KEYWORDS="~x86"
80 +KEYWORDS="~amd64 ~x86"
81 IUSE=""
82
83 DEPEND=""
84 RDEPEND=">=net-irc/supybot-0.83.4
85 >=dev-python/twisted-conch-8.1.0
86 >=dev-python/twisted-web-1.0"
87 +RESTRICT_PYTHON_ABIS="3.*"
88 +
89 +S="${WORKDIR}/${MY_P}"
90
91 src_prepare(){
92 epatch "${FILESDIR}/${PN}_credentials.patch"
93 }
94
95 src_install() {
96 - cd "${WORKDIR}"/${MY_P}
97 - python_version
98 - PLUGIN_BASE="/usr/$(get_libdir)/python${PYVER}/site-packages/supybot/plugins"
99 - for plugin in *; do
100 - case $plugin in
101 - BadWords|Dunno|Success)
102 - # These plugins are part of supybot-0.83.4 now, so skip them
103 - # here.
104 - continue
105 - ;;
106 - *)
107 - ;;
108 - esac
109 - insinto ${PLUGIN_BASE}/${plugin}
110 - doins $plugin/* || die "Install failed"
111 - done
112 + installation() {
113 + for plugin in *; do
114 + case ${plugin} in
115 + BadWords|Dunno|Success)
116 + # These plugins are part of supybot-0.83.4 now, so skip them here.
117 + continue
118 + ;;
119 + *)
120 + ;;
121 + esac
122 +
123 + insinto $(python_get_sitedir)/supybot/plugins/${plugin}
124 + doins ${plugin}/*
125 + done
126 + }
127 + python_execute_function installation
128 }
129
130 pkg_postinst() {
131 - python_version
132 - python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/supybot/plugins
133 + python_mod_optimize supybot/plugins
134 }
135
136 pkg_postrm() {
137 - python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/supybot/plugins
138 + python_mod_cleanup supybot/plugins
139 }