1 |
commit: 26e4396b2e4dbf3e0a582e594e0fbfb78e9626ff |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 17 14:58:35 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 17 15:00:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26e4396b |
7 |
|
8 |
dev-vcs/rabbitvcs: distutils-r1, EAPI=6 |
9 |
|
10 |
dev-vcs/rabbitvcs/rabbitvcs-0.16-r1.ebuild | 102 +++++++++++++++++++++++++++++ |
11 |
dev-vcs/rabbitvcs/rabbitvcs-0.16.ebuild | 102 ----------------------------- |
12 |
profiles/base/package.use.mask | 4 ++ |
13 |
3 files changed, 106 insertions(+), 102 deletions(-) |
14 |
|
15 |
diff --git a/dev-vcs/rabbitvcs/rabbitvcs-0.16-r1.ebuild b/dev-vcs/rabbitvcs/rabbitvcs-0.16-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000000..472dc95d95 |
18 |
--- /dev/null |
19 |
+++ b/dev-vcs/rabbitvcs/rabbitvcs-0.16-r1.ebuild |
20 |
@@ -0,0 +1,102 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 ) |
28 |
+ |
29 |
+inherit gnome2-utils distutils-r1 vcs-snapshot |
30 |
+ |
31 |
+DESCRIPTION="Integrated version control support for your desktop" |
32 |
+HOMEPAGE="http://rabbitvcs.org" |
33 |
+SRC_URI="https://github.com/rabbitvcs/${PN}/tarball/v${PV} -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="caja cli diff gedit git nautilus spell thunar" |
39 |
+ |
40 |
+RDEPEND="dev-python/configobj[${PYTHON_USEDEP}] |
41 |
+ dev-python/pygobject:2[${PYTHON_USEDEP}] |
42 |
+ dev-python/pygtk[${PYTHON_USEDEP}] |
43 |
+ dev-python/pysvn[${PYTHON_USEDEP}] |
44 |
+ dev-python/simplejson[${PYTHON_USEDEP}] |
45 |
+ caja? ( dev-python/python-caja[${PYTHON_USEDEP}] |
46 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
47 |
+ dev-python/gnome-vfs-python[${PYTHON_USEDEP}] ) |
48 |
+ diff? ( dev-util/meld ) |
49 |
+ gedit? ( app-editors/gedit[${PYTHON_USEDEP}] ) |
50 |
+ git? ( dev-python/dulwich[${PYTHON_USEDEP}] ) |
51 |
+ nautilus? ( >=dev-python/nautilus-python-0.7.0[${PYTHON_USEDEP}] |
52 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
53 |
+ dev-python/gnome-vfs-python[${PYTHON_USEDEP}] ) |
54 |
+ spell? ( dev-python/gtkspell-python[${PYTHON_USEDEP}] ) |
55 |
+ thunar? ( dev-python/thunarx-python[${PYTHON_USEDEP}] |
56 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] )" |
57 |
+ |
58 |
+python_prepare_all() { |
59 |
+# python_convert_shebangs -r 2 . |
60 |
+ |
61 |
+# distutils_src_prepare |
62 |
+ |
63 |
+ # we should not do gtk-update-icon-cache from setup script |
64 |
+ # we prefer portage for that |
65 |
+ sed -e 's/"install"/"fakeinstall"/' -i "${S}/setup.py" || die |
66 |
+ |
67 |
+ distutils-r1_python_prepare_all |
68 |
+} |
69 |
+ |
70 |
+python_install() { |
71 |
+ distutils-r1_python_install |
72 |
+ |
73 |
+ if use caja ; then |
74 |
+ python_moduleinto /usr/share/caja-python/extensions |
75 |
+ python_domodule clients/caja/RabbitVCS.py |
76 |
+ fi |
77 |
+ if use cli ; then |
78 |
+ python_doscript clients/cli/rabbitvcs |
79 |
+ fi |
80 |
+ if use gedit ; then |
81 |
+ python_moduleinto /usr/$(get_libdir)/gedit-2/plugins |
82 |
+ python_domodule clients/gedit/rabbitvcs-plugin.py |
83 |
+ insinto /usr/$(get_libdir)/gedit-2/plugins |
84 |
+ doins clients/gedit/rabbitvcs-gedit2.gedit-plugin |
85 |
+ python_moduleinto /usr/$(get_libdir)/gedit-2/plugins |
86 |
+ python_domodule clients/gedit/rabbitvcs-plugin.py |
87 |
+ insinto /usr/$(get_libdir)/gedit/plugins |
88 |
+ doins clients/gedit/rabbitvcs-gedit3.plugin |
89 |
+ fi |
90 |
+ if use nautilus ; then |
91 |
+ python_moduleinto /usr/$(get_libdir)/nautilus/extensions-2.0/python |
92 |
+ python_domodule clients/nautilus/RabbitVCS.py |
93 |
+ python_moduleinto /usr/share/nautilus-python/extensions |
94 |
+ python_domodule clients/nautilus-3.0/RabbitVCS.py |
95 |
+ fi |
96 |
+ if use thunar ; then |
97 |
+ python_moduleinto "/usr/$(get_libdir)/thunarx-2/python" |
98 |
+ python_domodule clients/thunar/RabbitVCS.py |
99 |
+ python_moduleinto "/usr/$(get_libdir)/thunarx-1/python" |
100 |
+ python_domodule clients/thunar/RabbitVCS.py |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+pkg_preinst() { |
105 |
+ gnome2_icon_savelist |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ gnome2_icon_cache_update |
110 |
+ |
111 |
+ elog "You should restart file manager to changes take effect:" |
112 |
+ use caja && elog "\$ caja -q" |
113 |
+ use nautilus && elog "\$ nautilus -q" |
114 |
+ use thunar && elog "\$ thunar -q && thunar &" |
115 |
+ elog "" |
116 |
+ elog "Also you should really look at known issues page:" |
117 |
+ elog "http://wiki.rabbitvcs.org/wiki/support/known-issues" |
118 |
+} |
119 |
+ |
120 |
+pkg_postrm() { |
121 |
+ gnome2_icon_cache_update |
122 |
+} |
123 |
|
124 |
diff --git a/dev-vcs/rabbitvcs/rabbitvcs-0.16.ebuild b/dev-vcs/rabbitvcs/rabbitvcs-0.16.ebuild |
125 |
deleted file mode 100644 |
126 |
index 4d9449d2b1..0000000000 |
127 |
--- a/dev-vcs/rabbitvcs/rabbitvcs-0.16.ebuild |
128 |
+++ /dev/null |
129 |
@@ -1,102 +0,0 @@ |
130 |
-# Copyright 1999-2015 Gentoo Foundation |
131 |
-# Distributed under the terms of the GNU General Public License v2 |
132 |
-# $Id$ |
133 |
- |
134 |
-EAPI=5 |
135 |
- |
136 |
-PYTHON_DEPEND="2:2.7" |
137 |
-SUPPORT_PYTHON_ABIS="1" |
138 |
-RESTRICT_PYTHON_ABIS="3.*" |
139 |
- |
140 |
-inherit eutils gnome2-utils multilib distutils vcs-snapshot |
141 |
- |
142 |
-DESCRIPTION="Integrated version control support for your desktop" |
143 |
-HOMEPAGE="http://rabbitvcs.org" |
144 |
-SRC_URI="https://github.com/rabbitvcs/${PN}/tarball/v${PV} -> ${P}.tar.gz" |
145 |
- |
146 |
-LICENSE="GPL-2" |
147 |
-SLOT="0" |
148 |
-KEYWORDS="~amd64 ~x86" |
149 |
-IUSE="caja cli diff gedit git nautilus spell thunar" |
150 |
- |
151 |
-RDEPEND="dev-python/configobj |
152 |
- dev-python/pygobject:2 |
153 |
- dev-python/pygtk |
154 |
- dev-python/pysvn |
155 |
- dev-python/simplejson |
156 |
- caja? ( dev-python/python-caja |
157 |
- dev-python/dbus-python |
158 |
- dev-python/gnome-vfs-python ) |
159 |
- diff? ( dev-util/meld ) |
160 |
- gedit? ( app-editors/gedit ) |
161 |
- git? ( dev-python/dulwich ) |
162 |
- nautilus? ( >=dev-python/nautilus-python-0.7.0 |
163 |
- dev-python/dbus-python |
164 |
- dev-python/gnome-vfs-python ) |
165 |
- spell? ( dev-python/gtkspell-python ) |
166 |
- thunar? ( dev-python/thunarx-python |
167 |
- dev-python/dbus-python )" |
168 |
- |
169 |
-src_prepare() { |
170 |
- python_convert_shebangs -r 2 . |
171 |
- |
172 |
- distutils_src_prepare |
173 |
- |
174 |
- # we should not do gtk-update-icon-cache from setup script |
175 |
- # we prefer portage for that |
176 |
- sed -e 's/"install"/"fakeinstall"/' -i "${S}/setup.py" || die |
177 |
-} |
178 |
- |
179 |
-src_install() { |
180 |
- distutils_src_install |
181 |
- |
182 |
- if use caja ; then |
183 |
- insinto /usr/share/caja-python/extensions |
184 |
- doins clients/caja/RabbitVCS.py |
185 |
- fi |
186 |
- if use cli ; then |
187 |
- dobin clients/cli/${PN} |
188 |
- fi |
189 |
- if use gedit ; then |
190 |
- insinto /usr/$(get_libdir)/gedit-2/plugins |
191 |
- doins clients/gedit/${PN}-plugin.py |
192 |
- doins clients/gedit/${PN}-gedit2.gedit-plugin |
193 |
- insinto /usr/$(get_libdir)/gedit/plugins |
194 |
- doins clients/gedit/${PN}-plugin.py |
195 |
- doins clients/gedit/${PN}-gedit3.plugin |
196 |
- fi |
197 |
- if use nautilus ; then |
198 |
- insinto /usr/$(get_libdir)/nautilus/extensions-2.0/python |
199 |
- doins clients/nautilus/RabbitVCS.py |
200 |
- insinto /usr/share/nautilus-python/extensions |
201 |
- doins clients/nautilus-3.0/RabbitVCS.py |
202 |
- fi |
203 |
- if use thunar ; then |
204 |
- insinto "/usr/$(get_libdir)/thunarx-2/python" |
205 |
- doins clients/thunar/RabbitVCS.py |
206 |
- insinto "/usr/$(get_libdir)/thunarx-1/python" |
207 |
- doins clients/thunar/RabbitVCS.py |
208 |
- fi |
209 |
-} |
210 |
- |
211 |
-pkg_preinst() { |
212 |
- gnome2_icon_savelist |
213 |
-} |
214 |
- |
215 |
-pkg_postinst() { |
216 |
- distutils_pkg_postinst |
217 |
- gnome2_icon_cache_update |
218 |
- |
219 |
- elog "You should restart file manager to changes take effect:" |
220 |
- use caja && elog "\$ caja -q" |
221 |
- use nautilus && elog "\$ nautilus -q" |
222 |
- use thunar && elog "\$ thunar -q && thunar &" |
223 |
- elog "" |
224 |
- elog "Also you should really look at known issues page:" |
225 |
- elog "http://wiki.rabbitvcs.org/wiki/support/known-issues" |
226 |
-} |
227 |
- |
228 |
-pkg_postrm() { |
229 |
- distutils_pkg_postrm |
230 |
- gnome2_icon_cache_update |
231 |
-} |
232 |
|
233 |
diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask |
234 |
index 87c9ee8d2e..0d000b0549 100644 |
235 |
--- a/profiles/base/package.use.mask |
236 |
+++ b/profiles/base/package.use.mask |
237 |
@@ -5,6 +5,10 @@ |
238 |
# This file requires >=portage-2.1.1 |
239 |
# New entries go on top. |
240 |
|
241 |
+# Michał Górny <mgorny@g.o> (17 Feb 2017) |
242 |
+# Python 2 package relies on gedit[python] which is py3 only. |
243 |
+dev-vcs/rabbitvcs gedit |
244 |
+ |
245 |
# Mike Gilbert <floppym@g.o> (16 Feb 2017) |
246 |
# Multiple test failures. |
247 |
sys-boot/grub:2 test |