diff options
author | 2024-02-08 19:48:34 +0200 | |
---|---|---|
committer | 2024-02-08 19:52:37 +0200 | |
commit | 66a9490d60a264e7d7bcff47354b7145935f4baa (patch) | |
tree | 42f5545b840dc61f570b961db7723d3177c134c7 /dev-vcs/breezy/breezy-3.3.5.ebuild | |
parent | app-emulation/vice: force bash during src_compile (diff) | |
download | gentoo-66a9490d60a264e7d7bcff47354b7145935f4baa.tar.gz gentoo-66a9490d60a264e7d7bcff47354b7145935f4baa.tar.bz2 gentoo-66a9490d60a264e7d7bcff47354b7145935f4baa.zip |
dev-vcs/breezy: add 3.3.5
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-vcs/breezy/breezy-3.3.5.ebuild')
-rw-r--r-- | dev-vcs/breezy/breezy-3.3.5.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/dev-vcs/breezy/breezy-3.3.5.ebuild b/dev-vcs/breezy/breezy-3.3.5.ebuild new file mode 100644 index 000000000000..215f1f5ffa2c --- /dev/null +++ b/dev-vcs/breezy/breezy-3.3.5.ebuild @@ -0,0 +1,77 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{10..12} ) + +CRATES=" +" + +inherit cargo distutils-r1 optfeature + +DESCRIPTION="Distributed Version Control System with a Friendly UI" +HOMEPAGE="https://www.breezy-vcs.org/ https://github.com/breezy-team/breezy" +SRC_URI="https://launchpad.net/brz/$(ver_cut 1-2)/${PV}/+download/${P}.tar.gz + ${CARGO_CRATE_URIS}" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+="https://dev.gentoo.org/~arthurzam/distfiles/dev-vcs/${PN}/${P}-crates.tar.xz" +fi + +LICENSE="GPL-2+" +# Dependent crate licenses +LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +# I've got tired of all the test failures. It definitely mostly works. +# We have ~29000 tests successfully passing from ~30000 tests. +RESTRICT="test" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/fastbencode[${PYTHON_USEDEP}] + dev-python/patiencediff[${PYTHON_USEDEP}] + dev-python/merge3[${PYTHON_USEDEP}] + dev-python/dulwich[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + ') + !dev-vcs/bzr +" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools-gettext[${PYTHON_USEDEP}] + dev-python/setuptools-rust[${PYTHON_USEDEP}] + ') +" + +QA_FLAGS_IGNORED=" + usr/lib.*/py.*/site-packages/breezy/.*.so + usr/bin/brz +" + +src_prepare() { + sed -e 's@man/man1@share/&@' \ + -e 's@, strip=Strip\.All@@' \ + -i setup.py || die + + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + + # Symlink original bzr's bin names to new names + dosym brz /usr/bin/bzr +} + +pkg_postinst() { + optfeature "access branches over sftp" "dev-python/pycryptodome dev-python/paramiko" + optfeature "PGP sign and verify commits" "app-crypt/gpgme[python]" +} |