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/yapps |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/yapps')
5 files changed, 125 insertions, 0 deletions
diff --git a/dev-python/yapps/Manifest b/dev-python/yapps/Manifest new file mode 100644 index 000000000000..94a654db4630 --- /dev/null +++ b/dev-python/yapps/Manifest @@ -0,0 +1,7 @@ +AUX yapps-Convert-print-statements-to-python3-style-print-func.patch 1572 SHA256 e56191c9545f481320fe7d82d1202f8568887c50158030334217efa042ace8b4 SHA512 36ab43698fc637cd52287c6649be064b04374a22b9e459a53f3e04850d0cf8276e042e45994a3d2e0d0c97e57478321631475170dfe3e8efa8debd3d32ea80a3 WHIRLPOOL 9987e2a32724ba911b1caafa355c63f8563825d075ba785e458af4b9a152959d3b76cbb8c24c68e7a482df835d50c4687bcc585f3c42f7fcc63495dd5f83b588 +AUX yapps-Don-t-capture-sys.stderr-at-import-time.patch 1088 SHA256 6c86b08693c1eafd681081bb30b5c5c5cd034026d499b5d3ec5804f5a4ea2086 SHA512 b3a3de5bc11cfc8926e430ab5d8834f00a15362e7a108ad11d40a2c6f804d51ddffbb467dbe1c767b345c3451f4feef642e1b55a735c5cb85c405e8c3c7c0107 WHIRLPOOL b0db34092542910973477f29504c28f171fd79b70f372127672e7c249d521d65da0b3c1aa48cb5818a1abf3c4bfb65a7ef48349452d34a45405d25d1e118f6f3 +DIST Yapps-2.2.0.tar.gz 13630 SHA256 d6e16a8e22ab559ca52eab58cb0015bb088d6889fa06db795222cdccae2354af SHA512 087f99071b2615f5382f453d9b3492675704aa7e7ff54b332d7c4e337e16fbd3ab3c1b3820a7941775c0b3ecf7e255a7773cb47ea20e8adb77dc3dc8d9a49faa WHIRLPOOL 1db693327d88445657fe0a4221928bdf0b81a6c7a238ad1f15579ea853975ce1da15b31c483a6782d43576b8f32024182d131061952d8d00493ca211b2a10eb2 +EBUILD yapps-2.2.0-r1.ebuild 693 SHA256 72c10a1d85a6875aa284ddf5885d6fb0ac96786a2ac4547fb7279404d3444754 SHA512 b464824fc10d972514dcb11cbcd210f125c26c3e39b3222ef5d1a0c8d5852dae90504b5cd578ef89c7e163e55cf6f49d50b70fb44f1cd01972236c83d9e1b798 WHIRLPOOL f04810b74a214b54869ce78de722c40ec70b61830a5ac68581f883cdb8a55c78d99e16aea6aa1e89f61785316a16ad357f68b0df6057186d066a0b7c28bd3d9e +MISC ChangeLog 2944 SHA256 91f6b5450256b9af6241105f6050bfa26ff34376b8cc791f01948595fbe50b22 SHA512 c929f5f6a6cc3b38912aee96476986cccfcd46b209fda804404dbbfe0c40f63980fc052b345f0186b853da51cbcc7c6b85d5b3b416ec06ff3b96ff4a27f1e8ba WHIRLPOOL 2d2a8a69f5267aa6471348cc0666491362eb799e9658b076fc3f10e9cd0c3d6442b7efe7d3752d64ad99dbdea841e310f479ab93c4facb0f3beeb25db14f7fc7 +MISC ChangeLog-2015 1557 SHA256 4458101de514d793342c979296784c9ad879c4d406f32064c8ac7c929ad42ceb SHA512 caedc101fbb95e54dd7dbb775e40b25c76fe5eca500a4d46293cd3b6ba97715a56cc9114749213159569f91dd2a6b1db81a7594e96a703c11dab209ed2d78a4a WHIRLPOOL 0f348f2479828fd3818f451f58c48154655e01241389ef8f8d5c04560d8f08f58b1f02c7a1ce9d427871f6003874b38f5d9ad35097858ec71b4d466ce02d5a45 +MISC metadata.xml 373 SHA256 9f84b7630c536e6ea81bc214c75505d42ce53905b460401f6d251662043d71b7 SHA512 546f07634ad9ddbbfd3b95c8494f1592f1f38aaaa83f2325a6d0e03bbe64bad498fefef02082c5df8e075763b719993bd09c980f1cf9fdcde433113280edd74b WHIRLPOOL 8f749a468003336d12aed375c4fb0b5e48fb26e76d85bda988e747f19868e662e0d279601593026797a91b3b69d754a0bbd858525f709655e832d54093c35001 diff --git a/dev-python/yapps/files/yapps-Convert-print-statements-to-python3-style-print-func.patch b/dev-python/yapps/files/yapps-Convert-print-statements-to-python3-style-print-func.patch new file mode 100644 index 000000000000..4bff7f8f40dd --- /dev/null +++ b/dev-python/yapps/files/yapps-Convert-print-statements-to-python3-style-print-func.patch @@ -0,0 +1,46 @@ +From d051588873a54860cfb86ec0d330f7d855336618 Mon Sep 17 00:00:00 2001 +From: Julien Cristau <julien.cristau@logilab.fr> +Date: Tue, 2 Dec 2014 10:41:05 +0100 +Subject: [PATCH 2/2] Convert print statements to python3-style print function + +Signed-off-by: Julien Cristau <julien.cristau@logilab.fr> +--- + yapps/runtime.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/yapps/runtime.py b/yapps/runtime.py +index 58017fe..5d40581 100644 +--- a/yapps/runtime.py ++++ b/yapps/runtime.py +@@ -178,7 +178,7 @@ class Scanner(object): + file,line,p = pos + if file != self.filename: + if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out) +- print >>out, "(%s: not in input buffer)" % file ++ print("(%s: not in input buffer)" % file, file=out) + return + + text = self.input +@@ -201,7 +201,7 @@ class Scanner(object): + break + spos = cr+1 + else: +- print >>out, "(%s:%d not in input buffer)" % (file,origline) ++ print("(%s:%d not in input buffer)" % (file,origline), file=out) + return + + # Now try printing part of the line +@@ -230,8 +230,8 @@ class Scanner(object): + p = p - 7 + + # Now print the string, along with an indicator +- print >>out, '> ',text +- print >>out, '> ',' '*p + '^' ++ print('> ',text, file=out) ++ print('> ',' '*p + '^', file=out) + + def grab_input(self): + """Get more input if possible.""" +-- +2.6.4 + diff --git a/dev-python/yapps/files/yapps-Don-t-capture-sys.stderr-at-import-time.patch b/dev-python/yapps/files/yapps-Don-t-capture-sys.stderr-at-import-time.patch new file mode 100644 index 000000000000..1e25a0059409 --- /dev/null +++ b/dev-python/yapps/files/yapps-Don-t-capture-sys.stderr-at-import-time.patch @@ -0,0 +1,32 @@ +From 482faec17f1c69784d8cc2757a79809458d71154 Mon Sep 17 00:00:00 2001 +From: Julien Cristau <julien.cristau@logilab.fr> +Date: Tue, 2 Dec 2014 10:40:01 +0100 +Subject: [PATCH 1/2] Don't capture sys.stderr at import time + +Signed-off-by: Julien Cristau <julien.cristau@logilab.fr> +--- + yapps/runtime.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/yapps/runtime.py b/yapps/runtime.py +index 29f91e7..58017fe 100644 +--- a/yapps/runtime.py ++++ b/yapps/runtime.py +@@ -168,10 +168,13 @@ class Scanner(object): + # output += '%s\n' % (repr(t),) + # return output + +- def print_line_with_pointer(self, pos, length=0, out=sys.stderr): ++ def print_line_with_pointer(self, pos, length=0, out=None): + """Print the line of 'text' that includes position 'p', + along with a second line with a single caret (^) at position p""" + ++ if out is None: ++ out = sys.stderr ++ + file,line,p = pos + if file != self.filename: + if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out) +-- +2.6.4 + diff --git a/dev-python/yapps/metadata.xml b/dev-python/yapps/metadata.xml new file mode 100644 index 000000000000..335bb8d11a4b --- /dev/null +++ b/dev-python/yapps/metadata.xml @@ -0,0 +1,12 @@ +<?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">Yapps</remote-id> + <remote-id type="github">smurfix/yapps</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/yapps/yapps-2.2.0-r1.ebuild b/dev-python/yapps/yapps-2.2.0-r1.ebuild new file mode 100644 index 000000000000..ed7a93b02e24 --- /dev/null +++ b/dev-python/yapps/yapps-2.2.0-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) + +inherit distutils-r1 + +MY_PN="Yapps" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="An easy to use parser generator" +HOMEPAGE="https://github.com/smurfix/yapps" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-Don-t-capture-sys.stderr-at-import-time.patch" + epatch "${FILESDIR}/${PN}-Convert-print-statements-to-python3-style-print-func.patch" +} |