Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/terminus-font/
Date: Sat, 26 Dec 2020 19:26:24
Message-Id: 1609010776.4f2851c3113d5d34cd68f444c1b2491716be4b31.slyfox@gentoo
1 commit: 4f2851c3113d5d34cd68f444c1b2491716be4b31
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 19:22:29 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 19:26:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f2851c3
7
8 media-fonts/terminus-font: bump up to 4.49
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 media-fonts/terminus-font/Manifest | 1 +
14 .../terminus-font/terminus-font-4.49.ebuild | 94 ++++++++++++++++++++++
15 2 files changed, 95 insertions(+)
16
17 diff --git a/media-fonts/terminus-font/Manifest b/media-fonts/terminus-font/Manifest
18 index dc277596a9f..d50dc7c1ecf 100644
19 --- a/media-fonts/terminus-font/Manifest
20 +++ b/media-fonts/terminus-font/Manifest
21 @@ -1 +1,2 @@
22 DIST terminus-font-4.48.tar.gz 620561 BLAKE2B 8ab977a0b4b529faa38d082969e10a8f0ca3860b745441ed8f45761b95869194226446c487bc7c5490d2a88d1836aa6152424d6646b63b9fbc11e43dc8e255d6 SHA512 5f45f7d0e7396f02158f4751aaafb3f0a3fb68dbe3e5501f86a5138c6d52f5106053e38c368d560e5979e29250074dbde5165702b8905a564d029663a2219af4
23 +DIST terminus-font-4.49.tar.gz 648477 BLAKE2B 67bddaae88b7411381bce5e8fe5c1b0dab334a33f1371a33038556beffa779afec8706f27b156e5660bfab5b8b7aeda75267c68945e1be3b41dbea7e9345f164 SHA512 27d396e7fe399728b5e9228c901922588eab0b344ea438fcf98f18f80ce816d838a42d5a3da0b5644d895747bcbda0e30bb8dabf342c0439d1f6b51f7acf8496
24
25 diff --git a/media-fonts/terminus-font/terminus-font-4.49.ebuild b/media-fonts/terminus-font/terminus-font-4.49.ebuild
26 new file mode 100644
27 index 00000000000..985cc1d4d8c
28 --- /dev/null
29 +++ b/media-fonts/terminus-font/terminus-font-4.49.ebuild
30 @@ -0,0 +1,94 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{6,7,8,9} )
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 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
46 +IUSE="a-like-o +center-tilde distinct-l otf +pcf +pcf-unicode-only +psf quote
47 + ru-dv +ru-g ru-i ru-k"
48 +
49 +DEPEND="app-arch/gzip
50 + ${PYTHON_DEPS}
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 + $(usex otf otb '')
98 + )
99 + [[ ${#args[@]} -gt 0 ]] && emake "${args[@]}"
100 +}
101 +
102 +src_install() {
103 + local args=(
104 + $(usex psf 'install-psf install-psf-vgaw install-psf-ref' '')
105 + $(usex pcf 'install-pcf' '')
106 + $(usex otf 'install-otb' '')
107 + )
108 + # Set the CHECKDIR to a dummy location so we always get the same set of
109 + # files installed regardless of what is in / or ROOT or wherever.
110 + [[ ${#args[@]} -gt 0 ]] && emake DESTDIR="${D}" CHECKDIR="${D}" "${args[@]}"
111 +
112 + # Remove trans files that the kbd package takes care of installing.
113 + rm -f "${ED}"/usr/share/consoletrans/*.trans
114 +
115 + if use pcf-unicode-only; then
116 + # Only the ter-x* fonts are unicode (ISO-10646-1) based
117 + rm -f "${ED}"/usr/share/fonts/terminus/ter-[0-9a-wy-z]* || die
118 + fi
119 +
120 + use otf && FONT_SUFFIX=otb
121 + font_src_install
122 +
123 + einstalldocs
124 +}