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: Tue, 21 Sep 2021 07:03:39
Message-Id: 1632207785.2791d82a051a0cbc03907f5f0e96028d9ad03679.juippis@gentoo
1 commit: 2791d82a051a0cbc03907f5f0e96028d9ad03679
2 Author: Martin Gysel <me <AT> bearsh <DOT> org>
3 AuthorDate: Wed Sep 15 19:13:26 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 21 07:03:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2791d82a
7
8 dev-vcs/git-cola: bump version to 3.10.1, EAPI-8, python-3.10
9
10 Closes: https://bugs.gentoo.org/813255
11 Package-Manager: Portage-3.0.23, Repoman-3.0.3
12 Signed-off-by: Martin Gysel <me <AT> bearsh.org>
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 dev-vcs/git-cola/Manifest | 1 +
16 dev-vcs/git-cola/git-cola-3.10.1.ebuild | 110 ++++++++++++++++++++++++++++++++
17 2 files changed, 111 insertions(+)
18
19 diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest
20 index 6a5e83767cc..c2b90a62781 100644
21 --- a/dev-vcs/git-cola/Manifest
22 +++ b/dev-vcs/git-cola/Manifest
23 @@ -1,3 +1,4 @@
24 +DIST git-cola-3.10.1.tar.gz 996036 BLAKE2B 2d705b853cf67a0f437d8dc77d46d5804124af600f872717c832843586d3c739e67a79ebe50ba2a8db38afd4217a7bb94db9cb8e27d51a00087ced340f4877d6 SHA512 79496023bfaa05049079eec2cdaf8449a6598faebedb4a13acf178209edc63e725eb1b003700a1dcfee09072d34e5a49d7053f070e45b498562cc124cd0582d4
25 DIST git-cola-3.5.tar.gz 970155 BLAKE2B ae602d4de0e6fac9d2817100bee8923d8f550d0bb83ddafd806ccdfbd0a77c65bfb60ff03a9399c6b60d5d4683eb6d46ee41eaa43faf2e2ac092b34c9151c999 SHA512 532e24092a72486171345aeb0e7610eb49c4062b64395988c6c4965cac6e9ffaed1268c30a0a525d4d99404f626d9e505a4be148d376994d4326e3ca873e2793
26 DIST git-cola-3.8.tar.gz 980190 BLAKE2B 0502701c63f370b304a83094b2154757d1810216e82882472c7eac9633ac26eaa75974af05c32c18203d03b67a027655ea85c0e335915f204f668fcc86ed9c3f SHA512 9ae04dfef3b5bc64452a8df43e7afa93091f282097447208dadbd17522b62e5c43f7afce3eecc59fc4e38863496cdb41ac8b0453bbf327121629fbde20e45bb0
27 DIST git-cola-3.9.tar.gz 992335 BLAKE2B ab591d953173aa69773a82eb91ebcc6fa5bc5e31efa78ad27f3e1e57e22c4222d70914f059dffb0b05b2b366d3208e127ad123ccfeb1b4c1b648daae0bf53352 SHA512 91f4bb40c166669e05136985920113d7482a396a46adf45fcf05e8ee56677fee7ebfb6a793face79737a17be42aa5e32b216a30847e8e4a5b8dc5b3b4eba5395
28
29 diff --git a/dev-vcs/git-cola/git-cola-3.10.1.ebuild b/dev-vcs/git-cola/git-cola-3.10.1.ebuild
30 new file mode 100644
31 index 00000000000..0cde8ccf38f
32 --- /dev/null
33 +++ b/dev-vcs/git-cola/git-cola-3.10.1.ebuild
34 @@ -0,0 +1,110 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +PYTHON_COMPAT=( python3_{8..10} )
41 +DISTUTILS_SINGLE_IMPL=true
42 +DISTUTILS_USE_SETUPTOOLS=no
43 +inherit distutils-r1 readme.gentoo-r1 virtualx xdg-utils
44 +
45 +DESCRIPTION="The highly caffeinated git GUI"
46 +HOMEPAGE="https://git-cola.github.io/"
47 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="doc test"
53 +
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND="
57 + $(python_gen_cond_dep '
58 + dev-python/numpy[${PYTHON_USEDEP}]
59 + dev-python/pygments[${PYTHON_USEDEP}]
60 + dev-python/PyQt5[network,${PYTHON_USEDEP}]
61 + dev-python/QtPy[gui,${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 + doc? ( dev-python/sphinx[\${PYTHON_USEDEP}] )
69 + test? (
70 + ${VIRTUALX_DEPEND}
71 + dev-python/mock[\${PYTHON_USEDEP}]
72 + dev-python/nose[\${PYTHON_USEDEP}]
73 + dev-python/pytest[\${PYTHON_USEDEP}]
74 + )
75 + ")
76 +"
77 +
78 +python_prepare_all() {
79 + # make sure that tests also use the system provided QtPy
80 + rm -r qtpy || die
81 +
82 + rm share/git-cola/bin/*askpass* || die
83 +
84 + # don't install docs into wrong location
85 + sed -i -e '/doc/d' setup.py || die
86 +
87 + # fix doc directory reference
88 + sed -i \
89 + -e "s/'doc', 'git-cola'/'doc', '${PF}'/" \
90 + cola/resources.py || die
91 +
92 + # fix ssh-askpass directory reference
93 + sed -i -e 's/resources\.share/resources\.prefix/' cola/app.py || die
94 +
95 + distutils-r1_python_prepare_all
96 +}
97 +
98 +python_configure_all() {
99 + DISTUTILS_ARGS=( --no-vendor-libs --no-private-libs )
100 +}
101 +
102 +python_compile_all() {
103 + cd share/doc/${PN}/ || die
104 + if use doc ; then
105 + emake all
106 + else
107 + sed \
108 + -e '/^install:/s:install-html::g' \
109 + -e '/^install:/s:install-man::g' \
110 + -i Makefile || die
111 + fi
112 +}
113 +
114 +python_test() {
115 + GIT_CONFIG_NOSYSTEM=true \
116 + PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C.utf8" \
117 + virtx nosetests --verbose --with-id --with-doctest \
118 + --exclude=sphinxtogithub
119 +}
120 +
121 +python_install_all() {
122 + cd share/doc/${PN}/ || die
123 + emake \
124 + DESTDIR="${D}" \
125 + docdir="${EPREFIX}/usr/share/doc/${PF}" \
126 + prefix="${EPREFIX}/usr" \
127 + install
128 +
129 + # remove empty bin folder
130 + rm -R "${ED}"/usr/share/git-cola/bin || die
131 +
132 + use doc || HTML_DOCS=( "${FILESDIR}"/index.html )
133 +
134 + distutils-r1_python_install_all
135 + readme.gentoo_create_doc
136 +}
137 +
138 +pkg_postinst() {
139 + xdg_desktop_database_update
140 +}
141 +
142 +pkg_postrm() {
143 + xdg_desktop_database_update
144 +}