media-fonts/victor-mono: add v1.5.1

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
This commit is contained in:
Alexey Zapparov
2021-12-25 22:04:38 +01:00
parent 7acdbd5dc4
commit a20558a883
4 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST victor-mono-1.5.1.zip 7923821 BLAKE2B 966901025098568d50b523f9200b3994b6ef19e0efadd3b9ca32285363332152e11981e546a4f3b2786b6bae0833a2cda012b88cfd089e22e54bd3c10bf0b085 SHA512 221c987db51d713dd8294a833f2fed540a8dea1ad66ad6199d0cfd8f32115f30d130f54b44e628b5ea291335bc1deba3ea99c0ff932920e467fc4b40f1e0125d

View File

@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>monospace</family>
<prefer>
<family>Victor Mono</family>
</prefer>
</alias>
<alias>
<family>Victor Mono</family>
<default>
<family>monospace</family>
</default>
</alias>
</fontconfig>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>alexey@zapparov.com</email>
<name>Alexey Zapparov</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/rubjo/victor-mono/issues</bugs-to>
<remote-id type="github">rubjo/victor-mono</remote-id>
</upstream>
<use>
<flag name="otf">Install the OpenType version of the font</flag>
<flag name="ttf">Install the TrueType version of the font</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,31 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit font
DESCRIPTION="A free programming font with cursive italics and ligatures"
HOMEPAGE="https://rubjo.github.io/victor-mono/"
SRC_URI="https://github.com/rubjo/victor-mono/raw/v${PV}/public/VictorMonoAll.zip -> ${P}.zip"
RESTRICT="primaryuri binchecks strip"
LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+otf ttf"
REQUIRED_USE="|| ( otf ttf )"
S="${WORKDIR}"
FONT_CONF=(
"${FILESDIR}/66-victor-mono.conf"
)
src_install() {
use otf && { FONT_S="${S}/OTF"; FONT_SUFFIX="otf"; }
use ttf && { FONT_S="${S}/TTF"; FONT_SUFFIX="ttf"; }
font_src_install
}