dev-python/six-python2: Move six to python2

mhiretskiy
parent 5c03cba55c
commit 8749ed89fe

@ -33,7 +33,7 @@ RDEPEND="
libressl? ( >=dev-libs/libressl-2.8:0= )
idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] )
dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
>=dev-python/six-python2-1.4.1[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/enum34[${PYTHON_USEDEP}]
dev-python/ipaddress[${PYTHON_USEDEP}]

@ -22,6 +22,7 @@ RESTRICT="test"
# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
RDEPEND="
!dev-python/lxml[python_targets_python2_7]
>=dev-libs/libxml2-2.9.5
>=dev-libs/libxslt-1.1.28"
DEPEND="${RDEPEND}"

@ -27,7 +27,7 @@ RESTRICT="test"
RDEPEND="
!dev-python/pyopenssl[python_targets_python2_7]
>=dev-python/six-1.5.2[${PYTHON_USEDEP}]
>=dev-python/six-python2-1.5.2[${PYTHON_USEDEP}]
dev-python/cryptography-python2"
DEPEND="${RDEPEND}"

@ -0,0 +1 @@
DIST six-1.15.0.tar.gz 33917 BLAKE2B 57e852b6c35dd19e256814c0371cfbc26141b0f25a31f79a1cbd1b0cdd7d3cacf1236b96f5452f968cc426e6dff4d1ad70a9f2432bc361ba3c8c17fd40fe7582 SHA512 eb840ac17f433f1fc4af56de75cfbfe0b54e6a737bb23c453bf09a4a13d768d153e46064880dc763f4c5cc2785b78ea6d3d3b4a41fed181cb9064837e3f699a9

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<herd>maintainer-wanted</herd>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">six</remote-id>
<remote-id type="github">benjaminp/six</remote-id>
</upstream>
</pkgmetadata>

@ -0,0 +1,32 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
MY_PN=six
MY_P=$MY_PN-$PV
DESCRIPTION="Python 2 and 3 compatibility library"
HOMEPAGE="https://github.com/benjaminp/six https://pypi.org/project/six/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
RESTRICT="test"
S="${WORKDIR}/${MY_PN}-${PV}"
RDEPEND="
!dev-python/six[python_targets_python2_7]
"
distutils_enable_sphinx documentation --no-autodoc
python_install_all() {
distutils-r1_python_install_all
rm -r ${D}/usr/share
}
Loading…
Cancel
Save