Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/font-misc-misc/font-misc-misc-1.1.2-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14979 - (hide annotations) (download)
Thu Aug 6 12:59:35 2020 UTC (3 years, 9 months ago) by niro
File size: 2096 byte(s)
-release branches/alx07x-stable
1 niro 14186 # $Id$
2    
3     PNAME="font-misc-misc"
4     PVER="1.1.2"
5     PBUILD="r8"
6    
7     PCAT="media-fonts"
8    
9     DESCRIPTION="A Misc Public Domain font family."
10     HOMEPAGE="http://xorg.freedesktop.org"
11    
12     SDEPEND=">= x11-apps/bdftopcf-1
13     >= media-fonts/font-util-1"
14    
15     ALX_PKG_KEEP="usr/share/fonts/misc/6x13.pcf.gz
16     usr/share/fonts/misc/6x13-ISO8859-1.pcf.gz
17     usr/share/fonts/misc/6x13B.pcf.gz
18     usr/share/fonts/misc/6x13B-ISO8859-1.pcf.gz
19     usr/share/fonts/misc/6x13O.pcf.gz
20     usr/share/fonts/misc/6x13O-ISO8859-1.pcf.gz
21     usr/share/fonts/misc/7x13.pcf.gz
22     usr/share/fonts/misc/7x13B-ISO8859-1.pcf.gz \
23     usr/share/fonts/misc/fonts.dir
24     usr/share/fonts/misc/fonts.scale
25     usr/share/fonts/misc/fonts.alias
26     usr/share/fonts/misc/encodings.dir"
27    
28     sminclude xorg alx-split
29    
30     src_compile()
31     {
32     cd ${SRCDIR}
33     local myconf
34    
35     # build only some generic fonts
36     myconf="--enable-iso8859-1"
37    
38     # disable all unwanted
39     myconf+=" --disable-iso8859-15"
40     myconf+=" --disable-iso8859-2"
41     myconf+=" --disable-iso8859-3"
42     myconf+=" --disable-iso8859-4"
43     myconf+=" --disable-iso8859-5"
44     myconf+=" --disable-iso8859-6"
45     myconf+=" --disable-iso8859-7"
46     myconf+=" --disable-iso8859-8"
47     myconf+=" --disable-iso8859-9"
48     myconf+=" --disable-iso8859-10"
49     myconf+=" --disable-iso8859-11"
50     myconf+=" --disable-iso8859-12"
51     myconf+=" --disable-iso8859-13"
52     myconf+=" --disable-iso8859-14"
53     myconf+=" --disable-iso8859-16"
54     myconf+=" --disable-koi8-r"
55     myconf+=" --disable-jisx0201"
56    
57     xorg_src_configure --with-mapfiles=/usr/share/fonts/util ${myconf} || die
58     mmake || die
59     }
60    
61     alx_generic_src_install()
62     {
63     cd ${SRCDIR}
64    
65     mmake DESTDIR=${BINDIR} install || die
66    
67     # update fonts.dir and fonts.scale against the remaining fonts
68     if [[ ${PNAME} = font-misc-misc ]]
69     then
70     echo -n "Regenerating fonts.dir and fonts.scale... "
71     # create fonts.scale
72     mkfontscale \
73     -a /usr/share/fonts/encodings/encodings.dir \
74     -- ${BINDIR}/usr/share/fonts/misc || die
75     # create fonts.dir (mkfontscale -b -s -l == mkfontdir ;)
76     mkfontscale -b -s -l \
77     -e /usr/share/fonts/encodings \
78     -e /usr/share/fonts/encodings/large \
79     -- ${BINDIR}/usr/share/fonts/misc || die
80     echo "done"
81     fi
82     }