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.
61 lines
1.1 KiB
61 lines
1.1 KiB
3 years ago
|
# Copyright 2003-2021 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
5 years ago
|
inherit font toolchain-funcs
|
||
6 years ago
|
|
||
|
DESCRIPTION="GNU Unifont - a Pan-Unicode X11 bitmap iso10646 font"
|
||
|
HOMEPAGE="http://unifoundry.com/"
|
||
|
SRC_URI="mirror://gnu/${PN}/${P}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 ~s390 sparc x86"
|
||
6 years ago
|
IUSE="fontforge utils"
|
||
|
|
||
5 years ago
|
BDEPEND="
|
||
6 years ago
|
fontforge? (
|
||
|
app-text/bdf2psf
|
||
|
dev-lang/perl
|
||
3 years ago
|
dev-perl/GD[png(+)]
|
||
6 years ago
|
media-gfx/fontforge
|
||
|
x11-apps/bdftopcf
|
||
|
)
|
||
|
"
|
||
|
RDEPEND="
|
||
|
utils? (
|
||
|
dev-lang/perl
|
||
3 years ago
|
dev-perl/GD[png(+)]
|
||
6 years ago
|
)
|
||
|
"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/11.0.02-make.patch
|
||
|
)
|
||
|
|
||
|
src_compile() {
|
||
5 years ago
|
buildargs=(
|
||
|
BUILDFONT=$(usex fontforge 1 '')
|
||
|
CC="$(tc-getCC)"
|
||
|
CFLAGS="${CFLAGS}"
|
||
|
INSTALL="${INSTALL-install}"
|
||
|
)
|
||
6 years ago
|
if use fontforge || use utils; then
|
||
5 years ago
|
emake "${buildargs[@]}"
|
||
6 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
5 years ago
|
local installargs=(
|
||
|
COMPRESS=0
|
||
|
DESTDIR="${ED}"
|
||
|
PCFDEST="${ED}${FONTDIR}"
|
||
|
TTFDEST="${ED}${FONTDIR}"
|
||
6 years ago
|
)
|
||
5 years ago
|
use utils || installargs+=( -C font )
|
||
|
emake "${buildargs[@]}" "${installargs[@]}" install
|
||
6 years ago
|
font_xfont_config
|
||
|
font_fontconfig
|
||
|
}
|