parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 0bf01889f0a18826517b286fbf08842907cb96ab
parent 9f0151fde33db2c076c25f2bb4dd77e31e216436
Author: parazyd <parazyd@dyne.org>
Date:   Thu,  5 Nov 2020 10:08:33 +0100

dev-vcs/bzr: Add 2.7.1_pre

Diffstat:
Adev-vcs/bzr/Manifest | 1+
Adev-vcs/bzr/bzr-2.7.1_pre.ebuild | 88+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adev-vcs/bzr/metadata.xml | 8++++++++
3 files changed, 97 insertions(+), 0 deletions(-)

diff --git a/dev-vcs/bzr/Manifest b/dev-vcs/bzr/Manifest @@ -0,0 +1 @@ +DIST bzr-2.7.1_pre.tar.gz 10964137 BLAKE2B d126730d782f232d6c486e31ab465a1a295de456eb59fc1db4d215529ec38e78826da1bedbe6a80af0e874188635c83742c5ae5b07c42dd968f1d0d88596a35e SHA512 b65c63dff33f1646e6db84d9307b870140c2c7b3b16cef69eb4bfb5a5a94cb1721ed74c26e6ad78232fffb4b5055cb4096d9835197db9b97f91c16e8a79658b3 diff --git a/dev-vcs/bzr/bzr-2.7.1_pre.ebuild b/dev-vcs/bzr/bzr-2.7.1_pre.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="threads,ssl,xml" + +DESCRIPTION="Bazaar is a next generation distributed version control system" +HOMEPAGE="http://bazaar-vcs.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris" +IUSE="curl doc +sftp test" +PLOCALES="ar ast bs ca cs de el en_AU en_GB es fa fo fr gl he id it ja ko ms my nb nl oc pl pt_BR ro ru sco si sk sr sv tr ug uk vi zh_CN" + +inherit bash-completion-r1 distutils-r1 flag-o-matic l10n +#SERIES=$(get_version_component_range 1-2) +SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.gz" + +RDEPEND="curl? ( || ( dev-python/pycurl-py2[${PYTHON_USEDEP}] dev-python/pycurl[${PYTHON_USEDEP}] ) ) + sftp? ( || ( dev-python/paramiko-py2[${PYTHON_USEDEP}] dev-python/paramiko[${PYTHON_USEDEP}] ) )" + +DEPEND="|| ( dev-python/cython[${PYTHON_USEDEP}] dev-python/pyrex[${PYTHON_USEDEP}] ) + test? ( ${RDEPEND} + >=dev-python/pyftpdlib-0.7.0[${PYTHON_USEDEP}] + dev-python/subunit + >=dev-python/testtools-0.9.5[${PYTHON_USEDEP}] )" + +# Fails tests bug#487216 +# Upstream is not exactly keen on fixing it +RESTRICT="test" + +python_configure_all() { + rm_loc() { + rm "${S}"/po/$1.po || die + } + l10n_for_each_disabled_locale_do rm_loc + # Generate the locales first to avoid a race condition. + esetup.py build_mo +} + +python_compile() { + if [[ ${EPYTHON} != python3* ]]; then + local CFLAGS=${CFLAGS} + append-cflags -fno-strict-aliasing + fi + distutils-r1_python_compile +} + +python_test() { + # Some tests expect the usual pyc compiling behaviour. + local -x PYTHONDONTWRITEBYTECODE + + # Define tests which are known to fail below. + local skip_tests="(" + # https://bugs.launchpad.net/bzr/+bug/850676 + skip_tests+="per_transport.TransportTests.test_unicode_paths.*" + skip_tests+=")" + if [[ -n ${skip_tests} ]]; then + einfo "Skipping tests known to fail: ${skip_tests}" + fi + + LC_ALL="C" "${PYTHON}" bzr --no-plugins selftest -v \ + ${skip_tests:+-x} "${skip_tests}" || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + # Fixup manpages manually; passing --install-data causes locales to be + # installed in /usr/share/share/locale + dodir /usr/share + mv "${ED%/}"/usr/{man,share/man} || die + + dodoc doc/*.txt + + if use doc; then + docinto developers + dodoc -r doc/developers/* + for doc in mini-tutorial tutorials user-{guide,reference}; do + docinto ${doc} + dodoc -r doc/en/${doc}/* + done + fi + + dobashcomp contrib/bash/bzr || die +} diff --git a/dev-vcs/bzr/metadata.xml b/dev-vcs/bzr/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>parazyd@dyne.org</email> +<name>parazyd</name> +</maintainer> +</pkgmetadata>