1 |
commit: 4de4de2910abb3a38f80cfee3ce99c8f4a179c9b |
2 |
Author: Martin Gysel <me <AT> bearsh <DOT> org> |
3 |
AuthorDate: Wed Nov 10 20:22:09 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 22 14:03:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4de4de29 |
7 |
|
8 |
dev-vcs/git-cola: version bump to 3.11.0 |
9 |
|
10 |
use pytest/pytest-flake8 instead of nose for tests |
11 |
|
12 |
Closes: https://bugs.gentoo.org/822972 |
13 |
Signed-off-by: Martin Gysel <me <AT> bearsh.org> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/22892 |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
dev-vcs/git-cola/Manifest | 1 + |
18 |
dev-vcs/git-cola/git-cola-3.11.0.ebuild | 109 ++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 110 insertions(+) |
20 |
|
21 |
diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest |
22 |
index ccbe0eb15520..7008ac23a0cc 100644 |
23 |
--- a/dev-vcs/git-cola/Manifest |
24 |
+++ b/dev-vcs/git-cola/Manifest |
25 |
@@ -1,3 +1,4 @@ |
26 |
DIST git-cola-3.10.1.tar.gz 996036 BLAKE2B 2d705b853cf67a0f437d8dc77d46d5804124af600f872717c832843586d3c739e67a79ebe50ba2a8db38afd4217a7bb94db9cb8e27d51a00087ced340f4877d6 SHA512 79496023bfaa05049079eec2cdaf8449a6598faebedb4a13acf178209edc63e725eb1b003700a1dcfee09072d34e5a49d7053f070e45b498562cc124cd0582d4 |
27 |
+DIST git-cola-3.11.0.tar.gz 997046 BLAKE2B 7a8270c30e0cbd919dcd6f8e38ca420257630717e535ef11ed337fde2461b544453b20363906a5b769cd23d96ca77ce72d71729f46ae6abada83ae4d33628cbc SHA512 f05862b9b27ff5dfe9b220bbee4f3f455a7ce98acaa0bb0a8cdbb44f8cb97ce265df036ba48d5abb0bf46a91fd782cd73a67ca544b4662d36e8023e92c80b541 |
28 |
DIST git-cola-3.8.tar.gz 980190 BLAKE2B 0502701c63f370b304a83094b2154757d1810216e82882472c7eac9633ac26eaa75974af05c32c18203d03b67a027655ea85c0e335915f204f668fcc86ed9c3f SHA512 9ae04dfef3b5bc64452a8df43e7afa93091f282097447208dadbd17522b62e5c43f7afce3eecc59fc4e38863496cdb41ac8b0453bbf327121629fbde20e45bb0 |
29 |
DIST git-cola-3.9.tar.gz 992335 BLAKE2B ab591d953173aa69773a82eb91ebcc6fa5bc5e31efa78ad27f3e1e57e22c4222d70914f059dffb0b05b2b366d3208e127ad123ccfeb1b4c1b648daae0bf53352 SHA512 91f4bb40c166669e05136985920113d7482a396a46adf45fcf05e8ee56677fee7ebfb6a793face79737a17be42aa5e32b216a30847e8e4a5b8dc5b3b4eba5395 |
30 |
|
31 |
diff --git a/dev-vcs/git-cola/git-cola-3.11.0.ebuild b/dev-vcs/git-cola/git-cola-3.11.0.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..1aa8af03490f |
34 |
--- /dev/null |
35 |
+++ b/dev-vcs/git-cola/git-cola-3.11.0.ebuild |
36 |
@@ -0,0 +1,109 @@ |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{8..10} ) |
43 |
+DISTUTILS_SINGLE_IMPL=true |
44 |
+DISTUTILS_USE_SETUPTOOLS=no |
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" |
54 |
+IUSE="doc test" |
55 |
+ |
56 |
+RESTRICT="!test? ( test )" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
61 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
62 |
+ dev-python/QtPy[gui,network,${PYTHON_USEDEP}] |
63 |
+ dev-python/send2trash[${PYTHON_USEDEP}] |
64 |
+ ') |
65 |
+ dev-vcs/git |
66 |
+" |
67 |
+BDEPEND="sys-devel/gettext |
68 |
+ $(python_gen_cond_dep " |
69 |
+ doc? ( dev-python/sphinx[\${PYTHON_USEDEP}] ) |
70 |
+ test? ( |
71 |
+ ${VIRTUALX_DEPEND} |
72 |
+ dev-python/pytest[\${PYTHON_USEDEP}] |
73 |
+ dev-python/pytest-flake8[\${PYTHON_USEDEP}] |
74 |
+ dev-python/mock[\${PYTHON_USEDEP}] |
75 |
+ dev-python/PyQt5[\${PYTHON_USEDEP},gui,widgets] |
76 |
+ ) |
77 |
+ ") |
78 |
+" |
79 |
+ |
80 |
+python_prepare_all() { |
81 |
+ # make sure that tests also use the system provided QtPy |
82 |
+ rm -r qtpy || die |
83 |
+ |
84 |
+ rm share/git-cola/bin/*askpass* || die |
85 |
+ |
86 |
+ # don't install docs into wrong location |
87 |
+ sed -i -e '/doc/d' setup.py || die |
88 |
+ |
89 |
+ # fix doc directory reference |
90 |
+ sed -i \ |
91 |
+ -e "s/'doc', 'git-cola'/'doc', '${PF}'/" \ |
92 |
+ cola/resources.py || die |
93 |
+ |
94 |
+ # fix ssh-askpass directory reference |
95 |
+ sed -i -e 's/resources\.share/resources\.prefix/' cola/app.py || die |
96 |
+ |
97 |
+ distutils-r1_python_prepare_all |
98 |
+} |
99 |
+ |
100 |
+python_configure_all() { |
101 |
+ DISTUTILS_ARGS=( --no-vendor-libs --no-private-libs ) |
102 |
+} |
103 |
+ |
104 |
+python_compile_all() { |
105 |
+ cd share/doc/${PN}/ || die |
106 |
+ if use doc ; then |
107 |
+ emake all |
108 |
+ else |
109 |
+ sed \ |
110 |
+ -e '/^install:/s:install-html::g' \ |
111 |
+ -e '/^install:/s:install-man::g' \ |
112 |
+ -i Makefile || die |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+python_test() { |
117 |
+ GIT_CONFIG_NOSYSTEM=true \ |
118 |
+ PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C.utf8" \ |
119 |
+ virtx epytest cola test |
120 |
+} |
121 |
+ |
122 |
+python_install_all() { |
123 |
+ cd share/doc/${PN}/ || die |
124 |
+ emake \ |
125 |
+ DESTDIR="${D}" \ |
126 |
+ docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
127 |
+ prefix="${EPREFIX}/usr" \ |
128 |
+ install |
129 |
+ |
130 |
+ # remove empty bin folder |
131 |
+ rm -R "${ED}"/usr/share/git-cola/bin || die |
132 |
+ |
133 |
+ use doc || HTML_DOCS=( "${FILESDIR}"/index.html ) |
134 |
+ |
135 |
+ distutils-r1_python_install_all |
136 |
+ readme.gentoo_create_doc |
137 |
+} |
138 |
+ |
139 |
+pkg_postinst() { |
140 |
+ xdg_desktop_database_update |
141 |
+} |
142 |
+ |
143 |
+pkg_postrm() { |
144 |
+ xdg_desktop_database_update |
145 |
+} |