summaryrefslogtreecommitdiff
path: root/app-text/pytextile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/pytextile
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/pytextile')
-rw-r--r--app-text/pytextile/Manifest8
-rw-r--r--app-text/pytextile/files/pytextile-2.1.8-sanitizer.patch15
-rw-r--r--app-text/pytextile/metadata.xml14
-rw-r--r--app-text/pytextile/pytextile-2.1.8.ebuild38
-rw-r--r--app-text/pytextile/pytextile-2.3.3.ebuild41
5 files changed, 116 insertions, 0 deletions
diff --git a/app-text/pytextile/Manifest b/app-text/pytextile/Manifest
new file mode 100644
index 000000000000..903846172ae1
--- /dev/null
+++ b/app-text/pytextile/Manifest
@@ -0,0 +1,8 @@
+AUX pytextile-2.1.8-sanitizer.patch 606 SHA256 5b421c561c88995c28a5c4ce61e40634cc515bb8ac9eebfdc8a55ab175188d78 SHA512 3c7a568e64cd28cc0666f06e6b2022454126a654f4ae0d0c82edada69ca7ec1ebce1582961ac84667b3a0c932c5e9d98521c100e1d62df100d276ae33417ba13 WHIRLPOOL d68276b4e85676ea1c1e51e38843b943a4d317406f65551bc3d710c146e80e06930c815d1a7e0731dd173ce409c033a4400a19e570be709250b79acb6f924b6e
+DIST pytextile-2.3.3.tar.gz 42277 SHA256 88526eae638751c1ea36855f6299338e6cdde38bb04b8628b87b02b1a698dca6 SHA512 980c872bfdc056753fa5b344cbc828dbdc9ddfc2656f3cfb5c15b3351cfd9e4016f57af14b60af2f2764e556865301d7923a8f0687c5857fc2201bf10f56ab60 WHIRLPOOL be5661dcc13994ec8019e032d2a54dd1d1f0aac61919615a36484f6b1cde3db598644fc3c89f18e01507e0a37d3ae55d25a2953a14e3ecfb94e1a99298f702ef
+DIST textile-2.1.8.tar.gz 34002 SHA256 c443f4bf0a31df9e707e615f869d4f51b08cdb222d17ca3009eda44f7cfd8629 SHA512 b1675a131b482f4926efb45312b16c722ff158d9296704918b56316d470056f986ce18d495525a8e9f236bdd62e09ca6a17b443a7db8c8c36e5d05fcffce67da WHIRLPOOL fedcd9b9277387604e258fca427e3cd587f3b2ba93e65b39474ce57810fa67dae772241c5cf69dc8aaf89416d6191271f1fece4fa2f2e63f19fec6597b956bd5
+EBUILD pytextile-2.1.8.ebuild 924 SHA256 8ceadf55afe6c4f2ff4cc773616544d5fb05c4c0818a476d51b49399ed92d5ec SHA512 7a38a87b3459aeaf5af5c07db276d5b2bfa931d8fbd340b45d27e80aabbaab096e6dfdf2702c18416ae978015b2787b62ea4d1133234b842c40c8144ee389e73 WHIRLPOOL b8ddbfa3a870dbd85c12a7270b798f8c031e2e7f9dfd40111ec35633f86fdf764eb5a6dcc02074e439c239c60aca1f8cec1f86fa67b407118b66a5b18c9887a3
+EBUILD pytextile-2.3.3.ebuild 1006 SHA256 00a255dfb699b9bb90bafb15a53ca41cf5e9a57a85c9cdb819291047710fc2bd SHA512 87c996d122485723bd97e50b30a21633d599f57d3d6db16053ff2944a735b61539b68ceebab527a30de553a118abe2c1b80281a2bbc7105142ed049fe3a1fff1 WHIRLPOOL 1c452fae739eb1df7c7f890bfffde9c2fb80bca8f20f70dce764e7c1d2b6fd652f47814d280c208038ae37214e4daf5d7f36e2f1e37fe670af1d37c225b15dda
+MISC ChangeLog 3698 SHA256 639b4450fe49610db2906b1219517da2ee51ffea7a97475b57971c205861c907 SHA512 7a9168ed5199a50778a764ab576c1ecfd52a0b403035c7c68e0a987754e701c13f43957b1c4e36cbac88460da9fa23aeb66d378d37bf4c994707f07a29b15319 WHIRLPOOL dbe9c18fb09e3d9dc8a1b025028b6c91c8db71602a9419105d902c2c9be2b64e92462c08367c456bc616d6a8dcc4c18025ce69f7cb045910e4ec68d707128ee0
+MISC ChangeLog-2015 5806 SHA256 8008e4ee5db167fc42dd53ce6479e47c81dd7cf3074c1fc7a97ee662c881e790 SHA512 e6239c2d0b48999fb797a9bec8ab7d9807d55ca7ae853a01ee32a831928f727f183f7fd689185b15511faf2688b4cd3a6f14cff330da868e699bfb65ca642647 WHIRLPOOL cdff7f50c9ad7f925900b6d9b52896c6a29d78f914c5f277e5d1935c1b8108c5e48a23f00f264af8ceb63fa2c7fbf895d2f6e32bbcc636254b35287c7108cbe6
+MISC metadata.xml 554 SHA256 6326725cf03c84856ba096449280729a0358a40717caaeafa251c99d4aaebb68 SHA512 6d4de4859070958c55f816ee8692a33f1a7b70de38549e9a6242044ccfdfffc590da29c79c450862537185fe2803bb0e09b2bb46ea76cf5548a2ded01a26434f WHIRLPOOL 47b022b38c23d902dcf51ec46ddf0f4a2e1c6ad6c38d6acead125840900f25b2a3beb435c03b9a7f95cea851d0134d10c46326f0d642a92c3872b221fd348950
diff --git a/app-text/pytextile/files/pytextile-2.1.8-sanitizer.patch b/app-text/pytextile/files/pytextile-2.1.8-sanitizer.patch
new file mode 100644
index 000000000000..1a9e696f21e9
--- /dev/null
+++ b/app-text/pytextile/files/pytextile-2.1.8-sanitizer.patch
@@ -0,0 +1,15 @@
+https://github.com/textile/python-textile/commit/83c81db387fa5f0c5ca25c27b8bc36d105bce599
+diff --git a/textile/tools/sanitizer.py b/textile/tools/sanitizer.py
+index 83b6799..4fc8fb2 100644
+--- a/textile/tools/sanitizer.py
++++ b/textile/tools/sanitizer.py
+@@ -12,7 +12,7 @@ def sanitize(string):
+ p = html5lib.HTMLParser(tokenizer=sanitizer.HTMLSanitizer)
+ tree = p.parseFragment(string)
+
+- walker = treewalkers.getTreeWalker("simpletree")
++ walker = treewalkers.getTreeWalker("etree")
+ stream = walker(tree)
+
+ s = serializer.htmlserializer.HTMLSerializer(omit_optional_tags=False,
+
diff --git a/app-text/pytextile/metadata.xml b/app-text/pytextile/metadata.xml
new file mode 100644
index 000000000000..c752a82be216
--- /dev/null
+++ b/app-text/pytextile/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <longdescription lang="en">A Python implementation of Textile, Dean Allen's Human Text Generator.
+ Textile simplifies the work of creating (X)HTML.</longdescription>
+ <upstream>
+ <remote-id type="pypi">textile</remote-id>
+ <remote-id type="github">textile/python-textile</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/pytextile/pytextile-2.1.8.ebuild b/app-text/pytextile/pytextile-2.1.8.ebuild
new file mode 100644
index 000000000000..583464ba033b
--- /dev/null
+++ b/app-text/pytextile/pytextile-2.1.8.ebuild
@@ -0,0 +1,38 @@
+# 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} pypy )
+
+inherit distutils-r1
+
+MY_PN="textile"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A Python port of Textile, A humane web text generator"
+HOMEPAGE="https://github.com/ikirudennis/python-textile"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/${P}-sanitizer.patch )
+
+python_prepare_all() {
+ # This resolves a nasty race condition noted and observed by Arfrever
+ sed -e 's:with-id = 1::' -i setup.cfg || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ nosetests textile/tests/ || die "Tests failed under ${EPYTHON}"
+}
diff --git a/app-text/pytextile/pytextile-2.3.3.ebuild b/app-text/pytextile/pytextile-2.3.3.ebuild
new file mode 100644
index 000000000000..4641ee712126
--- /dev/null
+++ b/app-text/pytextile/pytextile-2.3.3.ebuild
@@ -0,0 +1,41 @@
+# 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} pypy )
+
+inherit distutils-r1
+
+MY_PN="python-textile"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A Python port of Textile, A humane web text generator"
+HOMEPAGE="https://github.com/textile/python-textile"
+SRC_URI="https://github.com/textile/python-textile/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/pytest-runner[${PYTHON_USEDEP}]
+ test? ( dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-cov[${PYTHON_USEDEP}]
+ )
+ "
+RDEPEND="
+ dev-python/regex[${PYTHON_USEDEP}]
+ "
+
+S="${WORKDIR}/${MY_P}"
+
+python_prepare_all() {
+ # This resolves a nasty race condition, courtesy of Arfrever
+ sed -e 's:with-id = 1::' -i setup.cfg || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ py.test || die "Testsuite failed under ${EPYTHON}"
+}