summaryrefslogtreecommitdiff
path: root/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-12-15 19:36:08 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-12-15 19:36:08 +0000
commit759cef6981d26aad38dc7b364b93f6bfb14bb2e6 (patch)
treee4d2f33f5f1d98fe4f0626da7cce6142bc7c4fae /dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild
parente24929e371ca046de07de6f3aebca74b42908b24 (diff)
downloadbaldeagleos-repo-759cef6981d26aad38dc7b364b93f6bfb14bb2e6.tar.gz
baldeagleos-repo-759cef6981d26aad38dc7b364b93f6bfb14bb2e6.tar.xz
baldeagleos-repo-759cef6981d26aad38dc7b364b93f6bfb14bb2e6.zip
Adding metadata
Diffstat (limited to 'dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild')
-rw-r--r--dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild
new file mode 100644
index 000000000000..22b32d79c5a2
--- /dev/null
+++ b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8,9,10,11,12} )
+
+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 ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+
+# https://bugs.gentoo.org/911738
+# The tests compare hard coded hashes, since we cannot guarantee reproducibility
+# of our own build the test will likely fail.
+RESTRICT="test"
+
+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
+
+src_prepare() {
+ # this is a fork of htmlmin with the same patches that we have
+ sed -i -e '/htmlmin2/d' setup.py || die
+ distutils-r1_src_prepare
+}
+
+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
+}