mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
media-fonts/hackgen: new package, add 2.9.0
Signed-off-by: Daichi Yamamoto <dev@dyama.net>
This commit is contained in:
35
media-fonts/hackgen/hackgen-2.9.0.ebuild
Normal file
35
media-fonts/hackgen/hackgen-2.9.0.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit font
|
||||
|
||||
MY_PN="HackGen"
|
||||
MY_PV="v${PV}"
|
||||
MY_P="${MY_PN}_${MY_PV}"
|
||||
MY_P_NF="${MY_PN}_NF_${MY_PV}"
|
||||
|
||||
DESCRIPTION="HackGen is a composite font of Hack and GenJyuu-Gothic."
|
||||
HOMEPAGE="https://github.com/yuru7/HackGen"
|
||||
SRC_URI="https://github.com/yuru7/HackGen/releases/download/${MY_PV}/${MY_P}.zip
|
||||
nerdfonts? ( https://github.com/yuru7/HackGen/releases/download/${MY_PV}/${MY_P_NF}.zip )
|
||||
"
|
||||
|
||||
LICENSE="OFL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="nerdfonts"
|
||||
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
FONT_SUFFIX="ttf"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv ${MY_P}/*.${FONT_SUFFIX} . || die
|
||||
if use nerdfonts; then
|
||||
mv ${MY_P_NF}/*.${FONT_SUFFIX} . || die
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user