dev-python/asciimatics: New package

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Matthias Coppens <coppens.matthias.abc@gmail.com>
This commit is contained in:
Matthias Coppens
2020-08-31 14:18:54 +02:00
parent 64605ee7aa
commit 3a8b42b7f2
4 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST asciimatics-1.11.0.tar.gz 1544889 BLAKE2B 98492a3bef25331daf085bfd93e17a244cd70939d06ead1c4e6dfa546411e268b7c278b7e05046c42d59faf35d85c6c584663aac3566ef82e682740f9fa67fa4 SHA512 7703e29955c984cb091a1cfda01abf31ad108da0488d0dd1c941593689cc4ebb899565471d5d4396b910a9770e640e0cba835c4dac203bd1c4a853ce7dcaacbc

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Package for curses-like operations, text UIs and ASCII art animations"
HOMEPAGE="https://pypi.org/project/asciimatics/ https://github.com/peterbrittain/asciimatics"
if [[ "${PV}" == 9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/peterbrittain/asciimatics.git"
else
SRC_URI="https://github.com/peterbrittain/asciimatics/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="Apache-2.0"
SLOT="0"
RESTRICT="mirror test"
RDEPEND="
>=dev-python/pyfiglet-0.7.2[${PYTHON_USEDEP}]
>=dev-python/pillow-2.7.0[${PYTHON_USEDEP}]
dev-python/wcwidth[${PYTHON_USEDEP}]
dev-python/future[${PYTHON_USEDEP}]
"
src_prepare() {
default
sed -i -e "s/use_scm_version={/\0'fallback_version': '${PV}',/" setup.py
}

View File

@@ -0,0 +1,39 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Package for curses-like operations, text UIs and ASCII art animations"
HOMEPAGE="https://pypi.org/project/asciimatics/ https://github.com/peterbrittain/asciimatics"
if [[ "${PV}" == 9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/peterbrittain/asciimatics.git"
else
SRC_URI="https://github.com/peterbrittain/asciimatics/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="Apache-2.0"
SLOT="0"
RESTRICT="mirror"
RDEPEND="
>=dev-python/pyfiglet-0.7.2[${PYTHON_USEDEP}]
>=dev-python/pillow-2.7.0[${PYTHON_USEDEP}]
dev-python/wcwidth[${PYTHON_USEDEP}]
dev-python/future[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
${RDEPEND}
dev-python/mock
)
"
distutils_enable_tests nose

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>coppens.matthias.abc@gmail.com</email>
<name>Matthias Coppens</name>
</maintainer>
<upstream>
<doc>https://asciimatics.readthedocs.io/en/stable/</doc>
<remote-id type="github">peterbrittain/asciimatics</remote-id>
<bugs-to>https://github.com/peterbrittain/asciimatics/issues</bugs-to>
</upstream>
</pkgmetadata>