Magellan Linux

Contents of /smage/trunk/core/font-misc-misc/font-misc-misc-1.1.2-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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