From e4769acf6646f4b0ef28cb695cec8ed128aba920 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 15 Dec 2023 14:48:25 +0000 Subject: gentoo auto-resync : 15:12:2023 - 14:48:25 --- dev-python/mkdocs-minify-plugin/Manifest | 2 + .../mkdocs-minify-plugin-0.7.2.ebuild | 54 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.7.2.ebuild (limited to 'dev-python/mkdocs-minify-plugin') diff --git a/dev-python/mkdocs-minify-plugin/Manifest b/dev-python/mkdocs-minify-plugin/Manifest index e08322caa52b..620c25585bde 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.1.gh.tar.gz 8935 BLAKE2B d5b29515a40068dd01894f7dffc54ad627fbaa6e3efaea91c19ab4fb3571dcfba00f1ec9f2e23869dc4bd2bf97dec2a872a8e91fd928dc628f6a0fc8fe455539 SHA512 c8d732cf7906c37b754ad7d5c2132a88d1175f5da453aa53ac390ae2c0461e8a8ed6ffb88c64c8bc627be593e5f9e1f9b8d9e44181c29bee60188d4a9a3a254b +DIST mkdocs-minify-plugin-0.7.2.gh.tar.gz 9016 BLAKE2B 9960820f2faba9455207454f76c46ac793e5c43cc522c2951dd233907532e4fb12cbe64410a49e03c1d9e5111dd43e903b07e7150cbf48817079d6877e411cbb SHA512 054163f985fc5e35816b240bd8d82709720b1c0495e9e7f35abc2271496dc3a578669a3ccede565c6a6b27314bc7e74b4c58e0eb8eb2f2851ece6841147c8f2e EBUILD mkdocs-minify-plugin-0.7.1.ebuild 1360 BLAKE2B eb707b19ce35ed76a2ee66d2af67ecfa5c787431d6d61fd9211561d6c9a35a63fd5a376056637210876600fb669d082782c9e411496c17f08e2bc41265581391 SHA512 46423e6840cce82817634d0ad05402cfcaeb8b7e429c49f471cb0a11307deaa69544fcfd7be465f3cc76ffe41eaa9f544b09ca0e569ce734ce3484be947eb3de +EBUILD mkdocs-minify-plugin-0.7.2.ebuild 1364 BLAKE2B 5ed367459ccc6f9abfe3cb97c29dac7280e13254fe2beefc5119a7ce77ddf3d3a030c3504c52c29474580decbbc1cc14538fdbb694e611a65a3ce7d852ff0657 SHA512 22538237e4cfe49edc1fdf929bbec18dff1a90005bad7bea4b31b37461d3c3cf32193fa0b92c9303c054e6ebc673754900a9f63d0dff5c04be2496363ea5aa57 MISC metadata.xml 437 BLAKE2B 0b089b896a3b9458b03573a6f2870ee98c194a76969cb730508582aaae75cd5ae3fc46739ba12850a2388cf588aa68c6a45e31a59a8f1894e7eb02fe78d74992 SHA512 f238ac7d118776d582d880a4355d0786dc5d9b3f82e9139d5668fa9be009eeb7228a0bc0b2d5254e76b167ec30457241b808917a910b8d2037c781e46a871946 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..9c5ca4a2ee09 --- /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_{10..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 +} -- cgit v1.2.3