diff options
author | Alex Brandt <alunduil@gentoo.org> | 2014-10-12 15:44:09 +0000 |
---|---|---|
committer | Alex Brandt <alunduil@gentoo.org> | 2014-10-12 15:44:09 +0000 |
commit | 1f097451715f4f14f3ef3809fff3d8c691fa9714 (patch) | |
tree | 6d901450e1be06f6113f560c6eea68c6b9dfb014 /dev-python/python-termstyle | |
parent | Bump to EAPI=5 (diff) | |
download | historical-1f097451715f4f14f3ef3809fff3d8c691fa9714.tar.gz historical-1f097451715f4f14f3ef3809fff3d8c691fa9714.tar.bz2 historical-1f097451715f4f14f3ef3809fff3d8c691fa9714.zip |
add ebuild for python-termstyle
Package-Manager: portage-2.2.14_rc1/cvs/Linux x86_64
Manifest-Sign-Key: 0x11A8217C!
Diffstat (limited to 'dev-python/python-termstyle')
-rw-r--r-- | dev-python/python-termstyle/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/python-termstyle/Manifest | 25 | ||||
-rw-r--r-- | dev-python/python-termstyle/files/tests-unicode.patch | 10 | ||||
-rw-r--r-- | dev-python/python-termstyle/metadata.xml | 10 | ||||
-rw-r--r-- | dev-python/python-termstyle/python-termstyle-0.1.10.ebuild | 36 |
5 files changed, 90 insertions, 0 deletions
diff --git a/dev-python/python-termstyle/ChangeLog b/dev-python/python-termstyle/ChangeLog new file mode 100644 index 000000000000..0a2410e67ef1 --- /dev/null +++ b/dev-python/python-termstyle/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-python/python-termstyle +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-termstyle/ChangeLog,v 1.1 2014/10/12 15:44:02 alunduil Exp $ + +*python-termstyle-0.1.10 (12 Oct 2014) + + 12 Oct 2014; Alex Brandt <alunduil@gentoo.org> +files/tests-unicode.patch, + +metadata.xml, +python-termstyle-0.1.10.ebuild: + add ebuild for python-termstyle diff --git a/dev-python/python-termstyle/Manifest b/dev-python/python-termstyle/Manifest new file mode 100644 index 000000000000..603055d75dff --- /dev/null +++ b/dev-python/python-termstyle/Manifest @@ -0,0 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +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 925 SHA256 7461829484ede729c4b516ff8cdc1804184ad9d94ed49455f756179b6bb2dc9e SHA512 9777a8873d98087f5ce50d0e2a9dc08a484847d978b7bd50a65ae56216939482056bfda22bc65a535803ea8b3a25e51c556cc09fe15583d8e304e1022edebe47 WHIRLPOOL 35bce46cdf362292ed016e7b1308e705de14db07db7aa914d850d41cf92d55a915c21a47c8d6f8a8c4934f1d17872180a6c81167d9891c2dc064e1267cce4cf5 +MISC ChangeLog 430 SHA256 de73dfd074d1a4abf5589a80bbfc7894fb02c72ba141ca5de08fafd0359d90bb SHA512 3392a9e68d57378bd2d0cafa379b002a2491ade44027fd2dd9ecbaab5e7af005cbdb39f802bcf6c4d7ef4f4b497f6aedd2eeeb79a7650f4f05e9cebb09c066eb WHIRLPOOL 5766e8532623eefe7304e5a2c421d796fb17ef5ff4bb5bf2caa3610adeb68082b000bf4c036f6959b7678a415a6c2c79b2836ff1bbdaac37a5ee77d5208e1eef +MISC metadata.xml 281 SHA256 4f517e212ebf30022599267011b7d752fb61f1063c90f9d442242fba23e5207f SHA512 c4d7e9c37508015a286fc8288d3c201c5779aca1252bc6ed7f25ce87555b513817d4e3fa624255e7644b24e4db0e1b976ea34810ece8f718dac3b027a3e601ba WHIRLPOOL d144bd0785d423f05e5ff568d7c7c5b6f4aa6d651d44ec9f55dce23aafc6552d0d39f8229a612109665cfb3e839ff746e64c0cb0130fe93e9f231238c61a87ba +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCAAGBQJUOqHDAAoJECZUyt4RqCF8regQAIaJpiChPuY1r3h8QM0WzGqj +xfBgv2JKHWOLZ6lfjtd0VNyK1ZIPgl76RdCFMpLGMeJQfLf4Uzv0Sta8g354WkGq +4H6RoQ9IURcRm0cKKmDaqedk9ZpqUYt/A8lsZOKf4zdCUUca+YoFK8SUVj0tOxHq +FHGO9uauoIOISQdbeVVbMKAvmZulV8f9qoJNFdssJS94koMUReuFqEPw3txFaI25 +Foi/yswwtBs15W5lVZNa1RBEd3Z0dbGcMgau+LacZhRTdmHvsFsxNP+xSFpc598V +8uajwLxAjYRv6KiOm7x1irQlJ5j9rdP7VO6b5JKHX845QuKoSYRpjm59cFUsBzMG +2QMY1NdH0/aNquzNTpnITLXkzOPkPtNgkcxqrPLpsGs4C7O7CebhpNMD8j8HDwgF +GpSbkZJdvDimELccLx1PDT+45Q2DPxFd72vJ7T2nRZyw2lsASvJWrGXYTcQnoucN +vniYb6w32iHh7SP/FjlVVdYQT5U3XgymRbJ/FNijVgPbET0x+9/iByYQDX7+gw9h +QnPxeeKDSF2EthTGFwEA8PCI+XfJPqyDLVZpdRxGDeQ51FIdN9UzrQqqK3VEiQyj +PYrdSlr+UJET3zcRDa06ugDoyxelXtiKFZiCqgtPuzQ/Xzlv+BR7U0uN5DwOe6kq +wapnI47lb7Mp0hvWtsza +=ryDs +-----END PGP SIGNATURE----- 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..02be8c5eb78f --- /dev/null +++ b/dev-python/python-termstyle/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>alunduil@gentoo.org</email> + <name>Alex Brandt</name> + </maintainer> + <longdescription lang="en"> + </longdescription> +</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..824311d4c559 --- /dev/null +++ b/dev-python/python-termstyle/python-termstyle-0.1.10.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-termstyle/python-termstyle-0.1.10.ebuild,v 1.1 2014/10/12 15:44:02 alunduil Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_3 ) + +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" +IUSE="" + +DEPEND="dev-python/setuptools" +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 +} |