summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-03-15 20:33:42 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-03-15 20:33:54 +0200
commita9a70b79634b07b6d6139cf2ab4bc9e39bb1e9f8 (patch)
tree85531699d96f3046620aa3c7001a01342a7539ee /dev-python/mkdocs-minify-plugin
parentapp-editors/vscodium: add 1.76.2.23074 (diff)
downloadgentoo-a9a70b79634b07b6d6139cf2ab4bc9e39bb1e9f8.tar.gz
gentoo-a9a70b79634b07b6d6139cf2ab4bc9e39bb1e9f8.tar.bz2
gentoo-a9a70b79634b07b6d6139cf2ab4bc9e39bb1e9f8.zip
dev-python/mkdocs-minify-plugin: add 0.6.4
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/mkdocs-minify-plugin')
-rw-r--r--dev-python/mkdocs-minify-plugin/Manifest1
-rw-r--r--dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.4.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/mkdocs-minify-plugin/Manifest b/dev-python/mkdocs-minify-plugin/Manifest
index c9e4d8f605f0..2eb1892c8620 100644
--- a/dev-python/mkdocs-minify-plugin/Manifest
+++ b/dev-python/mkdocs-minify-plugin/Manifest
@@ -1,2 +1,3 @@
DIST mkdocs-minify-plugin-0.6.2.gh.tar.gz 8480 BLAKE2B 91091702c0f5953b8cef4e081004cf44abbc2a7b21a0ea1996a337c96764a636fa79054c5d05ffc2814acb4b7fda0e833e61b02c6b97466586875e9da21c937b SHA512 563e150eb380aab105b18492eb0f725ec96fe12768c666b093e40d375e66cccf42f859aeb4d2788ae8c7a5b01e6e103c9f9aa1153802ad104955a98d90036144
DIST mkdocs-minify-plugin-0.6.3.gh.tar.gz 8803 BLAKE2B 4888c646272613abab7310935b2179b2e8ddea13dc79ad6e2bcc88936202791b8b3ea1edea661a6988572e296174a889c8d5e774a77fca0b2b5e51ec6a24593d SHA512 4f20e7de415aa207af77a91ff40f37a7d9da641f30d538f04eca4592a92e68567e75b406947b00318207a8b4fd92d7c701cbb36cbc099899ae592c7b5b9cd5eb
+DIST mkdocs-minify-plugin-0.6.4.gh.tar.gz 8792 BLAKE2B 42dae53b6918655f27f26521e84b42a97e75d7b8f1ec526165341810fce9b0c6bf0add9f451d0122b68e2543deed98a2661ccaefb4b51262fee71964ba3c5bf9 SHA512 d5adf7df838f10abad79c5790c3aefec11ac78078cc5f0640213a2e097cb251a16eba39d9aa6f53996a983d08bcd4558718754d3bd11af74cf407faab3f97453
diff --git a/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.4.ebuild b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.4.ebuild
new file mode 100644
index 000000000000..7d5099ba3f26
--- /dev/null
+++ b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.4.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="An MkDocs plugin to minify HTML and/or JS files prior to being written to disk"
+HOMEPAGE="
+ https://github.com/byrnereese/mkdocs-minify-plugin
+ https://pypi.org/project/mkdocs-minify-plugin/
+"
+# pypi sdist lacks tests, as of 0.6.4
+SRC_URI="
+ https://github.com/byrnereese/mkdocs-minify-plugin/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/csscompressor-0.9.5[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-1.4.1[${PYTHON_USEDEP}]
+ >=app-text/htmlmin-0.1.12[${PYTHON_USEDEP}]
+ >=dev-python/jsmin-3.0.1[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local -x PATH=${T}:${PATH}
+ cat > "${T}"/mkdocs <<-EOF || die
+ #!/bin/sh
+ exec "${EPYTHON}" -m mkdocs "\${@}"
+ EOF
+ chmod +x "${T}"/mkdocs || die
+ epytest
+}