summaryrefslogtreecommitdiff
path: root/dev-python/ply-python2
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-09-28 18:27:41 +0000
committerLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-09-28 18:27:41 +0000
commitf96eb42eff579129a15de1e0807d8375fee6997d (patch)
tree9435b41527c811b5478989f61dea13d28e9f23c6 /dev-python/ply-python2
parentda10219c432e1c445b1e6d029cff58cb55c6716c (diff)
downloadbaldeagleos-repo-f96eb42eff579129a15de1e0807d8375fee6997d.tar.gz
baldeagleos-repo-f96eb42eff579129a15de1e0807d8375fee6997d.tar.xz
baldeagleos-repo-f96eb42eff579129a15de1e0807d8375fee6997d.zip
Updating liguros repo
Diffstat (limited to 'dev-python/ply-python2')
-rw-r--r--dev-python/ply-python2/Manifest1
-rw-r--r--dev-python/ply-python2/files/3.6-picklefile-IOError.patch24
-rw-r--r--dev-python/ply-python2/metadata.xml24
-rw-r--r--dev-python/ply-python2/ply-python2-3.11.ebuild32
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/ply-python2/Manifest b/dev-python/ply-python2/Manifest
new file mode 100644
index 000000000000..d81f6c1fe096
--- /dev/null
+++ b/dev-python/ply-python2/Manifest
@@ -0,0 +1 @@
+DIST ply-3.11.tar.gz 159130 BLAKE2B 58c50b9dad445ad83a64aaa8174ed4602b36f5c8df33a7d62590a92388c4a21c9800599c1d4e4db6f02630e8dee4c8482611e26498e4aa8ccdb2cf3453ae1db4 SHA512 37e39a4f930874933223be58a3da7f259e155b75135f1edd47069b3b40e5e96af883ebf1c8a1bbd32f914a9e92cfc12e29fec05cf61b518f46c1d37421b20008
diff --git a/dev-python/ply-python2/files/3.6-picklefile-IOError.patch b/dev-python/ply-python2/files/3.6-picklefile-IOError.patch
new file mode 100644
index 000000000000..85b39494a6fd
--- /dev/null
+++ b/dev-python/ply-python2/files/3.6-picklefile-IOError.patch
@@ -0,0 +1,24 @@
+From f50768b0b2176998675e728d84ac05f0eef19614 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Sun, 17 May 2015 12:14:16 -0400
+Subject: [PATCH] Catch/ignore IOError when opening picklefile for reading in
+ yacc.yacc()
+
+Should resolve #66.
+---
+ ply/yacc.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/ply/yacc.py b/ply/yacc.py
+index eb02cc2..2835c90 100644
+--- a/ply/yacc.py
++++ b/ply/yacc.py
+@@ -3265,6 +3265,8 @@ def yacc(method='LALR', debug=yaccdebug, module=None, tabmodule=tab_module, star
+ errorlog.warning(str(e))
+ except ImportError:
+ pass
++ except IOError:
++ pass
+
+ if debuglog is None:
+ if debug:
diff --git a/dev-python/ply-python2/metadata.xml b/dev-python/ply-python2/metadata.xml
new file mode 100644
index 000000000000..343b2a021172
--- /dev/null
+++ b/dev-python/ply-python2/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <herd>maintainer-wanted</herd>
+ </maintainer>
+ <longdescription>
+PLY is a Python-only implementation of the popular compiler construction
+tools lex and yacc. The implementation borrows ideas from a number of
+previous efforts; most notably John Aycock's SPARK toolkit. However,
+the overall flavor of the implementation is more closely modeled after
+the C version of lex and yacc. The other significant feature of PLY is
+that it provides extensive input validation and error reporting--much
+more so than other Python parsing tools.
+ </longdescription>
+ <longdescription lang="ja">
+PLYはLexとYaccの有名なコンパイラ・コンストラクション・ツールのPython言語実装です
+。この実装は以前の試みから幾つものアイディアを借りています。そのほとんどがJohn AycockのSPARKツールキットからです。しかしながら、実装の全体像はC言語によるLexとYaccにより近いモデルです。PLYの他の重要点は幅広い入力バリデーションとエラー報告を提供する点です。 -- その二点は他のPython言語パーサーより優れています。
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">ply</remote-id>
+ </upstream>
+ <origin>calculatelinux-overlay</origin>
+</pkgmetadata>
diff --git a/dev-python/ply-python2/ply-python2-3.11.ebuild b/dev-python/ply-python2/ply-python2-3.11.ebuild
new file mode 100644
index 000000000000..9b659dea277b
--- /dev/null
+++ b/dev-python/ply-python2/ply-python2-3.11.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_PN=ply
+MY_P=$MY_PN-$PV
+DESCRIPTION="Python Lex-Yacc library"
+HOMEPAGE="https://www.dabeaz.com/ply/ https://pypi.org/project/ply/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/$PV"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+RESTRICT="test"
+
+PATCHES=( "${FILESDIR}/3.6-picklefile-IOError.patch" )
+
+RDEPEND="
+ !dev-python/ply[python_targets_python2_7]
+"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+ rm -r ${D}/usr/share
+}