/[gentoo-x86]/media-fonts/terminus-font/terminus-font-4.38.ebuild
Gentoo

Contents of /media-fonts/terminus-font/terminus-font-4.38.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Fri Sep 6 14:58:02 2013 UTC (5 years, 3 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -2 lines
Stable for sparc, wrt bug #448010

(Portage version: 2.1.12.2/cvs/Linux ppc64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-fonts/terminus-font/terminus-font-4.38.ebuild,v 1.12 2013/09/05 10:44:40 ago Exp $
4
5 EAPI=4
6
7 inherit eutils font
8
9 DESCRIPTION="A clean fixed font for the console and X11"
10 HOMEPAGE="http://terminus-font.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz"
12
13 LICENSE="OFL-1.1 GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
16 IUSE="a-like-o +center-tilde distinct-l ru-dv +ru-g quote ru-i ru-k +psf raw-font-data +pcf"
17
18 DEPEND="app-arch/gzip
19 dev-lang/perl
20 virtual/awk
21 pcf? ( x11-apps/bdftopcf )"
22 RDEPEND=""
23
24 FONTDIR=/usr/share/fonts/terminus
25 DOCS="README README-BG AUTHORS CHANGES"
26
27 REQUIRED_USE="X? ( pcf )"
28
29 src_prepare() {
30 # Upstream patches. Some of them are suggested to be applied by default
31 # dv - de NOT like latin g, but like caps greek delta
32 # ve NOT like greek beta, but like caps latin B
33 # ge - ge NOT like "mirrored" latin s, but like caps greek gamma
34 # ka - small ka NOT like minimised caps latin K, but like small latin k
35 use a-like-o && epatch "${S}"/alt/ao2.diff
36 use center-tilde && epatch "${S}"/alt/td1.diff
37 use distinct-l && epatch "${S}"/alt/ll2.diff
38 use ru-i && epatch "${S}"/alt/ij1.diff
39 use ru-k && epatch "${S}"/alt/ka2.diff
40 use ru-dv && epatch "${S}"/alt/dv1.diff
41 use ru-g && epatch "${S}"/alt/ge2.diff
42 use quote && epatch "${S}"/alt/gq2.diff
43 }
44
45 src_configure() {
46 # selfwritten configure script without executable bit
47 chmod +x ./configure || die
48 ./configure \
49 --prefix="${EPREFIX}"/usr \
50 --psfdir="${EPREFIX}"/usr/share/consolefonts \
51 --acmdir="${EPREFIX}"/usr/share/consoletrans \
52 --unidir="${EPREFIX}"/usr/share/consoletrans \
53 --x11dir="${EPREFIX}"/${FONTDIR} || die
54 }
55
56 src_compile() {
57 if use psf; then emake psf txt; fi
58 if use raw-font-data; then emake raw; fi
59 if use pcf; then emake pcf; fi
60 }
61
62 src_install() {
63 if use psf; then
64 emake DESTDIR="${D}" install-psf install-uni install-acm install-ref
65 fi
66 if use raw-font-data; then
67 emake DESTDIR="${D}" install.raw
68 fi
69 if use pcf; then
70 emake DESTDIR="${D}" install-pcf
71 fi
72
73 font_src_install
74 }

  ViewVC Help
Powered by ViewVC 1.1.20