diff options
Diffstat (limited to 'media-fonts/terminus-font/terminus-font-4.38-r2.ebuild')
-rw-r--r-- | media-fonts/terminus-font/terminus-font-4.38-r2.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/media-fonts/terminus-font/terminus-font-4.38-r2.ebuild b/media-fonts/terminus-font/terminus-font-4.38-r2.ebuild new file mode 100644 index 0000000..426d859 --- /dev/null +++ b/media-fonts/terminus-font/terminus-font-4.38-r2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/terminus-font-4.38.ebuild,v 1.13 2013/09/06 14:58:02 ago Exp $ + +EAPI=4 + +inherit eutils font + +DESCRIPTION="A clean fixed font for the console and X11" +HOMEPAGE="http://terminus-font.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz" + +LICENSE="OFL-1.1 GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="a-like-o +center-tilde distinct-l ru-dv +ru-g quote ru-i ru-k +psf raw-font-data +pcf +powerline" + +DEPEND="app-arch/gzip + dev-lang/perl + virtual/awk + pcf? ( x11-apps/bdftopcf )" +RDEPEND="" + +FONTDIR=/usr/share/fonts/terminus +DOCS="README README-BG AUTHORS CHANGES" + +REQUIRED_USE="X? ( pcf )" + +src_prepare() { + # Upstream patches. Some of them are suggested to be applied by default + # dv - de NOT like latin g, but like caps greek delta + # ve NOT like greek beta, but like caps latin B + # ge - ge NOT like "mirrored" latin s, but like caps greek gamma + # ka - small ka NOT like minimised caps latin K, but like small latin k + use a-like-o && epatch "${S}"/alt/ao2.diff + use center-tilde && epatch "${S}"/alt/td1.diff + use distinct-l && epatch "${S}"/alt/ll2.diff + use ru-i && epatch "${S}"/alt/ij1.diff + use ru-k && epatch "${S}"/alt/ka2.diff + use ru-dv && epatch "${S}"/alt/dv1.diff + use ru-g && epatch "${S}"/alt/ge2.diff + use quote && epatch "${S}"/alt/gq2.diff + use powerline && epatch "${FILESDIR}/${P}"-powerline-symbols.patch +} + +src_configure() { + # selfwritten configure script without executable bit + chmod +x ./configure || die + ./configure \ + --prefix="${EPREFIX}"/usr \ + --psfdir="${EPREFIX}"/usr/share/consolefonts \ + --acmdir="${EPREFIX}"/usr/share/consoletrans \ + --unidir="${EPREFIX}"/usr/share/consoletrans \ + --x11dir="${EPREFIX}"/${FONTDIR} || die +} + +src_compile() { + if use psf; then emake psf txt; fi + if use raw-font-data; then emake raw; fi + if use pcf; then emake pcf; fi +} + +src_install() { + if use psf; then + emake DESTDIR="${D}" install-psf install-uni install-acm install-ref + fi + if use raw-font-data; then + emake DESTDIR="${D}" install.raw + fi + if use pcf; then + emake DESTDIR="${D}" install-pcf + fi + + font_src_install +} |