From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/brotlipy/
Date: Sun, 24 Jun 2018 14:55:32 +0000 (UTC) [thread overview]
Message-ID: <1529852126.413d2406cb7ed7ce1171d8692a9cd2c7a5b6b1df.mgorny@gentoo> (raw)
commit: 413d2406cb7ed7ce1171d8692a9cd2c7a5b6b1df
Author: Oleksandr Trotsenko <oleksandr.trotsenko <AT> gmail <DOT> com>
AuthorDate: Thu Jun 7 18:06:52 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 24 14:55:26 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=413d2406
dev-python/brotlipy: Introducing the package
Introduce the dev/python/brotlipy package into Gentoo.
Closes: https://bugs.gentoo.org/654854
Closes: https://github.com/gentoo/gentoo/pull/8261
Package-Manager: Portage-2.3.40, Repoman-2.3.9
dev-python/brotlipy/Manifest | 2 ++
dev-python/brotlipy/brotlipy-0.7.0.ebuild | 48 +++++++++++++++++++++++++++++++
dev-python/brotlipy/metadata.xml | 12 ++++++++
3 files changed, 62 insertions(+)
diff --git a/dev-python/brotlipy/Manifest b/dev-python/brotlipy/Manifest
new file mode 100644
index 00000000000..d8b0aa25bad
--- /dev/null
+++ b/dev-python/brotlipy/Manifest
@@ -0,0 +1,2 @@
+DIST brotli-46c1a881b41bb638c76247558aa04b1591af3aa7.tar.gz 19840371 BLAKE2B b9a1c3c2e5b62bd63b392debe54bd1732ac1cb31f88500f0142108b453649d96901d9a03b6db98642cb9abaf9188c06d440f2b8bd3cf57fbbb52196a931f5079 SHA512 dc573c90491032a205f32f0ce9c93e95b06c70a3107caa9501e038a212226c37117d63709a29843367344bf7d18cf32d0c0578b11166387198e12b38b1522406
+DIST brotlipy-0.7.0.tar.gz 19375 BLAKE2B 035dc8757e491bc4fc0d8e2b6b82703eecc8f6f4150da42fda0f6c6f42a617519f5191371eb1dd976b8bbfeab88845bb018b874a395cdbf0ff409a6911f969f5 SHA512 bec8183cf3cc8ba9e594d1a86a8a33d88a6ac8e9c6a6287c837bda3726183ff1b486f2c49da4e489b5b3cb51b57dd5816413b59419920c2ced48435221f1beaf
diff --git a/dev-python/brotlipy/brotlipy-0.7.0.ebuild b/dev-python/brotlipy/brotlipy-0.7.0.ebuild
new file mode 100644
index 00000000000..8d08a0abeed
--- /dev/null
+++ b/dev-python/brotlipy/brotlipy-0.7.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+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="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
+DEPEND="
+ ${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+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."
+
+ eapply_user
+}
+
+python_test() {
+ py.test -v || die "Testing failed"
+}
diff --git a/dev-python/brotlipy/metadata.xml b/dev-python/brotlipy/metadata.xml
new file mode 100644
index 00000000000..e7214b7e32c
--- /dev/null
+++ b/dev-python/brotlipy/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>oleksandr.trotsenko@gmail.com</email>
+ <name>Oleksandr Trotsenko</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
next reply other threads:[~2018-06-24 14:55 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-24 14:55 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-07-14 12:27 [gentoo-commits] repo/gentoo:master commit in: dev-python/brotlipy/ Michał Górny
2019-07-22 14:12 Aaron Bauman
2019-07-29 10:48 Mikle Kolyada
2019-07-31 14:32 Mikle Kolyada
2019-07-31 14:32 Mikle Kolyada
2019-11-22 11:44 Michał Górny
2019-11-22 11:44 Michał Górny
2019-11-26 19:35 Sergei Trofimovich
2019-12-08 10:58 Sergei Trofimovich
2020-03-14 18:20 Mikle Kolyada
2020-03-14 22:11 Sergei Trofimovich
2020-03-16 5:54 Matt Turner
2020-03-27 18:19 Sergei Trofimovich
2020-03-29 21:21 Sergei Trofimovich
2020-04-04 10:52 Sergei Trofimovich
2020-04-08 14:01 Agostino Sarubbo
2020-04-11 12:08 Mart Raudsepp
2020-04-25 9:07 Michał Górny
2020-04-26 23:28 Jonas Stein
2020-04-27 7:18 Michał Górny
2020-04-27 7:18 Michał Górny
2020-04-27 9:30 Michał Górny
2020-05-25 19:48 Michał Górny
2020-07-14 15:22 Sam James
2020-07-14 16:32 Sam James
2020-07-14 16:58 Sergei Trofimovich
2020-09-20 10:47 Michał Górny
2020-11-28 8:35 Sam James
2020-12-20 9:37 Fabian Groffen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1529852126.413d2406cb7ed7ce1171d8692a9cd2c7a5b6b1df.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox