Gentoo Archives: gentoo-commits

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