Annotation of /smage/trunk/core/corefonts/corefonts-2.0-r1.smage2
Parent Directory | Revision Log
Revision 1973 -
(hide annotations)
(download)
Wed Nov 9 16:46:11 2011 UTC (12 years, 6 months ago) by niro
File size: 2717 byte(s)
Wed Nov 9 16:46:11 2011 UTC (12 years, 6 months ago) by niro
File size: 2717 byte(s)
auto added: ver bump to 2.0-r1
1 | niro | 1973 | # $Id$ |
2 | |||
3 | PNAME="corefonts" | ||
4 | PVER="2.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="media-fonts" | ||
8 | |||
9 | DESCRIPTION="Microsofts standard truetype fonts." | ||
10 | HOMEPAGE="http://corefonts.sourceforge.net/" | ||
11 | |||
12 | DEPEND=">= media-libs/fontconfig-2.8" | ||
13 | SDEPEND=">= app-arch/cabextract-1 | ||
14 | >= x11-apps/mkfontscale-1 | ||
15 | >= x11-apps/mkfontdir-1" | ||
16 | |||
17 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
19 | |||
20 | MCORE_ONLY_KEEP="usr/share/fonts/corefonts/arial.ttf | ||
21 | usr/share/fonts/corefonts/fonts.dir | ||
22 | usr/share/fonts/corefonts/fonts.scale" | ||
23 | sminclude mtools mcore-split | ||
24 | |||
25 | FONTS="andale32.exe | ||
26 | arial32.exe | ||
27 | arialb32.exe | ||
28 | comic32.exe | ||
29 | courie32.exe | ||
30 | georgi32.exe | ||
31 | impact32.exe | ||
32 | times32.exe | ||
33 | trebuc32.exe | ||
34 | verdan32.exe | ||
35 | webdin32.exe | ||
36 | wd97vwr32.exe" | ||
37 | |||
38 | SRC_URI=( | ||
39 | sourceforge://${PNAME}/andale32.exe | ||
40 | sourceforge://${PNAME}/arial32.exe | ||
41 | sourceforge://${PNAME}/arialb32.exe | ||
42 | sourceforge://${PNAME}/comic32.exe | ||
43 | sourceforge://${PNAME}/courie32.exe | ||
44 | sourceforge://${PNAME}/georgi32.exe | ||
45 | sourceforge://${PNAME}/impact32.exe | ||
46 | sourceforge://${PNAME}/times32.exe | ||
47 | sourceforge://${PNAME}/trebuc32.exe | ||
48 | sourceforge://${PNAME}/verdan32.exe | ||
49 | sourceforge://${PNAME}/webdin32.exe | ||
50 | sourceforge://${PNAME}/wd97vwr32.exe | ||
51 | mirror://${PNAME}/andale32.exe | ||
52 | mirror://${PNAME}/arial32.exe | ||
53 | mirror://${PNAME}/arialb32.exe | ||
54 | mirror://${PNAME}/comic32.exe | ||
55 | mirror://${PNAME}/courie32.exe | ||
56 | mirror://${PNAME}/georgi32.exe | ||
57 | mirror://${PNAME}/impact32.exe | ||
58 | mirror://${PNAME}/times32.exe | ||
59 | mirror://${PNAME}/trebuc32.exe | ||
60 | mirror://${PNAME}/verdan32.exe | ||
61 | mirror://${PNAME}/webdin32.exe | ||
62 | mirror://${PNAME}/wd97vwr32.exe | ||
63 | ) | ||
64 | |||
65 | # fake up2date | ||
66 | UP2DATE="echo ${PVER}" | ||
67 | |||
68 | src_prepare() | ||
69 | { | ||
70 | install -d ${SRCDIR} | ||
71 | cd ${SRCDIR} | ||
72 | |||
73 | # unpack | ||
74 | local i | ||
75 | for i in ${FONTS} | ||
76 | do | ||
77 | cabextract --lowercase ${SOURCEDIR}/${PNAME}/${i} || die ${i} | ||
78 | done | ||
79 | |||
80 | # wd97vwr32 has a cab included called viewer1.cab with the fonts | ||
81 | cabextract --lowercase ${SRCDIR}/viewer1.cab || die | ||
82 | } | ||
83 | |||
84 | mcore_generic_src_install() | ||
85 | { | ||
86 | cd ${SRCDIR} | ||
87 | |||
88 | # needed directories | ||
89 | minstalldir /usr/share/fonts/${PNAME} || die | ||
90 | |||
91 | # install the fonts | ||
92 | minstallfile \*.ttf /usr/share/fonts/${PNAME} || die | ||
93 | |||
94 | # remove fonts.dir fonts.scal encodings.dir | ||
95 | # as we regenerate them | ||
96 | rm -f fonts.{dir,scale} encodings.dir || die | ||
97 | |||
98 | # now create Xfont files | ||
99 | echo "Creating fonts.scale & fonts.dir ..." | ||
100 | mkfontscale ${BINDIR}/usr/share/fonts/${PNAME} || die | ||
101 | mkfontdir \ | ||
102 | -e /usr/share/fonts/encodings \ | ||
103 | -e /usr/share/fonts/encodings/large \ | ||
104 | ${BINDIR}/usr/share/fonts/${PNAME} || die | ||
105 | |||
106 | # install fonts.alias if exist | ||
107 | if [[ -e ${SRCDIR}/fonts.alias ]] | ||
108 | then | ||
109 | minstallfile ${SRCDIR}/fonts.alias /usr/share/fonts/${PNAME} || die | ||
110 | fi | ||
111 | |||
112 | # now recreate fontconfig cache | ||
113 | echo "Creating fontconfig cache ..." | ||
114 | HOME="/root" fc-cache -f ${BINDIR}/usr/share/fonts/${PNAME} | ||
115 | } |