commit: da545a390ed3136b3b980621d09db4bd8eb9aeac Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> AuthorDate: Sun Sep 1 07:30:57 2019 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sun Sep 1 07:32:21 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da545a39
dev-python/mini-amf: new package Minimal AMF encoder and decoder for Python, dependency of yle-dl. Package-Manager: Portage-2.3.74, Repoman-2.3.17 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-python/mini-amf/Manifest | 1 + dev-python/mini-amf/metadata.xml | 8 +++++ dev-python/mini-amf/mini-amf-0.9.1.ebuild | 49 +++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/dev-python/mini-amf/Manifest b/dev-python/mini-amf/Manifest new file mode 100644 index 00000000000..d1d1666a473 --- /dev/null +++ b/dev-python/mini-amf/Manifest @@ -0,0 +1 @@ +DIST mini-amf-0.9.1.tar.gz 117016 BLAKE2B 22133a2a6f44ea8d485874924e6175383dfc9301d9bba193e4d9d2fd901671c64be3665617c02223dbd2075141071deed142e804a77816ae11ac4d00e72a870c SHA512 8487baa551a68f7882aedaa8b809089bf2e767b0055f292dab4074d48ed442cabc250297ded91daa2f2a1dcb950ddab5ddff60466ec84ab739a240b8e2665be0 diff --git a/dev-python/mini-amf/metadata.xml b/dev-python/mini-amf/metadata.xml new file mode 100644 index 00000000000..6b0a0fb3a72 --- /dev/null +++ b/dev-python/mini-amf/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>juip...@gentoo.org</email> + <name>Joonas Niilola</name> + </maintainer> +</pkgmetadata> diff --git a/dev-python/mini-amf/mini-amf-0.9.1.ebuild b/dev-python/mini-amf/mini-amf-0.9.1.ebuild new file mode 100644 index 00000000000..3a0d464b728 --- /dev/null +++ b/dev-python/mini-amf/mini-amf-0.9.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5..7} ) +inherit distutils-r1 + +DESCRIPTION="Minimal AMF encoder and decoder for Python" +HOMEPAGE="https://pypi.python.org/pypi/Mini-AMF" +SRC_URI="https://github.com/zackw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RESTRICT="!test? ( test )" + +COMMON_DEPEND="dev-python/defusedxml[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +RDEPEND="${COMMON_DEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${COMMON_DEPEND} + test? ( + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/flake8[${PYTHON_USEDEP}] + )" +BDEPEND="doc? ( dev-python/sphinx )" + +python_test() { + coverage run --source=miniamf setup.py test || die +} + +python_compile_all() { + distutils-r1_python_compile + + if use doc ; then + cd doc/ || die + sphinx-build -b html . _build || die + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/_build/. ) + einstalldocs + + distutils-r1_python_install_all +}