blob: d92e86491d41a36d38579a216064a7a1c4257bdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYTHON_COMPAT=( pypy3 python3_{10..13} )
CRATES="
"
inherit cargo distutils-r1 pypi
DESCRIPTION="Extremely fast and smart HTML + JS + CSS minifier"
HOMEPAGE="
https://github.com/wilsonzlin/minify-html/
https://pypi.org/project/minify-html/
"
SRC_URI+="
${CARGO_CRATE_URIS}
"
if [[ ${PKGBUMPING} != ${PVR} ]]; then
SRC_URI+="
https://dev.gentoo.org/~mgorny/dist/${P/-/_}-crates.tar.xz
"
fi
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0
Unicode-DFS-2016
"
# ring crate
LICENSE+=" openssl"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/minify_html/minify_html.*.so"
src_prepare() {
sed -i -e '/strip/d' Cargo.toml || die
distutils-r1_src_prepare
}
python_test_all() {
cargo_src_test
}
|