diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/speaklater |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/speaklater')
-rw-r--r-- | dev-python/speaklater/Manifest | 5 | ||||
-rw-r--r-- | dev-python/speaklater/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/speaklater/speaklater-1.3-r1.ebuild | 32 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/speaklater/Manifest b/dev-python/speaklater/Manifest new file mode 100644 index 000000000000..515bedd51b50 --- /dev/null +++ b/dev-python/speaklater/Manifest @@ -0,0 +1,5 @@ +DIST speaklater-1.3.tar.gz 3582 SHA256 59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9 SHA512 ae137d94c497cd4214e230c8906f3ba40e092f248206d37b61de2571567e39e27b7f58bcf2145bd0c81c195c3c5ed03fc0428e0a50c657c5c909ec82719454ef WHIRLPOOL 9e9edc0f6b9943f515eb36a13b038402e4093dfeb302f856858000ce87316508d31aafaf85e67e332b8bdfccec518912d87c61b3e45c930bd22bafc3dae8e1f9 +EBUILD speaklater-1.3-r1.ebuild 800 SHA256 a48e625be3c381956b402c02f0f227d7e550d875c6414dc7a5191969197a7333 SHA512 ad57ebea2ffc6a8c2b8ddef9ba1b07ded60615b1b41fd3137b01d3938650210a0840091246a77a74ededcfa885e67b26b25fcca61285290c0ecebe831225453f WHIRLPOOL 53a874c92122a6b837b9888529fc101144d7b1488f1546836619d5babc059fdfef487808787f28eb63cca81a518802f37d8d2a325119ccb70341d52d9074856a +MISC ChangeLog 2851 SHA256 d72de598751f885532b0155663ab482d504506ea78d0fb8b70e38963c97d4280 SHA512 111d015834abbc15a65e41fcfa9c03bf6053244b2ed2035dd9525528b64af0e20925266446f122a4ae12d873f1aff1a35abf98e69a72a8234eed5d41f71b714e WHIRLPOOL f02c7f5a3bcdd3e247810836d8046606d6c16146f8128c6741074cdbf963b3f3b577639e0c04c3764d81403ad865cdb8e77ee6c15b659aa37148c7a528b9de9e +MISC ChangeLog-2015 1361 SHA256 d5ff6d09c5b2097f65c8e3b08c41ab73b85301a99c79ab3a33b7c23a5fb98a09 SHA512 2e4e763186acf427a2b9c5a638b83c1324af54fdb915fe85cf3506cb2603ecb3222c5c95f7c4061a9362b331caa929e25ca97fea56d40dd53ee8dae13d9589b7 WHIRLPOOL 00d7a4034e68e63c355a0d18b96d11621650283dd4ad113d023ee23cc8fe7148275427a735210979fa2edd2193159f7a570907a73d7db0f9fd19b107650c7d6e +MISC metadata.xml 455 SHA256 4df3190756bda26368b6b28c1f27002e39315c5cbc07429b20466da27625ed87 SHA512 8108151c4b3dec1c435e76c7caea98d68913812d32ae75cc72d000fbe90d20ad726dbbaa1186ea1443d1c4323785bab06006a4bb3176684fea6e534ab3d21e91 WHIRLPOOL 209cddb7f410ccaf331bb9c871fd4a9dab8324e4e0f895d780e52c4f537b6bd220578cb3e0f469151a0dcfebfe2c16e8342d508ef9e20ebb3ea3508251e4f79a diff --git a/dev-python/speaklater/metadata.xml b/dev-python/speaklater/metadata.xml new file mode 100644 index 000000000000..f4503d2e5e21 --- /dev/null +++ b/dev-python/speaklater/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">speaklater</remote-id> + <remote-id type="github">mitsuhiko/speaklater</remote-id> + <bugs-to>https://github.com/mitsuhiko/speaklater/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/dev-python/speaklater/speaklater-1.3-r1.ebuild b/dev-python/speaklater/speaklater-1.3-r1.ebuild new file mode 100644 index 000000000000..dc338920e916 --- /dev/null +++ b/dev-python/speaklater/speaklater-1.3-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) +inherit distutils-r1 + +DESCRIPTION="Lazy strings for Python" +HOMEPAGE="https://github.com/mitsuhiko/speaklater" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="" + +python_prepare() { + # https://github.com/mitsuhiko/speaklater/issues/2 + if python_is_python3; then + 2to3 -n -w --no-diffs ${PN}.py || die + 2to3 -d -n -w --no-diffs ${PN}.py || die + # fix unicode in doctests + sed -ri "s/(^ {4}l?)u'/\1'/" ${PN}.py || die + fi +} + +python_test() { + "${PYTHON}" -m doctest -v ${PN}.py || die "tests failed with ${EPYTHON}" +} |