From deba8115d2c2af26df42966b91ef04ff4dd79cde Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 May 2020 11:09:11 +0100 Subject: gentoo resync : 14.05.2020 --- dev-python/brotlipy/Manifest | 4 +- dev-python/brotlipy/brotlipy-0.7.0-r1.ebuild | 55 ---------------------------- dev-python/brotlipy/brotlipy-0.7.0-r2.ebuild | 50 +++++++++++++++++++++++++ dev-python/brotlipy/metadata.xml | 8 +--- 4 files changed, 54 insertions(+), 63 deletions(-) delete mode 100644 dev-python/brotlipy/brotlipy-0.7.0-r1.ebuild create mode 100644 dev-python/brotlipy/brotlipy-0.7.0-r2.ebuild (limited to 'dev-python/brotlipy') diff --git a/dev-python/brotlipy/Manifest b/dev-python/brotlipy/Manifest index cf150750dd99..7d36ef56ca71 100644 --- a/dev-python/brotlipy/Manifest +++ b/dev-python/brotlipy/Manifest @@ -1,5 +1,5 @@ AUX brotlipy-0.7.0-test-deadline.patch 913 BLAKE2B f7a57989defc3cbc6aa0f29d9db73d7aaf5abae22609b4d501699b4e5195f50fa8025feee64e7935584868d5100f3e088abcc2086056058464f3f4ad14a939e6 SHA512 c125622a149582b0e45397877f4f609ced2d9b388ed101a7a5c0bdbdbb849093538be5ba12e6d549c7a9fea1df3c74dc8dcc3d4bc894bb2ebae0117440b1d5af DIST brotli-46c1a881b41bb638c76247558aa04b1591af3aa7.tar.gz 19840371 BLAKE2B b9a1c3c2e5b62bd63b392debe54bd1732ac1cb31f88500f0142108b453649d96901d9a03b6db98642cb9abaf9188c06d440f2b8bd3cf57fbbb52196a931f5079 SHA512 dc573c90491032a205f32f0ce9c93e95b06c70a3107caa9501e038a212226c37117d63709a29843367344bf7d18cf32d0c0578b11166387198e12b38b1522406 DIST brotlipy-0.7.0.tar.gz 19375 BLAKE2B 035dc8757e491bc4fc0d8e2b6b82703eecc8f6f4150da42fda0f6c6f42a617519f5191371eb1dd976b8bbfeab88845bb018b874a395cdbf0ff409a6911f969f5 SHA512 bec8183cf3cc8ba9e594d1a86a8a33d88a6ac8e9c6a6287c837bda3726183ff1b486f2c49da4e489b5b3cb51b57dd5816413b59419920c2ced48435221f1beaf -EBUILD brotlipy-0.7.0-r1.ebuild 1622 BLAKE2B 1bd30c1056d090af443dfa15fff985e7b1efc2754a744b83436e95302b62d5354fbec9a7caa62553a48174c086464608398c6834b6425dd3a537e25d984d7096 SHA512 cc9bec766b2d7cc88d873297b2dabf6208782286c17f63c4547a6359e659394665a2d96506f56bdcc9833acf821ccf1b8b564d88191290e65e15f8ca246837b5 -MISC metadata.xml 381 BLAKE2B 0ce0f75aab60659850e7d04532911feea89a4bccf8ec7826ebfb924416af438d5a2bf7981435a22e825b39881ac20a8b2a0bd93a66b2d7b031c72123033f1d78 SHA512 9b3a37c75a62f1873288ffba45ab105225a90d72e01c7ead253b5a903ec28babe152074cc7595d6398104f8ccc50ebfc71ff72c4e620a7dad1b5e57f767cd118 +EBUILD brotlipy-0.7.0-r2.ebuild 1535 BLAKE2B f1058826735f7232a7f0c66565a9eda31ddc028f50bfe53679538fffd8c824d66f47ea22824ea691cf7162924fc0826710849ef497ccd2fa10398c88d6f15357 SHA512 1b98119e36c39ccf1883e110ee582cc616cfa211dc2018c6f181904eb207ebac67bed5b729e8cf1bb5b3eb7b94ab4583b81974d410d9e9828753c29c787ddbbc +MISC metadata.xml 240 BLAKE2B 41e6a4d9da33dab2decc5ff419924f382a8f64d27a81fdb97576db8c6cf125be95911747946ec8be1b453f56617fef1084f5947f84b50a8db419d46df2ae8a0f SHA512 9c23321eaa853f851bf00195ea64ac2ba093e516f9b57855ee5aa58fbb1988130c9f0c17c2a9ce9fae4ee033e0a28a70c868e0f5acdfa1dd316ab533c5279d59 diff --git a/dev-python/brotlipy/brotlipy-0.7.0-r1.ebuild b/dev-python/brotlipy/brotlipy-0.7.0-r1.ebuild deleted file mode 100644 index 7cd6af268498..000000000000 --- a/dev-python/brotlipy/brotlipy-0.7.0-r1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_6,3_7,3_8} pypy3 ) - -inherit distutils-r1 - -# Commit of the Brotli library bundled within brotlipy. -BROTLI_BUNDLED_COMMIT="46c1a881b41bb638c76247558aa04b1591af3aa7" - -DESCRIPTION="Python binding to the Brotli library" -HOMEPAGE="https://github.com/python-hyper/brotlipy/ https://pypi.python.org/pypi/brotlipy" -SRC_URI=" - https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://github.com/google/brotli/archive/${BROTLI_BUNDLED_COMMIT}.tar.gz -> brotli-${BROTLI_BUNDLED_COMMIT}.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 sparc x86" -IUSE="test" -RESTRICT="!test? ( test )" - -# module name collision with app-arch/brotli -RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}] - !app-arch/brotli[python]" -DEPEND=" - ${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}"/brotlipy-0.7.0-test-deadline.patch -) - -src_prepare() { - # Inject the brotli lib. - rm -r "${WORKDIR}/${P}/libbrotli" || die "Could not remove the bundled brotli lib folder." - cp -r "${WORKDIR}/brotli-${BROTLI_BUNDLED_COMMIT}/" "${WORKDIR}/${P}/libbrotli" || die "Could not inject the brotli lib." - - # Tests fail if we have this folder preserved within the lib. - rm -r "${WORKDIR}/${P}/libbrotli/python" || die "Could not remove 'python' subfolder." - - distutils-r1_src_prepare -} - -python_test() { - pytest -vv || die "Testing failed" -} diff --git a/dev-python/brotlipy/brotlipy-0.7.0-r2.ebuild b/dev-python/brotlipy/brotlipy-0.7.0-r2.ebuild new file mode 100644 index 000000000000..19c941192db1 --- /dev/null +++ b/dev-python/brotlipy/brotlipy-0.7.0-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_6,3_7,3_8} pypy3 ) + +inherit distutils-r1 + +# Commit of the Brotli library bundled within brotlipy. +BROTLI_BUNDLED_COMMIT="46c1a881b41bb638c76247558aa04b1591af3aa7" + +DESCRIPTION="Python binding to the Brotli library" +HOMEPAGE="https://github.com/python-hyper/brotlipy/ https://pypi.python.org/pypi/brotlipy" +SRC_URI=" + https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/google/brotli/archive/${BROTLI_BUNDLED_COMMIT}.tar.gz -> brotli-${BROTLI_BUNDLED_COMMIT}.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 sparc x86" + +# module name collision with app-arch/brotli +RDEPEND=" + virtual/python-cffi[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' -2) + !app-arch/brotli[python]" +DEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/brotlipy-0.7.0-test-deadline.patch +) + +src_prepare() { + # Inject the brotli lib. + rm -r "${WORKDIR}/${P}/libbrotli" || die "Could not remove the bundled brotli lib folder." + cp -r "${WORKDIR}/brotli-${BROTLI_BUNDLED_COMMIT}/" "${WORKDIR}/${P}/libbrotli" || die "Could not inject the brotli lib." + + # Tests fail if we have this folder preserved within the lib. + rm -r "${WORKDIR}/${P}/libbrotli/python" || die "Could not remove 'python' subfolder." + + distutils-r1_src_prepare +} diff --git a/dev-python/brotlipy/metadata.xml b/dev-python/brotlipy/metadata.xml index e7214b7e32c5..7f4f33c6dbc9 100644 --- a/dev-python/brotlipy/metadata.xml +++ b/dev-python/brotlipy/metadata.xml @@ -1,12 +1,8 @@ - - oleksandr.trotsenko@gmail.com - Oleksandr Trotsenko - - proxy-maint@gentoo.org - Proxy Maintainers + python@gentoo.org + Python -- cgit v1.2.3