diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-01 11:48:39 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-01 11:48:39 +0000 |
commit | 1e39e6a8c127767a57f0465ed9ece4fefb44b4ae (patch) | |
tree | 3559e11cac3d1d8c48d4a253876d1927017c508f /dev-python/mkdocs-minify-plugin | |
parent | d13aef5a4ce5eb3b31565d0d9e67e903e5e932df (diff) |
gentoo auto-resync : 01:02:2024 - 11:48:38
Diffstat (limited to 'dev-python/mkdocs-minify-plugin')
-rw-r--r-- | dev-python/mkdocs-minify-plugin/Manifest | 2 | ||||
-rw-r--r-- | dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.8.0.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/mkdocs-minify-plugin/Manifest b/dev-python/mkdocs-minify-plugin/Manifest index bdfd16c789fa..91dd20f4d5b3 100644 --- a/dev-python/mkdocs-minify-plugin/Manifest +++ b/dev-python/mkdocs-minify-plugin/Manifest @@ -1,3 +1,5 @@ DIST mkdocs-minify-plugin-0.7.2.gh.tar.gz 9016 BLAKE2B 9960820f2faba9455207454f76c46ac793e5c43cc522c2951dd233907532e4fb12cbe64410a49e03c1d9e5111dd43e903b07e7150cbf48817079d6877e411cbb SHA512 054163f985fc5e35816b240bd8d82709720b1c0495e9e7f35abc2271496dc3a578669a3ccede565c6a6b27314bc7e74b4c58e0eb8eb2f2851ece6841147c8f2e +DIST mkdocs-minify-plugin-0.8.0.gh.tar.gz 9241 BLAKE2B 98686884c7122b2731a1b923099f59af8cea4364d544ccbf9c07c34b293531f47ea5d0a6ef60054e88e54a4a97cf37d4f5ecfd27351b6efa85ae26e14545e841 SHA512 d810d3a9e72a59771cf28950ea82ff8021ac12734f38abf2d10d1d0bb4ef248678ca2116378798a613f0fc60997c5714ecb711496d2fcc2ff79c1a90948dbc0f EBUILD mkdocs-minify-plugin-0.7.2.ebuild 1361 BLAKE2B 444f96654abd6cf8089f3b91b347486b9c1951dffd6a33f2d6e3c79b4f562c792a2fea9e17c6af5e89fc0f4960e1846a38d7048e71cf2d06561041f5f2f143a2 SHA512 4231784e7baf4b2a475c19574b418a1d48c40e02d35ab34ee9c2aa742c34e57f8084331a13182afba514a976b283cba315cddb80e6187a17b505c045e798bebf +EBUILD mkdocs-minify-plugin-0.8.0.ebuild 1193 BLAKE2B d9614e62864ada9323ee5bb617b91264100f3f0cccb45b7c1a5df9a298a30913bd5081d0009032866564456062909d71d8a9d38612e3770f39cd882efa4a5a61 SHA512 1a7a8fa3cd894fad2cb2b3b934ddbfc03030174c4b5d824120c11318fe83ed2a72ab6abcd78a2010f602632e3aeb1419b6573c3f178c2e1c240e12c79479b100 MISC metadata.xml 437 BLAKE2B 0b089b896a3b9458b03573a6f2870ee98c194a76969cb730508582aaae75cd5ae3fc46739ba12850a2388cf588aa68c6a45e31a59a8f1894e7eb02fe78d74992 SHA512 f238ac7d118776d582d880a4355d0786dc5d9b3f82e9139d5668fa9be009eeb7228a0bc0b2d5254e76b167ec30457241b808917a910b8d2037c781e46a871946 diff --git a/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.8.0.ebuild b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.8.0.ebuild new file mode 100644 index 000000000000..21dade42f2a4 --- /dev/null +++ b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.8.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +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" + +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 +} |