summaryrefslogtreecommitdiff
path: root/dev-python/pypeg2
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pypeg2')
-rw-r--r--dev-python/pypeg2/Manifest6
-rw-r--r--dev-python/pypeg2/files/pypeg2-2.15.1-test.patch12
-rw-r--r--dev-python/pypeg2/metadata.xml12
-rw-r--r--dev-python/pypeg2/pypeg2-2.15.2.ebuild29
4 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/pypeg2/Manifest b/dev-python/pypeg2/Manifest
new file mode 100644
index 000000000000..79dcbb69086a
--- /dev/null
+++ b/dev-python/pypeg2/Manifest
@@ -0,0 +1,6 @@
+AUX pypeg2-2.15.1-test.patch 399 SHA256 2d54b6c8e24d6f6efc78d5d54cb224bc0e9cf4e07e4204cb2c29577fe572f852 SHA512 20428aa41858da3b73a262ec2f36aed0df8626999eae27438a6bad1908b1dc79056ab33069c273aae56eabc02dfd0c080daaf42fee7e7c92ec32b95244ba41c4 WHIRLPOOL 150c0ae98d9a231f871964076b4840451768c3bd2a012d42294618a93b6a2aa4beefdf75b86304ec1e03d2da94410ed5be7189c5f66bf7f116f0e54e8886be98
+DIST pyPEG2-2.15.2.tar.gz 40334 SHA256 2b2d4f80d8e1a9370b2a91f4a25f4abf7f69b85c8da84cd23ec36451958a1f6d SHA512 f78e3b1294169167809c5fe05f2a69af2bd6c7c4c1bcbebafb4aa6b8ae6ead181a46b051e41193bc31f49c4b4fa7b1ef231d172217c11d301d0ee21d8e411b6f WHIRLPOOL ecbd65cee238b4bcb931ddb255d1ee77046cb551929826294e622afdafcdfe59337680b6e079cc644a3df531313e65796c04ea97e169eb051b099e6233b5385f
+EBUILD pypeg2-2.15.2.ebuild 715 SHA256 7345ebaee10a4fd8f8af4c5861b27ae8bb8737c424142b998d084d6ac9ef8b61 SHA512 f25302481e13af4b7980ba5eebdbc6aeb5c3370078ac5299dbc995a85a7bca4a4e2e5e1de13e986b6fab8e25645e98030cf1a8c114285df7d55360534ea5ea9c WHIRLPOOL 000bdfc8ba3edd14f2de39577d2296ded4638bab2964e9fc47b1b9eb57180ca7d9468bb717e57db90714eec3e22e53ba397967f38a82ce000fc74c087b0f929f
+MISC ChangeLog 2768 SHA256 3a73225abaff0adba7ebe04fae82d8b6a298deaa91cba3185b66d94e94d3a3fb SHA512 f3ddecb9ecf559d59338668a1fc4268c1623cfc206d90f06fa80f16b78e829cb13c785c8b485eb99d9dee1323a8d0dde5201c4ea99d80fc065673f16fd37e0aa WHIRLPOOL 35a56e21aa60c603e050ebdab8d44e6e84c5e5c846e2a8e3122428788dcb68bf26474193ea2719c020af184c7d53926828a8bc9e250d5d8700613b428bcb1650
+MISC ChangeLog-2015 381 SHA256 dcadbb6db63811fe5247f76cf669ebb2a8a795eb660ff19a5852c4de15362a46 SHA512 913c82c39eb6085f036db7f8c88e6909a69f76163f45f594b8445cc332738aa2dab87deb3cbd8e6ee134e9dfab22a26400d3b58e7178fa43f67aa807c6aa4dbd WHIRLPOOL 5b080fe24d27fa28426901c77ced42f7cbbd5b45f41ceb7dc2fe109ef0d0307bb82bdf2e708c05a29fa37ab3f43326f30ecbf366ad846853a33752b942408cbf
+MISC metadata.xml 362 SHA256 0ca0f0d9c080ab8767d897061133579095860d6a1339e376c67efa7948ce2173 SHA512 7eb0a3fbe48ee8f34bb9f697aa951faece1ce5da90319a5bd8f9958d569eebd2c91539d0d1bd46c51cdc77ddb5c858bb6d158be7268666af668a935e1c4998e7 WHIRLPOOL 79c29692ace097b46bea41e2abbd0bc76835f3a7db2e6282440392db73d9ecaa6382b00c4571507f21bb460758b089398812a6379e5bc1b3ece4736afaaae8ac
diff --git a/dev-python/pypeg2/files/pypeg2-2.15.1-test.patch b/dev-python/pypeg2/files/pypeg2-2.15.1-test.patch
new file mode 100644
index 000000000000..6ca8839d7776
--- /dev/null
+++ b/dev-python/pypeg2/files/pypeg2-2.15.1-test.patch
@@ -0,0 +1,12 @@
+Drop seemingly wrong test line that throws an AttributeError.
+
+--- pyPEG2-2.15.1/pypeg2/test/test_pyPEG2.py
++++ pyPEG2-2.15.1/pypeg2/test/test_pyPEG2.py
+@@ -255,7 +255,6 @@
+ def runTest(self):
+ r = pypeg2.parse("!all", type(self).C1)
+ self.assertEqual(str(r), "all")
+- self.assertEqual(r._ignore1, None)
+
+ class ParseOmitTestCase(ParserTestCase):
+ def runTest(self):
diff --git a/dev-python/pypeg2/metadata.xml b/dev-python/pypeg2/metadata.xml
new file mode 100644
index 000000000000..1194ecffea20
--- /dev/null
+++ b/dev-python/pypeg2/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">pyPEG2</remote-id>
+ <remote-id type="bitbucket">fdik/pypeg</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pypeg2/pypeg2-2.15.2.ebuild b/dev-python/pypeg2/pypeg2-2.15.2.ebuild
new file mode 100644
index 000000000000..38cd3e2e042c
--- /dev/null
+++ b/dev-python/pypeg2/pypeg2-2.15.2.ebuild
@@ -0,0 +1,29 @@
+# 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} )
+
+inherit distutils-r1
+
+MY_PN=pyPEG2
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="An intrinsic PEG Parser-Interpreter for Python"
+HOMEPAGE="http://fdik.org/pyPEG/ https://bitbucket.org/fdik/pypeg/ https://pypi.python.org/pypi/pyPEG2"
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${PN}-2.15.1-test.patch )
+
+python_test() {
+ "${PYTHON}" -m unittest discover || die "Tests failed with ${EPYTHON}"
+}