diff options
author | Sebastian Pipping <sping@gentoo.org> | 2018-01-09 23:53:02 +0100 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2018-01-09 23:53:42 +0100 |
commit | 1382ff9a78e3ba9f5242929be41ad4923d8bf0ea (patch) | |
tree | 1cab5fd031d895d181e36c2234424209d3c46070 /dev-python/html2text | |
parent | media-gfx/shotwell: Version bump to shotwell-0.27.3 (diff) | |
download | gentoo-1382ff9a78e3ba9f5242929be41ad4923d8bf0ea.tar.gz gentoo-1382ff9a78e3ba9f5242929be41ad4923d8bf0ea.tar.bz2 gentoo-1382ff9a78e3ba9f5242929be41ad4923d8bf0ea.zip |
dev-python/html2text: 2018.1.9
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-python/html2text')
-rw-r--r-- | dev-python/html2text/Manifest | 1 | ||||
-rw-r--r-- | dev-python/html2text/html2text-2018.1.9.ebuild | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/html2text/Manifest b/dev-python/html2text/Manifest index 5d83167d505b..95baa60b4a81 100644 --- a/dev-python/html2text/Manifest +++ b/dev-python/html2text/Manifest @@ -1,2 +1,3 @@ DIST html2text-2016.5.29.tar.gz 46879 BLAKE2B 0e7ccae7ae4d90fb202d9fdb8edd81f74b204f81c2410f345eb923fe610f61fab6ba71bcc95138fb3706ee51007a2c72c76497cee48818032934e7f809fd46ae SHA512 58b71fda6ea6fd1a71dec757c91cf342265a2c89ff5c45e752436068419fb6c1faa1ca0d5a6baafaaa60186a85aefdd840989177ce30e55bcda1c6209fc375be DIST html2text-2017.10.4.tar.gz 50527 BLAKE2B 96b7060761a629cf4313104323517c4a9070aabfa02be43e80c89b56b92329785817abc7ab9fef4a8537cbde4a797926d3c1d444c11f3db6112074a31d8a8e61 SHA512 c7f9b765572b5eac72837aa757f0be07df0270b49f9b3a3ec8c3c65ff929505166b0510c106116ffdca484b56120b6c162f86b600d88a5a35e86d06cd6b6fa19 +DIST html2text-2018.1.9.tar.gz 51181 BLAKE2B ab96b4eff7dcc1541a150f3d0fb470040da9eb193ec1a57789bc87bdd5b32875af0c6d3e377475d53c75edd29d01f5ba9becbe4ad363f4375d62e0314010b1e4 SHA512 17c9a4064b69fc7bf20d22564074b5c0855598a4675fc019656c78caec70427e111424bd0f31bd07c57402ceda9086919c1fc65c901798735be5270a7f1d820b diff --git a/dev-python/html2text/html2text-2018.1.9.ebuild b/dev-python/html2text/html2text-2018.1.9.ebuild new file mode 100644 index 000000000000..45203c6e8c70 --- /dev/null +++ b/dev-python/html2text/html2text-2018.1.9.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="Turn HTML into equivalent Markdown-structured text" +HOMEPAGE="https://github.com/Alir3z4/html2text https://pypi.python.org/pypi/html2text" +SRC_URI="https://github.com/Alir3z4/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${CDEPEND} + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/feedparser[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND}" + +DOCS=( AUTHORS.rst ChangeLog.rst README.md ) + +src_prepare() { + default + + # naming conflict with app-text/html2text, bug 421647 + sed -i 's/html2text=html2text.cli:main/py\0/' setup.py || die +} + +python_test() { + "${PYTHON}" test/test_html2text.py -v || die "tests failed with ${EPYTHON}" +} |