diff options
Diffstat (limited to 'dev-vcs/breezy')
-rw-r--r-- | dev-vcs/breezy/Manifest | 3 | ||||
-rw-r--r-- | dev-vcs/breezy/breezy-3.2.1-r1.ebuild | 85 | ||||
-rw-r--r-- | dev-vcs/breezy/metadata.xml | 13 |
3 files changed, 101 insertions, 0 deletions
diff --git a/dev-vcs/breezy/Manifest b/dev-vcs/breezy/Manifest new file mode 100644 index 000000000000..71b9c8638533 --- /dev/null +++ b/dev-vcs/breezy/Manifest @@ -0,0 +1,3 @@ +DIST breezy-3.2.1.tar.gz 9445046 BLAKE2B 67de39c93351d2f78b1b64764a6ad11f26bd31c9bb2d73ef65f8722764d7db8c574f0e116f77dca1b93a53a360f984fb2861f94e0e7f41ce97ad0f703332e25e SHA512 bfbbff1301f7cc13a2d59b1add80c196f3b45b69994194dcae96c0be151f807c965854047c86e43f54dd8c7aa24d56b25afdd00f0063e83b362a8c46d5858226 +EBUILD breezy-3.2.1-r1.ebuild 2954 BLAKE2B edbc050d43509cc3f8c042d71cc5230b3adb7b4e81e8f82769c8cde3465c4d913f99f5913d083fc88587b238669a6ee434d940207fdb8d31413745ab159a69f4 SHA512 a7b5b2370256781c9b25aeb299237e0fa9fbef6c426137a4af79f2ca9497870a3a5bb5ea60648f86033937d719c8d369dd3e6cd8cac7ab3df1c473f1590cf19b +MISC metadata.xml 424 BLAKE2B 485d8ba011693c021b649e37c76ea715b5a64b3356b7acd30abf841782ced63261cb34a254bf82e282c5e4ac8fd9550fd8d68504b35b4d540482c33ee4d50c83 SHA512 6ae1b97af9d955eae016ea7c9c87f7fe3fa80a6a3c8cfed4a962b6974eaaa14f0a02c4846ba387b4dc7d643c134e9d17526ff5b275c3f7e46a098204505bfc3b diff --git a/dev-vcs/breezy/breezy-3.2.1-r1.ebuild b/dev-vcs/breezy/breezy-3.2.1-r1.ebuild new file mode 100644 index 000000000000..9c4d300b8a94 --- /dev/null +++ b/dev-vcs/breezy/breezy-3.2.1-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit 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" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Most tests don't need tests, but deselecting those that need is too hard +RESTRICT="test" +PROPERTIES="test_network" + +RDEPEND=" + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/dulwich[${PYTHON_USEDEP}] + dev-python/fastimport[${PYTHON_USEDEP}] + dev-python/patiencediff[${PYTHON_USEDEP}] + !dev-vcs/bzr +" +BDEPEND=" + sys-devel/gettext + dev-python/cython[${PYTHON_USEDEP}] + test? ( + app-crypt/gpgme[python,${PYTHON_USEDEP}] + dev-python/paramiko[${PYTHON_USEDEP}] + dev-python/pycryptodome[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/subunit[${PYTHON_USEDEP}] + ' python3_{8,9}) + ) +" + +distutils_enable_tests --install unittest + +src_prepare() { + distutils-r1_src_prepare + # Fix man instal location + sed -e '/DATA_FILES/s/man\//share\/&/' -i setup.py || die + + # Fix call to unittest's stuff + grep -r breezy -le 'loadTestsFromModuleNames' | xargs sed -i -e 's/loadTestsFromModuleNames/loadTestsFromNames/' || die + + # Very horrible, looks like too much, but only ~250 tests out of ~30,000. + # Before every bump, check the need for every disable, using direct test + # for only a specific file. + # Don't disable tests by removing files, as this results in bad imports. + sed -e 's/test_bzr_connect_to_bzr_ssh/_&/' -i breezy/tests/test_transport.py || die + sed -e 's/test_is_compatible_and_registered/_&/' \ + -e 's/test_make_repository/_&/' -i breezy/plugins/weave_fmt/test_repository.py || die + sed -e 's/test_server_exception_with_hook/_&/' -i breezy/tests/blackbox/test_serve.py || die + sed -e 's/test_dump_/_&/' -i breezy/bzr/tests/blackbox/test_dump_btree.py || die + sed -e 's/test_/_&/' -i breezy/plugins/fastimport/tests/test_head_tracking.py || die + + sed -e '/test_vfs_ratchet/d' -i breezy/bzr/tests/__init__.py || die + sed -e '/test_blackbox/d' -i breezy/git/tests/__init__.py || die + sed -e '/test_upload/d' -i breezy/plugins/upload/tests/__init__.py || die + sed -e '/test_bzrdir/d' -i breezy/plugins/weave_fmt/__init__.py || die + sed -e '/test_big_file/d' -i breezy/tests/blackbox/__init__.py || die + sed -e '/breezy.tests.test_gpg/d' \ + -e '/breezy.tests.test_plugins/d' \ + -e '/breezy.tests.test_source/d' \ + -i breezy/tests/__init__.py || die +} + +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]" +} diff --git a/dev-vcs/breezy/metadata.xml b/dev-vcs/breezy/metadata.xml new file mode 100644 index 000000000000..abd73e6a6b97 --- /dev/null +++ b/dev-vcs/breezy/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>arthurzam@gentoo.org</email> + <name>Arthur Zamarin</name> + </maintainer> + <upstream> + <remote-id type="github">breezy-team/breezy</remote-id> + <remote-id type="launchpad">brz</remote-id> + <remote-id type="pypi">breezy</remote-id> + </upstream> +</pkgmetadata> |