media-fonts/unifont - 18.0.01 (gentoo)

Search

Install

Install this version:

emerge -a =media-fonts/unifont-18.0.01

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-fonts/unifont-18.0.01

Or alternatively:

emerge --autounmask-write -a =media-fonts/unifont-18.0.01

Package Information

Description:
Unicode bitmap font with full Basic Multilingual Plane coverage
Homepage:
https://unifoundry.com/
License:
GPL-2+ || ( GPL-2+-with-font-exception OFL-1.1 ) public-domain utils? ( FDL-1.3+ )

Ebuild Details

Version EAPI Keywords Slot
18.0.01 8 ~alpha ~amd64 ~arm ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 0
View Raw Ebuild
# Copyright 2003-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit font optfeature toolchain-funcs verify-sig

DESCRIPTION="Unicode bitmap font with full Basic Multilingual Plane coverage"
HOMEPAGE="https://unifoundry.com/"
SRC_URI="
	mirror://gnu/${PN}/${P}/${P}.tar.gz
	verify-sig? ( mirror://gnu/${PN}/${P}/${P}.tar.gz.sig )
"

LICENSE="GPL-2+ || ( GPL-2+-with-font-exception OFL-1.1 ) public-domain utils? ( FDL-1.3+ )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="ttf utils"
REQUIRED_USE="ttf? ( utils )"

BDEPEND="
	media-libs/fontconfig
	utils? (
		app-text/bdf2psf
		x11-apps/bdftopcf
		ttf? ( media-gfx/fontforge )
	)
	verify-sig? ( sec-keys/openpgp-keys-paulhardy )
"

VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/paulhardy.asc

PATCHES=(
	"${FILESDIR}"/${PN}-17.0.03-Makefile.patch
	"${FILESDIR}"/${PN}-17.0.05-Makefile.patch
)

src_compile() {
	if use utils; then
		tc-export CC
		emake bindir libdir

		local font_targets=(
			opentype
			pcf
			psf
			$(usev ttf truetype)
			# compile unifont_all.hex
			$(usev utils coverage)
		)
		emake -C font "${font_targets[@]}"
	fi
}

src_install() {
	local installargs=(
		DESTDIR="${ED}"
		OTFDEST="${ED}${FONTDIR}"
		PCFDEST="${ED}${FONTDIR}"
	)
	emake "${installargs[@]}" -C font install

	if use ttf; then
		pushd "${S}"/font/compiled >/dev/null || die
		insinto /usr/share/fonts/unifont
		local files
		for files in *.ttf; do
			newins "${files}" "${files/-${PV}/}"
		done
		popd >/dev/null || die
	fi

	if use utils; then
		emake DESTDIR="${ED}" install

		local HTML_DOCS=( doxygen/html/. )
		find "${HTML_DOCS[@]}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die

		doman man/*.{1,5}
	fi

	einstalldocs

	font_xfont_config
	font_fontconfig
}

pkg_postinst() {
	font_pkg_postinst

	use utils && optfeature "unifont-viewer" dev-perl/Wx
	use utils && optfeature "unipng2hex"  dev-perl/GD virtual/perl-Getopt-Long
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-fonts/unifont | euse -E <flag> -p media-fonts/unifont | euse -D <flag> -p media-fonts/unifont

Global/Standard Flags

ttf

Inherited Eclasses

Applicable Mirrors

Mirror Name URLs
gnu

Dependencies

BDEPEND

	media-libs/fontconfig
	utils? (
		app-text/bdf2psf
		x11-apps/bdftopcf
		ttf? ( media-gfx/fontforge )
	)
	verify-sig? ( sec-keys/openpgp-keys-paulhardy )

Manifest for 18.0.01

Type File Size Source URLs
DIST unifont-18.0.01.tar.gz 41427259 bytes mirror://gnu/unifont/unifont-18.0.01/unifont-18.0.01.tar.gz
DIST unifont-18.0.01.tar.gz.sig 566 bytes mirror://gnu/unifont/unifont-18.0.01/unifont-18.0.01.tar.gz.sig