Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-fonts/terminus-font: terminus-font-4.39-r1.ebuild metadata.xml ChangeLog
Date: Tue, 10 Feb 2015 07:43:19
Message-Id: 20150210074314.659B61170C@oystercatcher.gentoo.org
1 yngwin 15/02/10 07:43:14
2
3 Modified: metadata.xml ChangeLog
4 Added: terminus-font-4.39-r1.ebuild
5 Log:
6 Add pcf-unicode-only useflag, enabled by default (bug #520222). Bump EAPI to 5. Alphabetize USE flags listing.
7
8 (Portage version: 2.2.16/cvs/Linux x86_64, signed Manifest commit with key 0x4FDF9CFD2FAC514E!)
9
10 Revision Changes Path
11 1.11 media-fonts/terminus-font/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/metadata.xml?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/metadata.xml?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/metadata.xml?r1=1.10&r2=1.11
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/metadata.xml,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- metadata.xml 29 Aug 2012 06:04:00 -0000 1.10
24 +++ metadata.xml 10 Feb 2015 07:43:14 -0000 1.11
25 @@ -40,5 +40,8 @@
26 Place the '~' character vertically centered on the line instead of to the
27 top.
28 </flag>
29 + <flag name="pcf-unicode-only">
30 + Remove non-unicode PCF fonts that could be problematic. See bug #520222.
31 + </flag>
32 </use>
33 </pkgmetadata>
34
35
36
37 1.104 media-fonts/terminus-font/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/ChangeLog?rev=1.104&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/ChangeLog?rev=1.104&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/ChangeLog?r1=1.103&r2=1.104
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/ChangeLog,v
46 retrieving revision 1.103
47 retrieving revision 1.104
48 diff -u -r1.103 -r1.104
49 --- ChangeLog 8 Feb 2015 19:39:17 -0000 1.103
50 +++ ChangeLog 10 Feb 2015 07:43:14 -0000 1.104
51 @@ -1,6 +1,13 @@
52 # ChangeLog for media-fonts/terminus-font
53 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/ChangeLog,v 1.103 2015/02/08 19:39:17 floppym Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/ChangeLog,v 1.104 2015/02/10 07:43:14 yngwin Exp $
56 +
57 +*terminus-font-4.39-r1 (10 Feb 2015)
58 +
59 + 10 Feb 2015; Ben de Groot <yngwin@g.o> +terminus-font-4.39-r1.ebuild,
60 + metadata.xml:
61 + Add pcf-unicode-only useflag, enabled by default (bug #520222). Bump EAPI to
62 + 5. Alphabetize USE flags listing.
63
64 08 Feb 2015; Mike Gilbert <floppym@g.o> terminus-font-4.39.ebuild:
65 Install 75-yes-terminus.conf.
66
67
68
69 1.1 media-fonts/terminus-font/terminus-font-4.39-r1.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/terminus-font-4.39-r1.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-fonts/terminus-font/terminus-font-4.39-r1.ebuild?rev=1.1&content-type=text/plain
73
74 Index: terminus-font-4.39-r1.ebuild
75 ===================================================================
76 # Copyright 1999-2015 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/terminus-font-4.39-r1.ebuild,v 1.1 2015/02/10 07:43:14 yngwin Exp $
79
80 EAPI=5
81 inherit eutils font
82
83 DESCRIPTION="A clean fixed font for the console and X11"
84 HOMEPAGE="http://terminus-font.sourceforge.net/"
85 SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz"
86
87 LICENSE="OFL-1.1 GPL-2"
88 SLOT="0"
89 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc
90 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
91 IUSE="a-like-o +center-tilde distinct-l +pcf +pcf-unicode-only +psf quote
92 raw-font-data ru-dv +ru-g ru-i ru-k"
93
94 DEPEND="app-arch/gzip
95 dev-lang/perl
96 virtual/awk
97 pcf? ( x11-apps/bdftopcf )"
98 RDEPEND=""
99
100 FONTDIR=/usr/share/fonts/terminus
101 FONT_CONF=( 75-yes-terminus.conf )
102 DOCS="README README-BG AUTHORS CHANGES"
103
104 REQUIRED_USE="X? ( pcf )"
105
106 src_prepare() {
107 # Upstream patches. Some of them are suggested to be applied by default
108 # dv - de NOT like latin g, but like caps greek delta
109 # ve NOT like greek beta, but like caps latin B
110 # ge - ge NOT like "mirrored" latin s, but like caps greek gamma
111 # ka - small ka NOT like minimised caps latin K, but like small latin k
112 use a-like-o && epatch "${S}"/alt/ao2.diff
113 use center-tilde && epatch "${S}"/alt/td1.diff
114 use distinct-l && epatch "${S}"/alt/ll2.diff
115 use ru-i && epatch "${S}"/alt/ij1.diff
116 use ru-k && epatch "${S}"/alt/ka2.diff
117 use ru-dv && epatch "${S}"/alt/dv1.diff
118 use ru-g && epatch "${S}"/alt/ge2.diff
119 use quote && epatch "${S}"/alt/gq2.diff
120 }
121
122 src_configure() {
123 # selfwritten configure script without executable bit
124 chmod +x ./configure || die
125 ./configure \
126 --prefix="${EPREFIX}"/usr \
127 --psfdir="${EPREFIX}"/usr/share/consolefonts \
128 --acmdir="${EPREFIX}"/usr/share/consoletrans \
129 --unidir="${EPREFIX}"/usr/share/consoletrans \
130 --x11dir="${EPREFIX}"/${FONTDIR} || die
131 }
132
133 src_compile() {
134 local args=(
135 $(usex psf 'psf txt' '')
136 $(usex raw-font-data 'raw' '')
137 $(usex pcf 'pcf' '')
138 )
139 [[ ${#args[@]} -gt 0 ]] && emake "${args[@]}"
140 }
141
142 src_install() {
143 local args=(
144 $(usex psf 'install-psf install-uni install-acm install-ref' '')
145 $(usex raw-font-data 'install.raw' '')
146 $(usex pcf 'install-pcf' '')
147 )
148 # Set the CHECKDIR to a dummy location so we always get the same set of
149 # files installed regardless of what is in / or ROOT or wherever.
150 [[ ${#args[@]} -gt 0 ]] && emake DESTDIR="${D}" CHECKDIR="${D}" "${args[@]}"
151
152 # Remove trans files that the kbd package takes care of installing.
153 rm -f "${ED}"/usr/share/consoletrans/*.trans
154
155 if use pcf-unicode-only; then
156 # Only the ter-x* fonts are unicode (ISO-10646-1) based
157 rm -f "${ED}"/usr/share/fonts/terminus/ter-[0-9a-wy-z]* || die
158 fi
159
160 font_src_install
161 }