diff --git a/dev-tex/ninecolors/Manifest b/dev-tex/ninecolors/Manifest new file mode 100644 index 0000000000..fecec53a9d --- /dev/null +++ b/dev-tex/ninecolors/Manifest @@ -0,0 +1 @@ +DIST ninecolors-2022.02.13.zip 52616 BLAKE2B d0e90e3d7aaa7ee8f96904139b8b660ba5305f3106562f6bdb523653ba57a51ffc6f0ff8a0689c768b5de1b577d08a6f4b1b82d0558400419d8a10f5ebae084c SHA512 c778e1a2dfbe02a6f7a4cd9d7f5e6da5dfee7daa07bad11cda41faa971ba4330be91abdf3354b2f36bc7b7836f4d0767bc89dd213fa7466dd6cf7c2548cbe8e4 diff --git a/dev-tex/ninecolors/metadata.xml b/dev-tex/ninecolors/metadata.xml new file mode 100644 index 0000000000..6337ac9e4e --- /dev/null +++ b/dev-tex/ninecolors/metadata.xml @@ -0,0 +1,22 @@ + + + + + vowstar@gmail.com + Huang Rui + + + This package carefully selects and defines 9 colors for 13 hues each. + All colors with the same suffix number have equal luminance level. Also + the color black is of level 0, and the color white is of level 10. + By simply choosing two colors in the above list, which differ in level + by at least 5, as foreground and background colors, you will get proper + WCAG Color Contrast. + + + 该包精心选择并定义了 9 种颜色,每种颜色 13 种色调。所有具有相同后缀 + 编号的颜色都具有相同的亮度级别。黑色的级别为 0,白色的级别为 10。 + 只需在上面的列表中选择两种颜色(级别相差至少 5)作为前景色和背景色, + 您将获得正确的 WCAG 颜色对比度。 + + diff --git a/dev-tex/ninecolors/ninecolors-2022.02.13.ebuild b/dev-tex/ninecolors/ninecolors-2022.02.13.ebuild new file mode 100644 index 0000000000..982316bde7 --- /dev/null +++ b/dev-tex/ninecolors/ninecolors-2022.02.13.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit latex-package + +DESCRIPTION="Select colors with proper WCAG color contrast" +HOMEPAGE="https://www.ctan.org/pkg/ninecolors/" +SRC_URI="https://mirrors.ctan.org/macros/latex/contrib/ninecolors.zip -> ${P}.zip" + +LICENSE="LPPL-1.3" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="doc" + +RDEPEND=" + dev-texlive/texlive-latexrecommended + >=dev-texlive/texlive-latexextra-2012 + dev-texlive/texlive-plaingeneric +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${RDEPEND} + app-arch/unzip +" + +TEXMF="/usr/share/texmf-site" +S=${WORKDIR}/${PN} + +src_install() { + latex-package_src_doinstall styles + dodoc README.txt + if use doc ; then + latex-package_src_doinstall pdf + fi +}