From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C402C158012 for ; Tue, 21 Sep 2021 07:03:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92860E08EB; Tue, 21 Sep 2021 07:03:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD761E08F4 for ; Tue, 21 Sep 2021 07:03:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A93F8342FA3 for ; Tue, 21 Sep 2021 07:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB9D410C for ; Tue, 21 Sep 2021 07:03:32 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1632207785.2791d82a051a0cbc03907f5f0e96028d9ad03679.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-cola/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/git-cola/Manifest dev-vcs/git-cola/git-cola-3.10.1.ebuild X-VCS-Directories: dev-vcs/git-cola/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 2791d82a051a0cbc03907f5f0e96028d9ad03679 X-VCS-Branch: master Date: Tue, 21 Sep 2021 07:03:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f5532fa-819a-4b42-8cfa-b0692d323212 X-Archives-Hash: 8850dde990d98fb4169132ab9cafaf5e commit: 2791d82a051a0cbc03907f5f0e96028d9ad03679 Author: Martin Gysel bearsh org> AuthorDate: Wed Sep 15 19:13:26 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Sep 21 07:03:05 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2791d82a dev-vcs/git-cola: bump version to 3.10.1, EAPI-8, python-3.10 Closes: https://bugs.gentoo.org/813255 Package-Manager: Portage-3.0.23, Repoman-3.0.3 Signed-off-by: Martin Gysel bearsh.org> Signed-off-by: Joonas Niilola gentoo.org> dev-vcs/git-cola/Manifest | 1 + dev-vcs/git-cola/git-cola-3.10.1.ebuild | 110 ++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest index 6a5e83767cc..c2b90a62781 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.5.tar.gz 970155 BLAKE2B ae602d4de0e6fac9d2817100bee8923d8f550d0bb83ddafd806ccdfbd0a77c65bfb60ff03a9399c6b60d5d4683eb6d46ee41eaa43faf2e2ac092b34c9151c999 SHA512 532e24092a72486171345aeb0e7610eb49c4062b64395988c6c4965cac6e9ffaed1268c30a0a525d4d99404f626d9e505a4be148d376994d4326e3ca873e2793 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.10.1.ebuild b/dev-vcs/git-cola/git-cola-3.10.1.ebuild new file mode 100644 index 00000000000..0cde8ccf38f --- /dev/null +++ b/dev-vcs/git-cola/git-cola-3.10.1.ebuild @@ -0,0 +1,110 @@ +# 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/PyQt5[network,${PYTHON_USEDEP}] + dev-python/QtPy[gui,${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/mock[\${PYTHON_USEDEP}] + dev-python/nose[\${PYTHON_USEDEP}] + dev-python/pytest[\${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() { + 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 nosetests --verbose --with-id --with-doctest \ + --exclude=sphinxtogithub +} + +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 +}