Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/terminus-font/
Date: Wed, 02 Jan 2019 12:49:01
Message-Id: 1546433330.c567b6c0c2193e7f241a1bdb640e49da6ae0712b.polynomial-c@gentoo
1 commit: c567b6c0c2193e7f241a1bdb640e49da6ae0712b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 2 12:48:37 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 2 12:48:50 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c567b6c0
7
8 media-fonts/terminus-font: Bump to version 4.47
9
10 Package-Manager: Portage-2.3.53, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-fonts/terminus-font/Manifest | 1 +
14 .../terminus-font/terminus-font-4.47.ebuild | 91 ++++++++++++++++++++++
15 2 files changed, 92 insertions(+)
16
17 diff --git a/media-fonts/terminus-font/Manifest b/media-fonts/terminus-font/Manifest
18 index 8f7b10c2641..d7f7326206f 100644
19 --- a/media-fonts/terminus-font/Manifest
20 +++ b/media-fonts/terminus-font/Manifest
21 @@ -1 +1,2 @@
22 DIST terminus-font-4.46.tar.gz 590210 BLAKE2B 427b4878afd47cc6c1a0ba6b6116568630a618e313c24744b3465b3e301e142ccbb9bd5e336bed7d98f3d1e01a0a61c6fbdd17912f4d9332ed5430ef47bca4fe SHA512 ae221920ecff54b9575a25d30a429feee6e19ef1e9669896c34f86f80d5495c3654f5423ff1df76e86bc999d1f37c306048b44d8ca55144f0f299926d3d33b58
23 +DIST terminus-font-4.47.tar.gz 620344 BLAKE2B 10eaac6ff4880652ee7373374735629cada73e1cb63344b75b579532fad154b10322a7cb3691c2270c2b4d1aee0914c64338d3650625883752c7e33e5205212a SHA512 09455d107a09c422f4fedfcc70ae1483063c844fb01b0adfa3d2a0e28c9502e9ca922542b5ad735cbebb491d148c453d0213d61ebebf64c79f16cb582964fa47
24
25 diff --git a/media-fonts/terminus-font/terminus-font-4.47.ebuild b/media-fonts/terminus-font/terminus-font-4.47.ebuild
26 new file mode 100644
27 index 00000000000..d5e7073c67f
28 --- /dev/null
29 +++ b/media-fonts/terminus-font/terminus-font-4.47.ebuild
30 @@ -0,0 +1,91 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python3_{4,5,6,7} )
37 +inherit font python-any-r1
38 +
39 +DESCRIPTION="A clean fixed font for the console and X11"
40 +HOMEPAGE="http://terminus-font.sourceforge.net/"
41 +SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz"
42 +
43 +LICENSE="OFL-1.1 GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
46 +IUSE="a-like-o +center-tilde distinct-l +pcf +pcf-unicode-only +psf quote
47 + ru-dv +ru-g ru-i ru-k"
48 +
49 +DEPEND="app-arch/gzip
50 + ${PYTHON_DEPEND}
51 + virtual/awk
52 + pcf? ( x11-apps/bdftopcf )"
53 +RDEPEND=""
54 +
55 +FONTDIR=/usr/share/fonts/terminus
56 +FONT_CONF=( 75-yes-terminus.conf )
57 +DOCS=( README README-BG AUTHORS CHANGES )
58 +
59 +REQUIRED_USE="X? ( pcf )"
60 +
61 +pkg_setup() {
62 + python_setup
63 +}
64 +
65 +src_prepare() {
66 + default
67 +
68 + # Upstream patches. Some of them are suggested to be applied by default
69 + # dv - de NOT like latin g, but like caps greek delta
70 + # ve NOT like greek beta, but like caps latin B
71 + # ge - ge NOT like "mirrored" latin s, but like caps greek gamma
72 + # ka - small ka NOT like minimised caps latin K, but like small latin k
73 + use a-like-o && eapply "${S}"/alt/ao2.diff
74 + use center-tilde && eapply "${S}"/alt/td1.diff
75 + use distinct-l && eapply "${S}"/alt/ll2.diff
76 + use ru-i && eapply "${S}"/alt/ij1.diff
77 + use ru-k && eapply "${S}"/alt/ka2.diff
78 + use ru-dv && eapply "${S}"/alt/dv1.diff
79 + use ru-g && eapply "${S}"/alt/ge2.diff
80 + use quote && eapply "${S}"/alt/gq2.diff
81 +}
82 +
83 +src_configure() {
84 + local configure_args=(
85 + --prefix="${EPREFIX}"/usr
86 + --psfdir="${EPREFIX}"/usr/share/consolefonts
87 + --x11dir="${EPREFIX}"/${FONTDIR}
88 + )
89 + # selfwritten configure script
90 + ./configure "${configure_args[@]}" || die
91 +}
92 +
93 +src_compile() {
94 + local args=(
95 + $(usex psf 'psf psf-vgaw' '')
96 + $(usex pcf 'pcf pcf-8bit' '')
97 + )
98 + [[ ${#args[@]} -gt 0 ]] && emake "${args[@]}"
99 +}
100 +
101 +src_install() {
102 + local args=(
103 + $(usex psf 'install-psf install-psf-vgaw install-psf-ref' '')
104 + $(usex pcf 'install-pcf' '')
105 + )
106 + # Set the CHECKDIR to a dummy location so we always get the same set of
107 + # files installed regardless of what is in / or ROOT or wherever.
108 + [[ ${#args[@]} -gt 0 ]] && emake DESTDIR="${D}" CHECKDIR="${D}" "${args[@]}"
109 +
110 + # Remove trans files that the kbd package takes care of installing.
111 + rm -f "${ED}"/usr/share/consoletrans/*.trans
112 +
113 + if use pcf-unicode-only; then
114 + # Only the ter-x* fonts are unicode (ISO-10646-1) based
115 + rm -f "${ED}"/usr/share/fonts/terminus/ter-[0-9a-wy-z]* || die
116 + fi
117 +
118 + font_src_install
119 +
120 + einstalldocs
121 +}