feat: tewi-font
This commit is contained in:
parent
2ac923f1e1
commit
ba066d2f81
3 changed files with 66 additions and 0 deletions
3
media-fonts/tewi-font/Manifest
Normal file
3
media-fonts/tewi-font/Manifest
Normal file
|
@ -0,0 +1,3 @@
|
|||
DIST tewi-font-2.0.2.tar.gz 65345 BLAKE2B 66b507aae47e8cef6eb23ea5f6ea9403a8387ff1ae2349641357ba53fe97bf1503f038b3cb9a4580befc632a999fbc60657a7c36ac989958b318a4b85c13d036 SHA512 823b4c399a64ff66280323ae09f7f3c1dc51a7e2506acfcc9e8f509d600e7bc193e523755f0921921ceb09763e16babc5258467485d3a5260b37055bcfad9123
|
||||
EBUILD tewi-font-2.0.2.ebuild 858 BLAKE2B d7b747b2996f2396c079337b97e6c402770c6a2d2cb771888b945ae70efe1a89cf320cf9bb319c879ae609b0951a018ab31f55a10d0f25b91a6659729bb197db SHA512 edddcd92f03119757b50e6555c6a2150ffcb8dac9834027af054ff1199c2d62ecc6f1c3d84b49a4ea96ffba59a04202dc2dd90f3fa44950de5a78b337f95e983
|
||||
MISC metadata.xml 206 BLAKE2B 91e9875d8a3b48e865979f5f6ee10d2bd919b10d979fb38400eced48c27e92bbba5bd9de7508ef8af1272030e7ce56866453b62db2b1c93c1d039f6f0553e772 SHA512 ba8fb7e080ee3c45301266fcf28204a8be68e5d2026296397ed6ba78258cfc0247ed7095c0e866f222d2546617aefc4652c3730de5976de83db6863c3da36f05
|
9
media-fonts/tewi-font/metadata.xml
Normal file
9
media-fonts/tewi-font/metadata.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>jaredallard@outlook.com</email>
|
||||
<name>jaredallard</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="pcf"> Install pcf files instead of bdf </flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
54
media-fonts/tewi-font/tewi-font-2.0.2.ebuild
Normal file
54
media-fonts/tewi-font/tewi-font-2.0.2.ebuild
Normal file
|
@ -0,0 +1,54 @@
|
|||
# Copyright 2018-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
SCM="git-r3"
|
||||
EGIT_REPO_URI="https://github.com/lucy/tewi-font.git"
|
||||
fi
|
||||
|
||||
inherit font python-any-r1 ${SCM}
|
||||
|
||||
DESCRIPTION="A small bitmap font"
|
||||
HOMEPAGE="https://github.com/lucy/tewi-font"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/lucy/tewi-font/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="+pcf"
|
||||
|
||||
DEPEND="x11-libs/libX11
|
||||
pcf? ( x11-apps/bdftopcf )
|
||||
"
|
||||
RDEPEND="x11-libs/libX11"
|
||||
BDEPEND=""
|
||||
|
||||
src_compile() {
|
||||
if use pcf; then
|
||||
emake
|
||||
else
|
||||
emake var
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/fonts/${PN}"
|
||||
|
||||
if use pcf; then
|
||||
doins out/*
|
||||
else
|
||||
doins *.bdf
|
||||
fi
|
||||
|
||||
font_src_install
|
||||
}
|
Loading…
Add table
Reference in a new issue