1 |
commit: d1719ec3fcde531879371c15fb589464bc3a0484 |
2 |
Author: Martin Gysel <me <AT> bearsh <DOT> org> |
3 |
AuthorDate: Mon Nov 4 20:32:34 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 21 19:46:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1719ec3 |
7 |
|
8 |
dev-vcs/git-cola: 3.5 version bump |
9 |
|
10 |
- xdg_desktop_database_update added in pkg_postinst() and pkg_postrm() |
11 |
- add RESTRICT="!test? ( test )" |
12 |
- add BDEPEND variable |
13 |
|
14 |
Closes: https://bugs.gentoo.org/699332 |
15 |
Signed-off-by: Martin Gysel <me <AT> bearsh.org> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/13550 |
17 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
18 |
|
19 |
dev-vcs/git-cola/Manifest | 1 + |
20 |
dev-vcs/git-cola/git-cola-3.5.ebuild | 104 +++++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 105 insertions(+) |
22 |
|
23 |
diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest |
24 |
index 6318f76f93f..254c0bbae08 100644 |
25 |
--- a/dev-vcs/git-cola/Manifest |
26 |
+++ b/dev-vcs/git-cola/Manifest |
27 |
@@ -1,2 +1,3 @@ |
28 |
DIST git-cola-2.11.tar.gz 1179769 BLAKE2B db2926b8137b2bb11cc9698b37156d8b0c8f72068061d7d1598b2e3237e44764c2914923103aaaa704babe26cf7a7c16bbe28a61770d98954f776b8ce955658a SHA512 99b865d7a49dcb041e54811141d242386642b5ed6fc12fa7a03431eb9b905cb88d88c4892dc432dd59e8ae3c85f20cc40f4bfb9b6ff002f4e5a4cfc0bdc4c72c |
29 |
DIST git-cola-3.2.tar.gz 1208723 BLAKE2B e0375502c7b760a35217c48708e34ba061934f968e6720c3560603b5a76c9474a3a8426f2120ee853a9ac475fc9cbc33ee6ee9a946336e1f28a89d541785c535 SHA512 ca171549dad692088e337efad6f480103a41a1a94f57ae66c15fab3d69e3b18ecc28ac1178886fedd6d969f783e8d5feb4922539c1739ce52c0c0ac59dc941ee |
30 |
+DIST git-cola-3.5.tar.gz 970155 BLAKE2B ae602d4de0e6fac9d2817100bee8923d8f550d0bb83ddafd806ccdfbd0a77c65bfb60ff03a9399c6b60d5d4683eb6d46ee41eaa43faf2e2ac092b34c9151c999 SHA512 532e24092a72486171345aeb0e7610eb49c4062b64395988c6c4965cac6e9ffaed1268c30a0a525d4d99404f626d9e505a4be148d376994d4326e3ca873e2793 |
31 |
|
32 |
diff --git a/dev-vcs/git-cola/git-cola-3.5.ebuild b/dev-vcs/git-cola/git-cola-3.5.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..9fb8610abf7 |
35 |
--- /dev/null |
36 |
+++ b/dev-vcs/git-cola/git-cola-3.5.ebuild |
37 |
@@ -0,0 +1,104 @@ |
38 |
+# Copyright 1999-2020 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+PYTHON_COMPAT=( python3_{6,7} ) |
44 |
+DISTUTILS_SINGLE_IMPL=true |
45 |
+inherit distutils-r1 readme.gentoo-r1 virtualx xdg-utils |
46 |
+ |
47 |
+DESCRIPTION="The highly caffeinated git GUI" |
48 |
+HOMEPAGE="https://git-cola.github.io/" |
49 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
54 |
+IUSE="doc test" |
55 |
+ |
56 |
+RESTRICT="!test? ( test )" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
60 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
61 |
+ dev-python/QtPy[gui,${PYTHON_USEDEP}] |
62 |
+ dev-python/send2trash[${PYTHON_USEDEP}] |
63 |
+ dev-vcs/git" |
64 |
+BDEPEND="sys-devel/gettext |
65 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
66 |
+ test? ( |
67 |
+ ${VIRTUALX_DEPEND} |
68 |
+ dev-python/mock[${PYTHON_USEDEP}] |
69 |
+ dev-python/nose[${PYTHON_USEDEP}] |
70 |
+ )" |
71 |
+ |
72 |
+python_prepare_all() { |
73 |
+ # make sure that tests also use the system provided QtPy |
74 |
+ rm -r qtpy || die |
75 |
+ |
76 |
+ rm share/git-cola/bin/*askpass* || die |
77 |
+ |
78 |
+ # don't install docs into wrong location |
79 |
+ sed -i -e '/doc/d' setup.py || die |
80 |
+ |
81 |
+ # fix doc directory reference |
82 |
+ sed -i \ |
83 |
+ -e "s/'doc', 'git-cola'/'doc', '${PF}'/" \ |
84 |
+ cola/resources.py || die |
85 |
+ |
86 |
+ # fix ssh-askpass directory reference |
87 |
+ sed -i -e 's/resources\.share/resources\.prefix/' cola/app.py || die |
88 |
+ |
89 |
+ distutils-r1_python_prepare_all |
90 |
+} |
91 |
+ |
92 |
+python_configure_all() { |
93 |
+ mydistutilsargs=( --no-vendor-libs ) |
94 |
+} |
95 |
+ |
96 |
+python_compile_all() { |
97 |
+ cd share/doc/${PN}/ || die |
98 |
+ if use doc ; then |
99 |
+ emake all |
100 |
+ else |
101 |
+ sed \ |
102 |
+ -e '/^install:/s:install-html::g' \ |
103 |
+ -e '/^install:/s:install-man::g' \ |
104 |
+ -i Makefile || die |
105 |
+ fi |
106 |
+} |
107 |
+ |
108 |
+python_test() { |
109 |
+ PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="en_US.utf8" \ |
110 |
+ virtx nosetests --verbose --with-id --with-doctest \ |
111 |
+ --exclude=sphinxtogithub |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ distutils-r1_src_install |
116 |
+} |
117 |
+ |
118 |
+python_install_all() { |
119 |
+ cd share/doc/${PN}/ || die |
120 |
+ emake \ |
121 |
+ DESTDIR="${D}" \ |
122 |
+ docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
123 |
+ prefix="${EPREFIX}/usr" \ |
124 |
+ install |
125 |
+ |
126 |
+ python_fix_shebang "${ED}/usr/share/git-cola/bin/git-xbase" "${ED}"/usr/bin/git-cola |
127 |
+ python_optimize "${ED}/usr/share/git-cola/lib/cola" |
128 |
+ |
129 |
+ use doc || HTML_DOCS=( "${FILESDIR}"/index.html ) |
130 |
+ |
131 |
+ distutils-r1_python_install_all |
132 |
+ readme.gentoo_create_doc |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ xdg_desktop_database_update |
137 |
+} |
138 |
+ |
139 |
+pkg_postrm() { |
140 |
+ xdg_desktop_database_update |
141 |
+} |