dev-tex/ninecolors: new package, add 2022.02.13

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui committed 2023-10-18 18:03:18 +08:00
1 parent d7f8fbabb6
commit da8916533c
3 files changed
+60

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST ninecolors-2022.02.13.zip 52616 BLAKE2B d0e90e3d7aaa7ee8f96904139b8b660ba5305f3106562f6bdb523653ba57a51ffc6f0ff8a0689c768b5de1b577d08a6f4b1b82d0558400419d8a10f5ebae084c SHA512 c778e1a2dfbe02a6f7a4cd9d7f5e6da5dfee7daa07bad11cda41faa971ba4330be91abdf3354b2f36bc7b7836f4d0767bc89dd213fa7466dd6cf7c2548cbe8e4
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>vowstar@gmail.com</email>
<name>Huang Rui</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
<longdescription lang="zh">
该包精心选择并定义了 9 种颜色,每种颜色 13 种色调。所有具有相同后缀
编号的颜色都具有相同的亮度级别。黑色的级别为 0,白色的级别为 10。
只需在上面的列表中选择两种颜色(级别相差至少 5)作为前景色和背景色,
您将获得正确的 WCAG 颜色对比度。
</longdescription>
</pkgmetadata>
@@ -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
}