diff --git a/dev-python/m2r2/Manifest b/dev-python/m2r2/Manifest new file mode 100644 index 0000000..b0fa738 --- /dev/null +++ b/dev-python/m2r2/Manifest @@ -0,0 +1 @@ +DIST m2r2-0.2.7.tar.gz 28653 BLAKE2B 374b4db98158b24aca57cef1e75d37af2623e305b45e4a1f84c6126e48116311fd6e5159854605e027a568d668dc04b9408a64c614e1609f6ed32e2e4722df49 SHA512 6b93ca7b564094e2a1e8ae538e00aa1f361dd40496bef1e440bfe152c905c35c6aad5fb9429ef51b5e6b532c73bcce03c1d17ac1f654e4973de885d1fe33bb9b diff --git a/dev-python/m2r2/files/quick_workaround_to_distributionnotfound.patch b/dev-python/m2r2/files/quick_workaround_to_distributionnotfound.patch new file mode 100644 index 0000000..5251c30 --- /dev/null +++ b/dev-python/m2r2/files/quick_workaround_to_distributionnotfound.patch @@ -0,0 +1,20 @@ +diff --git a/setup.py b/setup.py +index f80b653..4a604bb 100644 +--- a/setup.py ++++ b/setup.py +@@ -10,13 +10,9 @@ except ImportError: + from distutils.core import setup + + readme_file = path.join(path.dirname(path.abspath(__file__)), "README.md") +-try: +- from m2r2 import parse_from_file + +- readme = parse_from_file(readme_file) +-except ImportError: +- with open(readme_file) as f: +- readme = f.read() ++with open(readme_file) as f: ++ readme = f.read() + + + __version__ = "0.2.7" diff --git a/dev-python/m2r2/m2r2-0.2.7.ebuild b/dev-python/m2r2/m2r2-0.2.7.ebuild new file mode 100644 index 0000000..c32c077 --- /dev/null +++ b/dev-python/m2r2/m2r2-0.2.7.ebuild @@ -0,0 +1,33 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9}) + +inherit distutils-r1 + +DESCRIPTION="Markdown to reStructuredText converter " +HOMEPAGE="https://crossnox.github.io/m2r2/" +SRC_URI="https://github.com/CrossNox/m2r2/archive/refs/tags/v"${PV}".tar.gz -> "${P}".tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RDEPEND=" + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/mistune[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + ${RDEPEND} + dev-python/pygments[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs + +PATCHES=( "${FILESDIR}/quick_workaround_to_distributionnotfound.patch" ) diff --git a/dev-python/m2r2/metadata.xml b/dev-python/m2r2/metadata.xml new file mode 100644 index 0000000..188fd13 --- /dev/null +++ b/dev-python/m2r2/metadata.xml @@ -0,0 +1,11 @@ + + + + + parona@protonmail.com + Alfred Wingate + + + CrossNox/m2r2 + +