public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-cola/
Date: Tue, 21 Jan 2020 19:46:54 +0000 (UTC)	[thread overview]
Message-ID: <1579636002.d1719ec3fcde531879371c15fb589464bc3a0484.asturm@gentoo> (raw)

commit:     d1719ec3fcde531879371c15fb589464bc3a0484
Author:     Martin Gysel <me <AT> bearsh <DOT> org>
AuthorDate: Mon Nov  4 20:32:34 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jan 21 19:46:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1719ec3

dev-vcs/git-cola: 3.5 version bump

- xdg_desktop_database_update added in pkg_postinst() and pkg_postrm()
- add RESTRICT="!test? ( test )"
- add BDEPEND variable

Closes: https://bugs.gentoo.org/699332
Signed-off-by: Martin Gysel <me <AT> bearsh.org>
Closes: https://github.com/gentoo/gentoo/pull/13550
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-vcs/git-cola/Manifest            |   1 +
 dev-vcs/git-cola/git-cola-3.5.ebuild | 104 +++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)

diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest
index 6318f76f93f..254c0bbae08 100644
--- a/dev-vcs/git-cola/Manifest
+++ b/dev-vcs/git-cola/Manifest
@@ -1,2 +1,3 @@
 DIST git-cola-2.11.tar.gz 1179769 BLAKE2B db2926b8137b2bb11cc9698b37156d8b0c8f72068061d7d1598b2e3237e44764c2914923103aaaa704babe26cf7a7c16bbe28a61770d98954f776b8ce955658a SHA512 99b865d7a49dcb041e54811141d242386642b5ed6fc12fa7a03431eb9b905cb88d88c4892dc432dd59e8ae3c85f20cc40f4bfb9b6ff002f4e5a4cfc0bdc4c72c
 DIST git-cola-3.2.tar.gz 1208723 BLAKE2B e0375502c7b760a35217c48708e34ba061934f968e6720c3560603b5a76c9474a3a8426f2120ee853a9ac475fc9cbc33ee6ee9a946336e1f28a89d541785c535 SHA512 ca171549dad692088e337efad6f480103a41a1a94f57ae66c15fab3d69e3b18ecc28ac1178886fedd6d969f783e8d5feb4922539c1739ce52c0c0ac59dc941ee
+DIST git-cola-3.5.tar.gz 970155 BLAKE2B ae602d4de0e6fac9d2817100bee8923d8f550d0bb83ddafd806ccdfbd0a77c65bfb60ff03a9399c6b60d5d4683eb6d46ee41eaa43faf2e2ac092b34c9151c999 SHA512 532e24092a72486171345aeb0e7610eb49c4062b64395988c6c4965cac6e9ffaed1268c30a0a525d4d99404f626d9e505a4be148d376994d4326e3ca873e2793

