You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-fonts/baekmuk-fonts/baekmuk-fonts-2.2-r2.ebuild

43 lines
1.0 KiB

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit font font-ebdftopcf
BDF_P="${P/fonts/bdf}"
TTF_P="${P/fonts/ttf}"
UNI_P="${PN/fonts/unicode-bdf}-20020418"
DESCRIPTION="Korean Baekmuk Font"
HOMEPAGE="http://kldp.net/baekmuk/"
SRC_URI="http://kldp.net/${PN/-*}/release/865-${BDF_P}.tar.gz -> ${BDF_P}.tar.gz
http://kldp.net/${PN/-*}/release/865-${TTF_P}.tar.gz -> ${TTF_P}.tar.gz
unicode? ( mirror://gentoo/${UNI_P}.tar.bz2 )"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="unicode"
RESTRICT="binchecks strip"
S="${WORKDIR}"
src_unpack() {
unpack ${BDF_P}.tar.gz ${TTF_P}.tar.gz
if use unicode; then
cd "${WORKDIR}"/${BDF_P}/bdf
unpack ${UNI_P}.tar.bz2
fi
}
src_compile() {
cd ${BDF_P}/bdf
font-ebdftopcf_src_compile
}
src_install () {
FONT_S="${S}"/${TTF_P}/ttf FONT_SUFFIX="ttf" font_src_install
FONT_S="${S}"/${BDF_P}/bdf font_src_install
}