From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 080591582EF for ; Sat, 08 Feb 2025 02:05:18 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E76E534069F for ; Sat, 08 Feb 2025 02:05:17 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id DF8EF1103CB; Sat, 08 Feb 2025 02:05:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id D36DE1103CB for ; Sat, 08 Feb 2025 02:05:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C6A933E3A9 for ; Sat, 08 Feb 2025 02:05:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19A082654 for ; Sat, 08 Feb 2025 02:05:15 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1738980255.ff5c1e95e65b9b8d7ea573d0088a61c75103dea4.dlan@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-4.11.0.ebuild X-VCS-Directories: dev-vcs/git-cola/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: ff5c1e95e65b9b8d7ea573d0088a61c75103dea4 X-VCS-Branch: master Date: Sat, 08 Feb 2025 02:05:15 +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: e784d336-42f7-48c1-a2c8-10333a60e319 X-Archives-Hash: c022c0e9bb73c8ed659bdf1a211f8ee3 commit: ff5c1e95e65b9b8d7ea573d0088a61c75103dea4 Author: David Roman ifae es> AuthorDate: Tue Jan 28 16:06:53 2025 +0000 Commit: Yixun Lan gentoo org> CommitDate: Sat Feb 8 02:04:15 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff5c1e95 dev-vcs/git-cola: add 4.11.0 Closes: https://github.com/gentoo/gentoo/pull/40347 Signed-off-by: David Roman ifae.es> Signed-off-by: Yixun Lan gentoo.org> dev-vcs/git-cola/Manifest | 1 + dev-vcs/git-cola/git-cola-4.11.0.ebuild | 80 +++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/dev-vcs/git-cola/Manifest b/dev-vcs/git-cola/Manifest index 70a903e42a7b..875b0108e44a 100644 --- a/dev-vcs/git-cola/Manifest +++ b/dev-vcs/git-cola/Manifest @@ -1,3 +1,4 @@ DIST git-cola-4.10.1.tar.gz 1265278 BLAKE2B 3c2ff0f25b5f75340f24577b5109fcbc3ce89122df88a097b1578c193bf37e832c2825ec25dcac720145230c879ba473a7db35ea2e9e1f476c937b14e3649c7c SHA512 582842a861726b4ed6e9f966afc47cb4817cecd82740bb446e39b6f3d03fb96523401267ebdef64960ef60b55cc3e7f42d8023a738b9ff660b9f0d9ea07f201b +DIST git-cola-4.11.0.tar.gz 1268000 BLAKE2B d6e2b52244ea63bf166f84e5f2e86e4b85e03e1f20c57bcb90a5f6e7689645fdaa0491e583bfc03812ed5df7970cd22c41962c8872abd58f13c774ba74330f30 SHA512 ce0d9bf3865d7e023bf61a9b846cb764661e07b9d72b25f36c25fa5a3b428c0d490e2382ab3715f5f7b2aaa07824096002351d84d5d9c8545e6e2b678a22c0f5 DIST git-cola-4.8.2.tar.gz 1251173 BLAKE2B 758b34e271883c5493e9a219e7f9970c1ca2e0cdb97bbab50828ea53ae2bae223692a06c353d0b017af2e82b3855708ebd2937d9656b373b8d45ab457ac50b7b SHA512 0b924837e8e5dcaa9687ffdff779bd3ed9f629713826f6c537d6470fdaed84bab3cec793aa9f1cf0e7bce3c4dae60c838822005efa93236b5964c8be74ef33cc DIST git-cola-4.9.0.tar.gz 1261512 BLAKE2B 51994539e79d1f3db5876b64c10bf84fd2ac7f90cab05227c23831b0f0a6771cead11bf3bcb76863eb0e6e26c245a735143306d55f1773a697036652d7a1084e SHA512 8abb30c8263170c185dc66061b8271dfb73a0173a29337ef704cc0d206a218bfb5ede528966ea55c64fc68121162973f9345ff112b7f8d7093f602a7774b72e0 diff --git a/dev-vcs/git-cola/git-cola-4.11.0.ebuild b/dev-vcs/git-cola/git-cola-4.11.0.ebuild new file mode 100644 index 000000000000..17c5e8352a84 --- /dev/null +++ b/dev-vcs/git-cola/git-cola-4.11.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +DISTUTILS_SINGLE_IMPL=true +DISTUTILS_USE_PEP517=setuptools +inherit desktop distutils-r1 optfeature readme.gentoo-r1 virtualx xdg + +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" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/polib[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/qtpy[pyqt6,gui,network,${PYTHON_USEDEP}] + ') + dev-vcs/git +" +BDEPEND=" + sys-devel/gettext + $(python_gen_cond_dep " + dev-python/setuptools-scm[\${PYTHON_USEDEP}] + test? ( + dev-python/pytest[\${PYTHON_USEDEP}] + dev-python/qtpy[pyqt6,gui,network,\${PYTHON_USEDEP}] + ) + ") +" + +distutils_enable_sphinx docs \ + 'dev-python/rst-linker' +distutils_enable_tests pytest + +src_prepare() { + # remove bundled qtpy and polib + rm -Rf qtpy cola/polib.py || die + distutils-r1_src_prepare +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + cd "${T}" || die + GIT_CONFIG_NOSYSTEM=true LC_ALL="C.utf8" \ + epytest "${S}"/test +} + +src_compile() { + SETUPTOOLS_SCM_PRETEND_VERSION=${PV} distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install + + domenu share/applications/*.desktop + doicon -s scalable cola/icons/git-cola.svg + + # patch the binaries to use desired qtpy backend + sed -i "s|import sys|import sys\nimport os\nos.environ['QT_API'] = 'pyqt6'\n|" "${D}"/usr/bin/* || die + + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "enable desktop notifications" dev-python/notify2 + optfeature "enables Send to Trash feature" dev-python/send2trash +}