diff --git a/dev-vcs/git-cola/git-cola-3.5.ebuild b/dev-vcs/git-cola/git-cola-3.5.ebuild
new file mode 100644
index 00000000000..9fb8610abf7
--- /dev/null
+++ b/dev-vcs/git-cola/git-cola-3.5.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+DISTUTILS_SINGLE_IMPL=true
+inherit distutils-r1 readme.gentoo-r1 virtualx xdg-utils
+
+DESCRIPTION="The highly caffeinated git GUI"
+HOMEPAGE="https://git-cola.github.io/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-python/numpy[${PYTHON_USEDEP}]
+	dev-python/pygments[${PYTHON_USEDEP}]
+	dev-python/QtPy[gui,${PYTHON_USEDEP}]
+	dev-python/send2trash[${PYTHON_USEDEP}]
+	dev-vcs/git"
+BDEPEND="sys-devel/gettext
+	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+	test? (
+		${VIRTUALX_DEPEND}
+		dev-python/mock[${PYTHON_USEDEP}]
+		dev-python/nose[${PYTHON_USEDEP}]
+	)"
+
+python_prepare_all() {
+	# make sure that tests also use the system provided QtPy
+	rm -r qtpy || die
+
+	rm share/git-cola/bin/*askpass* || die
+
+	# don't install docs into wrong location
+	sed -i -e '/doc/d' setup.py || die
+
+	# fix doc directory reference
+	sed -i \
+		-e "s/'doc', 'git-cola'/'doc', '${PF}'/" \
+		cola/resources.py || die
+
+	# fix ssh-askpass directory reference
+	sed -i -e 's/resources\.share/resources\.prefix/' cola/app.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_configure_all() {
+	mydistutilsargs=( --no-vendor-libs )
+}
+
+python_compile_all() {
+	cd share/doc/${PN}/ || die
+	if use doc ; then
+		emake all
+	else
+		sed \
+			-e '/^install:/s:install-html::g' \
+			-e '/^install:/s:install-man::g' \
+			-i Makefile || die
+	fi
+}
+
+python_test() {
+	PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="en_US.utf8" \
+	virtx nosetests --verbose --with-id --with-doctest \
+		--exclude=sphinxtogithub
+}
+
+src_install() {
+	distutils-r1_src_install
+}
+
+python_install_all() {
+	cd share/doc/${PN}/ || die
+	emake \
+		DESTDIR="${D}" \
+		docdir="${EPREFIX}/usr/share/doc/${PF}" \
+		prefix="${EPREFIX}/usr" \
+		install
+
+	python_fix_shebang "${ED}/usr/share/git-cola/bin/git-xbase" "${ED}"/usr/bin/git-cola
+	python_optimize "${ED}/usr/share/git-cola/lib/cola"
+
+	use doc || HTML_DOCS=( "${FILESDIR}"/index.html )
+
+	distutils-r1_python_install_all
+	readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+	xdg_desktop_database_update
+}
+
+pkg_postrm() {
+	xdg_desktop_database_update
+}


             reply	other threads:[~2020-01-21 19:46 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-21 19:46 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-14 20:48 [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-cola/ Jakov Smolić
2025-02-14 20:48 Jakov Smolić
2025-02-08  2:05 Yixun Lan
2025-01-08 17:03 Andreas Sturmlechner
2025-01-08 17:03 Andreas Sturmlechner
2024-12-11  0:51 Yixun Lan
2024-11-25 20:07 Sam James
2024-11-25 14:09 Sam James
2024-10-02 18:10 Andreas Sturmlechner
2024-10-02 18:10 Andreas Sturmlechner
2024-10-01 18:32 Andreas Sturmlechner
2024-10-01 18:32 Andreas Sturmlechner
2024-10-01 18:32 Andreas Sturmlechner
2024-04-23  6:38 Joonas Niilola
2024-04-23  1:31 Sam James
2024-01-28 10:22 Yixun Lan
2023-12-23 17:38 Sam James
2023-12-23 17:31 Sam James
2023-12-23 17:31 Sam James
2023-12-23 17:31 Sam James
2023-08-27 15:23 Arthur Zamarin
2023-07-24 21:02 Sam James
2023-07-24 14:18 Arthur Zamarin
2023-04-20 12:22 Joonas Niilola
2023-04-19  9:33 Arthur Zamarin
2023-04-15 12:23 Joonas Niilola
2023-04-15 12:23 Joonas Niilola
2023-01-25 17:41 Joonas Niilola
2023-01-25 17:41 Joonas Niilola
2022-11-22 13:55 Joonas Niilola
2022-10-11 13:36 Joonas Niilola
2022-10-11 13:36 Joonas Niilola
2022-09-08  7:26 Agostino Sarubbo
2022-09-07  1:50 Sam James
2022-07-02 17:35 Joonas Niilola
2022-07-02 17:35 Joonas Niilola
2022-04-25 10:30 Joonas Niilola
2022-04-25  9:12 Joonas Niilola
2022-01-29  6:20 Sam James
2022-01-29  6:20 Sam James
2022-01-24 22:14 Michał Górny
2022-01-24 22:14 Michał Górny
2021-12-07  6:26 Agostino Sarubbo
2021-12-05  5:18 Sam James
2021-11-22 14:03 Joonas Niilola
2021-09-21  7:03 Joonas Niilola
2021-09-21  7:03 Joonas Niilola
2021-09-21  7:03 Joonas Niilola
2021-03-05 18:36 Joonas Niilola
2021-02-25  8:19 Sam James
2021-02-24 20:35 Sam James
2020-12-21 19:58 Sam James
2020-12-18  6:55 Joonas Niilola
2020-12-07  9:25 Joonas Niilola
2020-12-07  9:25 Joonas Niilola
2020-12-07  9:25 Joonas Niilola
2020-03-22 14:07 Agostino Sarubbo
2020-03-14 19:46 Agostino Sarubbo
2020-01-16  6:05 Michał Górny
2018-11-20  7:43 Tiziano Müller
2018-06-26 19:04 Pacho Ramos
2017-09-25 14:10 Pacho Ramos
2016-12-25 23:48 Manuel Rüger
2016-01-10 11:56 Manuel Rüger
2015-11-11  9:02 Justin Lecher
2015-09-19 13:30 Agostino Sarubbo
2015-09-14 12:49 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1579636002.d1719ec3fcde531879371c15fb589464bc3a0484.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox