commit:     940137fcbdf55f659f27ffa4dd31083bfb6ad411
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 17 08:08:16 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jul 17 08:12:42 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=940137fc

media-fonts/terminus-font: Bump to version 4.46

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 media-fonts/terminus-font/Manifest                 |  1 +
 .../terminus-font/terminus-font-4.46.ebuild        | 91 ++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/media-fonts/terminus-font/Manifest 
b/media-fonts/terminus-font/Manifest
index 87e0d3df00f..9511e04dcc9 100644
--- a/media-fonts/terminus-font/Manifest
+++ b/media-fonts/terminus-font/Manifest
@@ -1,2 +1,3 @@
 DIST terminus-font-4.39.tar.gz 324890 SHA256 
3108383986b365a4b9cc08c31a4195196f6de974d2735d77f6c6efa9feb1f5bf SHA512 
d2b1c55584eabf423a455ea11d90ba8037b4e5823c677a8c604de1e41c55d829b743db2d1932cd755064db681fcd0b5be8484439ddde4394955d0af5174ff591
 WHIRLPOOL 
00f2e84660e492cd0a047fa0d636dda39b48248f0ce490e4b0dac74425d378a657ebe73c7f234d6681a4ae18cd53acf53c2234368e727bd35b370884db4e8d84
 DIST terminus-font-4.40.tar.gz 558440 SHA256 
64f52c24d3f1c1e39f21e6c43077a9be3e21d4384f176f5766c00558ba670711 SHA512 
843da1f51e37d48ae88c88def965ed96c2236c183fb596705290a96eba41256a02197a298439b83913eb7679b32c2a8f44dd04de031be4db56285efd3d4c6900
 WHIRLPOOL 
d5f5422eb6699ea93fc960a50cd409e7cef211391095c07a178c5cde6b7c7df94374923475e7d9c9728281d5a174009bfa36cdd9e49028339de27076d6d6f411
+DIST terminus-font-4.46.tar.gz 590210 SHA256 
4e29433e5699b76df1f5c9a96f1228cccf8ea8a16791cfef063f2b8506c75bcd SHA512 
ae221920ecff54b9575a25d30a429feee6e19ef1e9669896c34f86f80d5495c3654f5423ff1df76e86bc999d1f37c306048b44d8ca55144f0f299926d3d33b58
 WHIRLPOOL 
da73bf6ffcbaab6223ac89e061af7f2e406c1e70b237e3cdabfdc18d5855a13524117f1054fa464be766ee850c3dd2bc2df01b8b0748424fcbf6dd0ed89be10a

diff --git a/media-fonts/terminus-font/terminus-font-4.46.ebuild 
b/media-fonts/terminus-font/terminus-font-4.46.ebuild
new file mode 100644
index 00000000000..27a0fd5e555
--- /dev/null
+++ b/media-fonts/terminus-font/terminus-font-4.46.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+inherit font python-r1
+
+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 ~arm64 ~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 +pcf +pcf-unicode-only +psf quote
+       ru-dv +ru-g ru-i ru-k"
+
+DEPEND="app-arch/gzip
+       ${PYTHON_DEPEND}
+       virtual/awk
+       pcf? ( x11-apps/bdftopcf )"
+RDEPEND=""
+
+FONTDIR=/usr/share/fonts/terminus
+FONT_CONF=( 75-yes-terminus.conf )
+DOCS=( README README-BG AUTHORS CHANGES )
+
+REQUIRED_USE="X? ( pcf )"
+
+pkg_setup() {
+       python_setup
+}
+
+src_prepare() {
+       default
+
+       # 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            && eapply "${S}"/alt/ao2.diff
+       use center-tilde        && eapply "${S}"/alt/td1.diff
+       use distinct-l          && eapply "${S}"/alt/ll2.diff
+       use ru-i                && eapply "${S}"/alt/ij1.diff
+       use ru-k                && eapply "${S}"/alt/ka2.diff
+       use ru-dv               && eapply "${S}"/alt/dv1.diff
+       use ru-g                && eapply "${S}"/alt/ge2.diff
+       use quote               && eapply "${S}"/alt/gq2.diff
+}
+
+src_configure() {
+       local configure_args=(
+               --prefix="${EPREFIX}"/usr
+               --psfdir="${EPREFIX}"/usr/share/consolefonts
+               --x11dir="${EPREFIX}"/${FONTDIR}
+       )
+       # selfwritten configure script
+       ./configure "${configure_args[@]}" || die
+}
+
+src_compile() {
+       local args=(
+               $(usex psf 'psf psf-vgaw' '')
+               $(usex pcf 'pcf pcf-8bit' '')
+       )
+       [[ ${#args[@]} -gt 0 ]] && emake "${args[@]}"
+}
+
+src_install() {
+       local args=(
+               $(usex psf 'install-psf install-psf-vgaw install-psf-ref' '')
+               $(usex pcf 'install-pcf' '')
+       )
+       # Set the CHECKDIR to a dummy location so we always get the same set of
+       # files installed regardless of what is in / or ROOT or wherever.
+       [[ ${#args[@]} -gt 0 ]] && emake DESTDIR="${D}" CHECKDIR="${D}" 
"${args[@]}"
+
+       # Remove trans files that the kbd package takes care of installing.
+       rm -f "${ED}"/usr/share/consoletrans/*.trans
+
+       if use pcf-unicode-only; then
+               # Only the ter-x* fonts are unicode (ISO-10646-1) based
+               rm -f "${ED}"/usr/share/fonts/terminus/ter-[0-9a-wy-z]* || die
+       fi
+
+       font_src_install
+
+       einstalldocs
+}

Reply via email to