summaryrefslogtreecommitdiff
path: root/dev-python/python-termstyle
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-termstyle')
-rw-r--r--dev-python/python-termstyle/Manifest6
-rw-r--r--dev-python/python-termstyle/files/tests-unicode.patch10
-rw-r--r--dev-python/python-termstyle/metadata.xml11
-rw-r--r--dev-python/python-termstyle/python-termstyle-0.1.10.ebuild36
4 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/python-termstyle/Manifest b/dev-python/python-termstyle/Manifest
new file mode 100644
index 000000000000..b41f81d98666
--- /dev/null
+++ b/dev-python/python-termstyle/Manifest
@@ -0,0 +1,6 @@
+AUX tests-unicode.patch 212 SHA256 d652a2bccf4b69b6a04c5494f62dd06671f161188d46e311083dd016d97b2a9f SHA512 cdb60f341dd186febe72e09586a7b1d65087c0773b1192d9725188cfa4b9bae902026ec7bb723359863695e08992b2b5bae2a25d7aed0c2018dd22dadb8b850b WHIRLPOOL 34f7d386243f9fc5ce0e14dc1d191bf8de868c0a249d57997e13fb216350c302335b4dcab2ec364748af296d5f9b757ad1aadb40e4c1e1104f2dbce1b43eb79c
+DIST python-termstyle-0.1.10.tar.gz 5025 SHA256 b5af30d1d1b8853c779da97438f237d791d8bf37f577e9cf1c3927198c3c0ca9 SHA512 a0ed484da8da10c7fe1b8422a26861fb115dc29c49ce79c113053f913d3371edf6222de1ccf40e6aa34c3cfa9da5805eb3928fb07bfae18a13683621d7547743 WHIRLPOOL 485d80720c3382e61e46bb85349a7d6136363dab04e4ccf6a63a2ddccfcce29d8b4af0d13fd46de338f473232cfaf032b9ec6d8731d52a3af94e357de687c8f4
+EBUILD python-termstyle-0.1.10.ebuild 836 SHA256 4d068f10d75f922a40d223ee369ba9c99613679c326ae4d7e08af4b8f929053f SHA512 9f9366f1470adce600cc42d3045340e1d2aa99edc4ee79f991c03b374b7fde56ee0ebebe8e57e998bf15bb0969b16d50e1608e482ce84fa1ab29e78416016eae WHIRLPOOL 208c5b3156b69e55a8bf130b13bd3592230ce950180780231f6b52eb487edb00512348d781122b5e9cf4b33cf24e8c4efcf4ac355dc9dfee1db43a385a56538a
+MISC ChangeLog 2581 SHA256 21a044e782e8b059025eb45d794c77a86bd00f28e6923a2447da7cedd04201b4 SHA512 32432ec05219066fed32e2c70767f21fc5590e594380eefc8d0af34572c4406d46dd88e7f2f972e2f0c294bafd7f3089cc70c64e2717747213dfcea7cd42f590 WHIRLPOOL dacb88ff70f31f6e6ddcfbc01d9be28279bb6fa6ea3b3afa7091df692ca098acc1c35e10b1d43552f00a119cb6514917f424f79fef326e1bf5071c56892b1835
+MISC ChangeLog-2015 860 SHA256 a301aca10cf18bf0c4de7f8623ab721188288830c8233db675fd3334b682d2f2 SHA512 ad26069d29132bffb856a770641dadfc41b89b9dd199252d06d5046ca1103b4913e258047960729e65ab8afc6aff2ce542df8b017e2028d59220bd6bdc149786 WHIRLPOOL e8e7a70c77dc776ea9f8738f3e50ad658f03a6bedbf8249df2c6be0995ee91c9333d578ec58696d56ca53317cc44bbf7b2655cf0c6c188110d6b1e8a5d9f1800
+MISC metadata.xml 328 SHA256 3558ae757da069ac66e14cb43a75c798536580914ff1f3d4412b5943fdf0704b SHA512 56d5f1f0af83c0dd151edb1d0607316ce3ee416246d4d8faaffbabc842d9aaa4907bbf4de810ef81e42315183bc606223fe133da84c553419a86a80e07cae882 WHIRLPOOL 6438c1ce8570dcb0fd9fbd9893012f1d9fc6383d92c141fd78eba0a7a98b1bddf24c825c958661faa2f8220f203664fecb45f5e5f49459471aea6108e26e8526
diff --git a/dev-python/python-termstyle/files/tests-unicode.patch b/dev-python/python-termstyle/files/tests-unicode.patch
new file mode 100644
index 000000000000..4cb410fa1984
--- /dev/null
+++ b/dev-python/python-termstyle/files/tests-unicode.patch
@@ -0,0 +1,10 @@
+diff --git a/test2.py b/test2.py
+index 2d84c37..1331545 100755
+--- a/test2.py
++++ b/test2.py
+@@ -2,4 +2,4 @@
+
+ from termstyle import *
+
+-print green(u"unicod\xe9!")
++print green(u"unicod\xe9!".encode('utf-8'))
diff --git a/dev-python/python-termstyle/metadata.xml b/dev-python/python-termstyle/metadata.xml
new file mode 100644
index 000000000000..92c4a9f7fdc3
--- /dev/null
+++ b/dev-python/python-termstyle/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">gfxmonk/termstyle</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/python-termstyle/python-termstyle-0.1.10.ebuild b/dev-python/python-termstyle/python-termstyle-0.1.10.ebuild
new file mode 100644
index 000000000000..63bbddb076da
--- /dev/null
+++ b/dev-python/python-termstyle/python-termstyle-0.1.10.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="console colouring for python"
+HOMEPAGE="http://gfxmonk.net/dist/0install/python-termstyle.xml"
+SRC_URI="https://github.com/gfxmonk/${PN#*-}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ppc64 x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}"/tests-unicode.patch
+ )
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ if [[ "${EPYTHON}" = "python2.7" ]]; then
+ "${PYTHON}" test2.py || die "test2.py failed under ${EPYTHON}"
+ else
+ "${PYTHON}" test3.py || die "test3.py failed under ${EPYTHON}"
+ fi
+}