dev-python/typing-python2: перенос пакета для python2

mhiretskiy
parent 7f4a6c8e44
commit 4e37fe6965

@ -23,9 +23,7 @@ RDEPEND="
!dev-python/m2crypto[python_targets_python2_7]
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
$(python_gen_cond_dep '
dev-python/typing[${PYTHON_USEDEP}]
' -2)
dev-python/typing-python2
"
DEPEND="${RDEPEND}"
BDEPEND="

@ -0,0 +1 @@
DIST typing-3.7.4.3.tar.gz 78592 BLAKE2B a47991466db75729620e180d230917cb32158475804b294d2ca956544c575323765bb9d2fd87e723fb8a6c79db4c0c83387fc45fe31f8c55a802bcebe793b997 SHA512 01d3d33bf3264a8929242d58ffa3b6a897a9ce23cb84858871146ed516a6ef2fc222d3001bb5197276da1a374ae243f0ceab0325ae8675ef0ffb76df5065ae1e

@ -0,0 +1,11 @@
<?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">typing</remote-id>
</upstream>
</pkgmetadata>

@ -0,0 +1,30 @@
# 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=typing
MY_P=$MY_PN-$PV
DESCRIPTION="Type Hints for Python"
HOMEPAGE="https://docs.python.org/3/library/typing.html https://pypi.org/project/typing/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~x64-solaris"
IUSE=""
RESTRICT="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="!dev-python/${MY_PN}[python_targets_python2_7]"
S="${WORKDIR}/${MY_PN}-${PV}"
python_install_all() {
distutils-r1_python_install_all
rm -r ${D}/usr/share
}
Loading…
Cancel
Save