Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-cola/
Date: Sat, 02 Jul 2022 17:43:34
Message-Id: 1656783315.487b734c23a776d353b472c06ddb0f5d0cb07b1c.juippis@gentoo
1 commit: 487b734c23a776d353b472c06ddb0f5d0cb07b1c
2 Author: Martin Gysel <me <AT> bearsh <DOT> org>
3 AuthorDate: Thu Jun 9 19:15:39 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 2 17:35:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=487b734c
7
8 dev-vcs/git-cola: version bump to 4.0.1, migrate to pep517 builds
9
10 Closes: https://bugs.gentoo.org/850784
11
12 Signed-off-by: Martin Gysel <me <AT> bearsh.org>
13 Closes: https://github.com/gentoo/gentoo/pull/25838
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 dev-vcs/git-cola/Manifest | 1 +
17 dev-vcs/git-cola/git-cola-4.0.1.ebuild | 78 ++++++++++++++++++++++++++++++++++
18 2 files changed, 79 insertions(+)
19
20 diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest
21 index 6d06c491524e..5b47987d3cdc 100644
22 --- a/dev-vcs/git-cola/Manifest
23 +++ b/dev-vcs/git-cola/Manifest
24 @@ -1,3 +1,4 @@
25 DIST git-cola-3.10.1.tar.gz 996036 BLAKE2B 2d705b853cf67a0f437d8dc77d46d5804124af600f872717c832843586d3c739e67a79ebe50ba2a8db38afd4217a7bb94db9cb8e27d51a00087ced340f4877d6 SHA512 79496023bfaa05049079eec2cdaf8449a6598faebedb4a13acf178209edc63e725eb1b003700a1dcfee09072d34e5a49d7053f070e45b498562cc124cd0582d4
26 DIST git-cola-3.11.0.tar.gz 997046 BLAKE2B 7a8270c30e0cbd919dcd6f8e38ca420257630717e535ef11ed337fde2461b544453b20363906a5b769cd23d96ca77ce72d71729f46ae6abada83ae4d33628cbc SHA512 f05862b9b27ff5dfe9b220bbee4f3f455a7ce98acaa0bb0a8cdbb44f8cb97ce265df036ba48d5abb0bf46a91fd782cd73a67ca544b4662d36e8023e92c80b541
27 DIST git-cola-3.12.0.tar.gz 1004892 BLAKE2B 9396768256341e59500dffc95136e710b2d3d1c9d5cb4d70fc7fba8e81e16a3656006b5558dae417fbbad7baf1373d953708006b96a8873f68502ea469462326 SHA512 4b8ec716f572682747f43ae1a9232612d95d44384d28bbf97ef461a93546cdfcc81125f816b4c8ea5efcf4d23f42edeb8a89df3c7167ceac4709eeeaf49965a9
28 +DIST git-cola-4.0.1.tar.gz 1018819 BLAKE2B 523264bbee38526d12db5ad975d78c72ef6c0dae98566f5a8b5d51b115d222c8aa6daab838ba67fa4c697391c8f58d4b05ddb7920bf65913d217f562aabd352f SHA512 c02150997982c1f8ce65a5f021364fc4c346339f5be4104f82ba6f7688cc05bad3d764e2cf920a22c5f209dc4b857c789907ff58c0d2809bc7ca7c3481b045fd
29
30 diff --git a/dev-vcs/git-cola/git-cola-4.0.1.ebuild b/dev-vcs/git-cola/git-cola-4.0.1.ebuild
31 new file mode 100644
32 index 000000000000..dc640bd0539b
33 --- /dev/null
34 +++ b/dev-vcs/git-cola/git-cola-4.0.1.ebuild
35 @@ -0,0 +1,78 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +PYTHON_COMPAT=( python3_{8..10} )
42 +DISTUTILS_SINGLE_IMPL=true
43 +DISTUTILS_USE_PEP517=setuptools
44 +inherit distutils-r1 readme.gentoo-r1 virtualx xdg-utils
45 +
46 +DESCRIPTION="The highly caffeinated git GUI"
47 +HOMEPAGE="https://git-cola.github.io/"
48 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="test"
54 +
55 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="
58 + $(python_gen_cond_dep '
59 + dev-python/numpy[${PYTHON_USEDEP}]
60 + dev-python/pygments[${PYTHON_USEDEP}]
61 + dev-python/QtPy[gui,network,${PYTHON_USEDEP}]
62 + dev-python/send2trash[${PYTHON_USEDEP}]
63 + ')
64 + dev-vcs/git
65 +"
66 +BDEPEND="sys-devel/gettext
67 + $(python_gen_cond_dep "
68 + test? (
69 + ${VIRTUALX_DEPEND}
70 + dev-python/pytest[\${PYTHON_USEDEP}]
71 + dev-python/PyQt5[\${PYTHON_USEDEP},gui,widgets]
72 + )
73 + ")
74 +"
75 +
76 +# right now, dev-python/jaraco-packaging is mask, so we cannot generate docs
77 +#distutils_enable_sphinx docs \
78 +# '>=dev-python/jaraco-packaging-9' \
79 +# 'dev-python/rst-linker'
80 +distutils_enable_tests pytest
81 +
82 +src_prepare() {
83 + sed -i "s|doc/git-cola =|doc/${PF} =|" setup.cfg || die
84 + sed -i -e 's:--flake8::' pytest.ini || die
85 + distutils-r1_src_prepare
86 +}
87 +
88 +src_test() {
89 + virtx distutils-r1_src_test
90 +}
91 +
92 +python_test() {
93 + cd "${T}" || die
94 + GIT_CONFIG_NOSYSTEM=true LC_ALL="C.utf8" \
95 + epytest "${S}"/test
96 +}
97 +
98 +src_compile() {
99 + SETUPTOOLS_SCM_PRETEND_VERSION=${PV} distutils-r1_src_compile
100 +}
101 +
102 +src_install() {
103 + distutils-r1_src_install
104 + readme.gentoo_create_doc
105 +}
106 +
107 +pkg_postinst() {
108 + xdg_desktop_database_update
109 +}
110 +
111 +pkg_postrm() {
112 + xdg_desktop_database_update
113 +}