Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-cola/
Date: Sat, 29 Jan 2022 06:20:24
Message-Id: 1643437162.4a60b4b2e933461519049e8ed72eeb87cb109116.sam@gentoo
1 commit: 4a60b4b2e933461519049e8ed72eeb87cb109116
2 Author: Martin Gysel <me <AT> bearsh <DOT> org>
3 AuthorDate: Thu Jan 20 19:28:39 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 06:19:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a60b4b2
7
8 dev-vcs/git-cola: version bump to 3.12.0
9
10 Closes: https://bugs.gentoo.org/831630
11 Signed-off-by: Martin Gysel <me <AT> bearsh.org>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 dev-vcs/git-cola/Manifest | 1 +
15 dev-vcs/git-cola/git-cola-3.12.0.ebuild | 109 ++++++++++++++++++++++++++++++++
16 2 files changed, 110 insertions(+)
17
18 diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest
19 index f160122dd063..6d06c491524e 100644
20 --- a/dev-vcs/git-cola/Manifest
21 +++ b/dev-vcs/git-cola/Manifest
22 @@ -1,2 +1,3 @@
23 DIST git-cola-3.10.1.tar.gz 996036 BLAKE2B 2d705b853cf67a0f437d8dc77d46d5804124af600f872717c832843586d3c739e67a79ebe50ba2a8db38afd4217a7bb94db9cb8e27d51a00087ced340f4877d6 SHA512 79496023bfaa05049079eec2cdaf8449a6598faebedb4a13acf178209edc63e725eb1b003700a1dcfee09072d34e5a49d7053f070e45b498562cc124cd0582d4
24 DIST git-cola-3.11.0.tar.gz 997046 BLAKE2B 7a8270c30e0cbd919dcd6f8e38ca420257630717e535ef11ed337fde2461b544453b20363906a5b769cd23d96ca77ce72d71729f46ae6abada83ae4d33628cbc SHA512 f05862b9b27ff5dfe9b220bbee4f3f455a7ce98acaa0bb0a8cdbb44f8cb97ce265df036ba48d5abb0bf46a91fd782cd73a67ca544b4662d36e8023e92c80b541
25 +DIST git-cola-3.12.0.tar.gz 1004892 BLAKE2B 9396768256341e59500dffc95136e710b2d3d1c9d5cb4d70fc7fba8e81e16a3656006b5558dae417fbbad7baf1373d953708006b96a8873f68502ea469462326 SHA512 4b8ec716f572682747f43ae1a9232612d95d44384d28bbf97ef461a93546cdfcc81125f816b4c8ea5efcf4d23f42edeb8a89df3c7167ceac4709eeeaf49965a9
26
27 diff --git a/dev-vcs/git-cola/git-cola-3.12.0.ebuild b/dev-vcs/git-cola/git-cola-3.12.0.ebuild
28 new file mode 100644
29 index 000000000000..1aa8af03490f
30 --- /dev/null
31 +++ b/dev-vcs/git-cola/git-cola-3.12.0.ebuild
32 @@ -0,0 +1,109 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +DISTUTILS_SINGLE_IMPL=true
40 +DISTUTILS_USE_SETUPTOOLS=no
41 +inherit distutils-r1 readme.gentoo-r1 virtualx xdg-utils
42 +
43 +DESCRIPTION="The highly caffeinated git GUI"
44 +HOMEPAGE="https://git-cola.github.io/"
45 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="doc test"
51 +
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + $(python_gen_cond_dep '
56 + dev-python/numpy[${PYTHON_USEDEP}]
57 + dev-python/pygments[${PYTHON_USEDEP}]
58 + dev-python/QtPy[gui,network,${PYTHON_USEDEP}]
59 + dev-python/send2trash[${PYTHON_USEDEP}]
60 + ')
61 + dev-vcs/git
62 +"
63 +BDEPEND="sys-devel/gettext
64 + $(python_gen_cond_dep "
65 + doc? ( dev-python/sphinx[\${PYTHON_USEDEP}] )
66 + test? (
67 + ${VIRTUALX_DEPEND}
68 + dev-python/pytest[\${PYTHON_USEDEP}]
69 + dev-python/pytest-flake8[\${PYTHON_USEDEP}]
70 + dev-python/mock[\${PYTHON_USEDEP}]
71 + dev-python/PyQt5[\${PYTHON_USEDEP},gui,widgets]
72 + )
73 + ")
74 +"
75 +
76 +python_prepare_all() {
77 + # make sure that tests also use the system provided QtPy
78 + rm -r qtpy || die
79 +
80 + rm share/git-cola/bin/*askpass* || die
81 +
82 + # don't install docs into wrong location
83 + sed -i -e '/doc/d' setup.py || die
84 +
85 + # fix doc directory reference
86 + sed -i \
87 + -e "s/'doc', 'git-cola'/'doc', '${PF}'/" \
88 + cola/resources.py || die
89 +
90 + # fix ssh-askpass directory reference
91 + sed -i -e 's/resources\.share/resources\.prefix/' cola/app.py || die
92 +
93 + distutils-r1_python_prepare_all
94 +}
95 +
96 +python_configure_all() {
97 + DISTUTILS_ARGS=( --no-vendor-libs --no-private-libs )
98 +}
99 +
100 +python_compile_all() {
101 + cd share/doc/${PN}/ || die
102 + if use doc ; then
103 + emake all
104 + else
105 + sed \
106 + -e '/^install:/s:install-html::g' \
107 + -e '/^install:/s:install-man::g' \
108 + -i Makefile || die
109 + fi
110 +}
111 +
112 +python_test() {
113 + GIT_CONFIG_NOSYSTEM=true \
114 + PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C.utf8" \
115 + virtx epytest cola test
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 + # remove empty bin folder
127 + rm -R "${ED}"/usr/share/git-cola/bin || die
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 +}