From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/commonmark/Manifest | 1 + dev-python/commonmark/commonmark-0.9.1.ebuild | 44 +++++++++++++++++++++++++++ dev-python/commonmark/metadata.xml | 20 ++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev-python/commonmark/Manifest create mode 100644 dev-python/commonmark/commonmark-0.9.1.ebuild create mode 100644 dev-python/commonmark/metadata.xml (limited to 'dev-python/commonmark') diff --git a/dev-python/commonmark/Manifest b/dev-python/commonmark/Manifest new file mode 100644 index 000000000000..a5c1b46757db --- /dev/null +++ b/dev-python/commonmark/Manifest @@ -0,0 +1 @@ +DIST commonmark-0.9.1.tar.gz 95764 BLAKE2B 1f61de784c5cf03aa5255f5fae18c48df30aab8ef135ccf85a0b7a14cfc64275476458fc0853ecfc9beee96daca31d5cccb30d218f7d5b5343844e57aa7a77ec SHA512 bacf5ef387a0c330a2128f42c42c29c1a48ae623683e6e56ad28a1621aabd72e29cd3e2d661e8207b8cc0c347d267f262a55f2145fc58f8c8aeff91e7a283324 diff --git a/dev-python/commonmark/commonmark-0.9.1.ebuild b/dev-python/commonmark/commonmark-0.9.1.ebuild new file mode 100644 index 000000000000..392865942426 --- /dev/null +++ b/dev-python/commonmark/commonmark-0.9.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Python parser for the CommonMark Markdown spec" +HOMEPAGE="https://github.com/readthedocs/commonmark.py" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + >=dev-python/hypothesis-3.7.1[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests setup.py + +src_test() { + local -x PYTHONIOENCODING='utf8' + distutils-r1_src_test +} + +src_prepare() { + default + # Fix file collision with app-text/cmark, see bug #627034 + sed -i -e "s:'cmark\( = commonmark.cmark\:main'\):'cmark.py\1:" \ + setup.py || die +} + +pkg_postinst() { + ewarn "/usr/bin/cmark has been renamed to /usr/bin/cmark.py due file" + ewarn "collision with app-text/cmark (see bug #627034)" +} diff --git a/dev-python/commonmark/metadata.xml b/dev-python/commonmark/metadata.xml new file mode 100644 index 000000000000..484ab2f587e2 --- /dev/null +++ b/dev-python/commonmark/metadata.xml @@ -0,0 +1,20 @@ + + + + + python@gentoo.org + Python + + + Pure Python port of jgm’s commonmark.js, a Markdown parser and + renderer for the CommonMark specification, using only native + modules. Once both this project and the CommonMark specification + are stable we will release the first 1.0 version and attempt to + keep up to date with changes in commonmark.js. + + + CommonMark + readthedocs/commonmark.py + + gentoo-staging + -- cgit v1.3.1