public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-cola/
Date: Mon, 22 Nov 2021 14:03:48 +0000 (UTC)	[thread overview]
Message-ID: <1637589819.4de4de2910abb3a38f80cfee3ce99c8f4a179c9b.juippis@gentoo> (raw)

commit:     4de4de2910abb3a38f80cfee3ce99c8f4a179c9b
Author:     Martin Gysel <me <AT> bearsh <DOT> org>
AuthorDate: Wed Nov 10 20:22:09 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Nov 22 14:03:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4de4de29

dev-vcs/git-cola: version bump to 3.11.0

use pytest/pytest-flake8 instead of nose for tests

Closes: https://bugs.gentoo.org/822972
Signed-off-by: Martin Gysel <me <AT> bearsh.org>
Closes: https://github.com/gentoo/gentoo/pull/22892
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-vcs/git-cola/Manifest               |   1 +
 dev-vcs/git-cola/git-cola-3.11.0.ebuild | 109 ++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+)

diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest
index ccbe0eb15520..7008ac23a0cc 100644
--- a/dev-vcs/git-cola/Manifest
+++ b/dev-vcs/git-cola/Manifest
@@ -1,3 +1,4 @@
 DIST git-cola-3.10.1.tar.gz 996036 BLAKE2B 2d705b853cf67a0f437d8dc77d46d5804124af600f872717c832843586d3c739e67a79ebe50ba2a8db38afd4217a7bb94db9cb8e27d51a00087ced340f4877d6 SHA512 79496023bfaa05049079eec2cdaf8449a6598faebedb4a13acf178209edc63e725eb1b003700a1dcfee09072d34e5a49d7053f070e45b498562cc124cd0582d4
+DIST git-cola-3.11.0.tar.gz 997046 BLAKE2B 7a8270c30e0cbd919dcd6f8e38ca420257630717e535ef11ed337fde2461b544453b20363906a5b769cd23d96ca77ce72d71729f46ae6abada83ae4d33628cbc SHA512 f05862b9b27ff5dfe9b220bbee4f3f455a7ce98acaa0bb0a8cdbb44f8cb97ce265df036ba48d5abb0bf46a91fd782cd73a67ca544b4662d36e8023e92c80b541
 DIST git-cola-3.8.tar.gz 980190 BLAKE2B 0502701c63f370b304a83094b2154757d1810216e82882472c7eac9633ac26eaa75974af05c32c18203d03b67a027655ea85c0e335915f204f668fcc86ed9c3f SHA512 9ae04dfef3b5bc64452a8df43e7afa93091f282097447208dadbd17522b62e5c43f7afce3eecc59fc4e38863496cdb41ac8b0453bbf327121629fbde20e45bb0
 DIST git-cola-3.9.tar.gz 992335 BLAKE2B ab591d953173aa69773a82eb91ebcc6fa5bc5e31efa78ad27f3e1e57e22c4222d70914f059dffb0b05b2b366d3208e127ad123ccfeb1b4c1b648daae0bf53352 SHA512 91f4bb40c166669e05136985920113d7482a396a46adf45fcf05e8ee56677fee7ebfb6a793face79737a17be42aa5e32b216a30847e8e4a5b8dc5b3b4eba5395

diff --git a/dev-vcs/git-cola/git-cola-3.11.0.ebuild b/dev-vcs/git-cola/git-cola-3.11.0.ebuild
new file mode 100644
index 000000000000..1aa8af03490f
--- /dev/null
+++ b/dev-vcs/git-cola/git-cola-3.11.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_SINGLE_IMPL=true
+DISTUTILS_USE_SETUPTOOLS=no
+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"
+IUSE="doc test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	$(python_gen_cond_dep '
+		dev-python/numpy[${PYTHON_USEDEP}]
+		dev-python/pygments[${PYTHON_USEDEP}]
+		dev-python/QtPy[gui,network,${PYTHON_USEDEP}]
+		dev-python/send2trash[${PYTHON_USEDEP}]
+	')
+	dev-vcs/git
+"
+BDEPEND="sys-devel/gettext
+	$(python_gen_cond_dep "
+		doc? ( dev-python/sphinx[\${PYTHON_USEDEP}] )
+		test? (
+			${VIRTUALX_DEPEND}
+			dev-python/pytest[\${PYTHON_USEDEP}]
+			dev-python/pytest-flake8[\${PYTHON_USEDEP}]
+			dev-python/mock[\${PYTHON_USEDEP}]
+			dev-python/PyQt5[\${PYTHON_USEDEP},gui,widgets]
+		)
+	")
+"
+
+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() {
+	DISTUTILS_ARGS=( --no-vendor-libs --no-private-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() {
+	GIT_CONFIG_NOSYSTEM=true \
+	PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C.utf8" \
+	virtx epytest cola test
+}
+
+python_install_all() {
+	cd share/doc/${PN}/ || die
+	emake \
+		DESTDIR="${D}" \
+		docdir="${EPREFIX}/usr/share/doc/${PF}" \
+		prefix="${EPREFIX}/usr" \
+		install
+
+	# remove empty bin folder
+	rm -R "${ED}"/usr/share/git-cola/bin || die
+
+	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:[~2021-11-22 14:03 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22 14:03 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-02 18:10 [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-cola/ 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-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-21 19:46 Andreas Sturmlechner
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=1637589819.4de4de2910abb3a38f80cfee3ce99c8f4a179c9b.juippis@gentoo \
    --to=juippis@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