summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-10-22 10:35:32 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-10-22 10:35:48 +0300
commit9a4c11ae1d1c1b00b07dcf7668dcaa91946e969e (patch)
tree9cff6c21545ba6ea5daf20f6834ff57b92e54765 /dev-python/mkdocs-material
parentdev-python/mkdocs-material-extensions: add 1.1 (diff)
downloadgentoo-9a4c11ae1d1c1b00b07dcf7668dcaa91946e969e.tar.gz
gentoo-9a4c11ae1d1c1b00b07dcf7668dcaa91946e969e.tar.bz2
gentoo-9a4c11ae1d1c1b00b07dcf7668dcaa91946e969e.zip
dev-python/mkdocs-material: add 8.5.7
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/mkdocs-material')
-rw-r--r--dev-python/mkdocs-material/Manifest1
-rw-r--r--dev-python/mkdocs-material/files/mkdocs-material-8.5.7-simplify-build.patch27
-rw-r--r--dev-python/mkdocs-material/mkdocs-material-8.5.7.ebuild51
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/mkdocs-material/Manifest b/dev-python/mkdocs-material/Manifest
index be91d09bba82..a06ba56369f2 100644
--- a/dev-python/mkdocs-material/Manifest
+++ b/dev-python/mkdocs-material/Manifest
@@ -1,2 +1,3 @@
DIST mkdocs-material-8.4.3.gh.tar.gz 9999624 BLAKE2B e7dbe0b3cd2e385db1882b5bdf90efbe7f1d528b38fe0764b5aee78546427bde939054a61f36e7d8769099fe3615c36c13d6d29ebf30e4faff123380a5793eaa SHA512 ea5601d4f846315c71b0eaa0c8309c0d351530bdfcdee4ba7f9734f92314b66613984c41af6b0387e7186e2f915150aa6981e16511af6f7bb67bf94fb33b88e7
DIST mkdocs-material-8.5.2.gh.tar.gz 10262607 BLAKE2B 16fe2e9d377cf8361ddcf5bdd1f5b461783ef03a26894abd9cfe8ba3c88e4d89e5ee8da3e566b996ea1595a6600933d4140ca698f3a303e6fc4c2b32e208af1e SHA512 74066b3b85be3dc5f4380ab73a98dd07fc8430a65b6ec9a51f1513fa3f0703f3eff4567344642710bf8e91e8cf9193b552a58f865b86367f397d0c884e1849f8
+DIST mkdocs-material-8.5.7.gh.tar.gz 10362881 BLAKE2B 833e05a67570f7c341681f6fcc0b54f145044ae60512aef4fc6c366022700c6f257418a502cf0fd7c8a25f4be4c37f9ca591b5063e424ab2f6ef17b3fce01129 SHA512 d47866faed2c993d3e8daca0213cf9052a2e31449c2aa968c6a4451eaf2528094fdebda1ee7c6a12f1a0c502ef1c16a2aceaf03e7ec195117391beda8535a127
diff --git a/dev-python/mkdocs-material/files/mkdocs-material-8.5.7-simplify-build.patch b/dev-python/mkdocs-material/files/mkdocs-material-8.5.7-simplify-build.patch
new file mode 100644
index 000000000000..c0f07eac494f
--- /dev/null
+++ b/dev-python/mkdocs-material/files/mkdocs-material-8.5.7-simplify-build.patch
@@ -0,0 +1,27 @@
+From: Arthur Zamarin <arthurzam@gentoo.org>
+
+Simplify dependencies used for metadata generation.
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -19,7 +19,7 @@
+ # IN THE SOFTWARE.
+
+ [build-system]
+-requires = ["hatchling", "hatch-requirements-txt", "hatch-nodejs-version>=0.3.0"]
++requires = ["hatchling"]
+ build-backend = "hatchling.build"
+
+ [project]
+@@ -55,10 +55,7 @@ tags = "material.plugins.tags.plugin:TagsPlugin"
+ material = "material"
+
+ [tool.hatch.version]
+-source = "nodejs"
+-
+-[tool.hatch.metadata.hooks.nodejs]
+-fields = ["license", "description", "authors", "keywords", "urls"]
++path = "gentoo_version.py"
+
+ [tool.hatch.metadata.hooks.requirements_txt]
+ filename = "requirements.txt"
diff --git a/dev-python/mkdocs-material/mkdocs-material-8.5.7.ebuild b/dev-python/mkdocs-material/mkdocs-material-8.5.7.ebuild
new file mode 100644
index 000000000000..4f1e1fca0123
--- /dev/null
+++ b/dev-python/mkdocs-material/mkdocs-material-8.5.7.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{8..11} )
+
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/mkdocs-material-extensions
+ dev-python/mkdocs-minify-plugin
+ dev-python/mkdocs-redirects
+"
+
+inherit distutils-r1 docs
+
+DESCRIPTION="A Material Design theme for MkDocs"
+HOMEPAGE="
+ https://github.com/squidfunk/mkdocs-material/
+ https://pypi.org/project/mkdocs-material/
+"
+SRC_URI="
+ https://github.com/squidfunk/${PN}/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/jinja-3.0.2[${PYTHON_USEDEP}]
+ >=dev-python/markdown-3.2[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pygments-2.12[${PYTHON_USEDEP}]
+ >=dev-python/pymdown-extensions-9.4[${PYTHON_USEDEP}]
+"
+
+# mkdocs-material-extensions depends on mkdocs-material creating a circular dep
+PDEPEND=">=dev-python/mkdocs-material-extensions-1.0.3[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ # simplify pyproject to remove extra deps for metadata
+ "${FILESDIR}/${PN}-8.5.7-simplify-build.patch"
+)
+
+_src_prepare() {
+ echo "__version__ = '${PV}'"> gentoo_version.py || die
+ distutils-r1_src_prepare
+}