dev-python/commonmark: Bump to 0.9.1
authorMichał Górny <mgorny@gentoo.org>
Tue, 24 Mar 2020 20:57:36 +0000 (21:57 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 24 Mar 2020 21:46:07 +0000 (22:46 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/commonmark/Manifest
dev-python/commonmark/commonmark-0.9.1.ebuild [new file with mode: 0644]
dev-python/commonmark/metadata.xml

index bfc2e44e1c6851639c155875ee056076f75409c4..9bba62a05609ab7cc2a44ee6dbdcc441a8a6a840 100644 (file)
@@ -1,3 +1,4 @@
 DIST CommonMark-0.5.4.tar.gz 120316 BLAKE2B 47904d101d9d0e3759f82c28a4b80edfc0ed12cf0888e4915339118e496322cf0791d8a46d2edddca0d1794e82a9647cc22cbcfcc2d385a740c7c31cb8251659 SHA512 1983714a50a627f30f86af0d02dad9e52cb7b0ffce29691d0e740f587e599ead6de2412d72b895b7df772e1c81e171e56dfecaf593e611af65bd5798632a98ad
 DIST CommonMark-0.7.5.tar.gz 88702 BLAKE2B fc80d9e739d27f7e5dbf539b624c2fc2e700e61b17d0335c3234fc0fa0d3738e9117a8ca29e7a6bbaa6cd0d58b112defb6e19a7efce3ca57ca25c8ce67b2d3d2 SHA512 b0e3c4fea6c99b51c541054ecfe887935c2cc517a82df86da1d9cb4914189652326ec5b543cbbcb40ec43e5e09c285c47f5304ca1907764692e659c540591bdd
 DIST commonmark-0.8.1.tar.gz 90795 BLAKE2B 718c2b1af035672d74e2c6b6f89ea0cd23f45d7b0e47b6dadeef742d772f5458e08ec5f69fd4f34df9ab2c491d9d7add4c4acc7018c4048649aa0d8244d7db91 SHA512 dbab51d45c1973a8d0906148d785fb8ddc2b52177dfe0e69fe79bef2a5eb05a5a7ab8693852f4aaa8545af19d741569d04a24f06ea65171e6e80d9f66af47fdf
+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 (file)
index 0000000..403379b
--- /dev/null
@@ -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)"
+}
index fc5b696a8da120e5c8ce4ce9c56906958a9bbd23..a4daa9b7a863a05b83f4c8fb3623a18a1ee18d29 100644 (file)
@@ -14,6 +14,6 @@
   </longdescription>
   <upstream>
     <remote-id type="pypi">CommonMark</remote-id>
-    <remote-id type="github">rtfd/CommonMark.py</remote-id>
+    <remote-id type="github">readthedocs/commonmark.py</remote-id>
   </upstream>
 </pkgmetadata>