diff options
author | Joonas Niilola <juippis@gentoo.org> | 2019-09-01 10:30:57 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-09-01 10:32:21 +0300 |
commit | da545a390ed3136b3b980621d09db4bd8eb9aeac (patch) | |
tree | eff24a835b2ed934cdbaf2e302e236729dca417f /dev-python/mini-amf | |
parent | package.mask: Last rite games-strategy/netpanzer (diff) | |
download | gentoo-da545a390ed3136b3b980621d09db4bd8eb9aeac.tar.gz gentoo-da545a390ed3136b3b980621d09db4bd8eb9aeac.tar.bz2 gentoo-da545a390ed3136b3b980621d09db4bd8eb9aeac.zip |
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@gentoo.org>
Diffstat (limited to 'dev-python/mini-amf')
-rw-r--r-- | dev-python/mini-amf/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mini-amf/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/mini-amf/mini-amf-0.9.1.ebuild | 49 |
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/mini-amf/Manifest b/dev-python/mini-amf/Manifest new file mode 100644 index 000000000000..d1d1666a4739 --- /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 000000000000..6b0a0fb3a729 --- /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>juippis@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 000000000000..3a0d464b7280 --- /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 +} |