Annotation of /trunk/core/fontconfig/fontconfig-2.7.3-r1.smage2
Parent Directory | Revision Log
Revision 3306 -
(hide annotations)
(download)
Mon Oct 19 21:21:42 2009 UTC (14 years, 11 months ago) by niro
File size: 2439 byte(s)
Mon Oct 19 21:21:42 2009 UTC (14 years, 11 months ago) by niro
File size: 2439 byte(s)
auto added: ver bump to 2.7.3-r1
1 | niro | 3305 | # $Id$ |
2 | |||
3 | PNAME="fontconfig" | ||
4 | PVER="2.7.3" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="media-libs" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="fontconfig is a library for configuring and customizing font access." | ||
11 | HOMEPAGE="http://fontconfig.org/" | ||
12 | |||
13 | DEPEND=">= media-libs/freetype-2.3.9 | ||
14 | >= dev-libs/expat-2" | ||
15 | |||
16 | SDEPEND=">= sys-apps/sed-4" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | sminclude multilib mtools | ||
22 | |||
23 | SRC_URI=( | ||
24 | http://fontconfig.org/release/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | mirror://${PNAME}/fontconfig-2.2-local_fontdir-r2.patch | ||
27 | mirror://${PNAME}/fontconfig-2.2-local_fontdir64-r2.patch | ||
28 | "mirror://${PNAME}/man-2.3.1/fc-cache.man man-2.3.1" | ||
29 | "mirror://${PNAME}/man-2.3.1/fc-list.man man-2.3.1" | ||
30 | ) | ||
31 | |||
32 | UP2DATE="updatecmd http://fontconfig.org/release/ | grep ${PNAME}- | lasttarball gz" | ||
33 | |||
34 | src_prepare() | ||
35 | { | ||
36 | munpack ${SRCFILE} || die | ||
37 | |||
38 | # adds local fontpathes to local.conf | ||
39 | if [[ $(mlibdir) != lib ]] | ||
40 | then | ||
41 | mpatch fontconfig-2.2-local_fontdir64-r2.patch || die | ||
42 | else | ||
43 | mpatch fontconfig-2.2-local_fontdir-r2.patch || die | ||
44 | fi | ||
45 | |||
46 | # the date can be troublesome | ||
47 | all-abis 'sed -i "s:\`date\`::" configure' || die | ||
48 | } | ||
49 | |||
50 | src_compile() | ||
51 | { | ||
52 | |||
53 | mconfigure \ | ||
54 | --disable-docs \ | ||
55 | --with-docdir=/usr/share/doc/${PNAME}-${PVER} \ | ||
56 | --x-includes=/usr/include \ | ||
57 | --x-libraries=/usr/$(mlibdir) \ | ||
58 | --with-default-fonts=/usr/$(mlibdir)/X11/fonts/Type1 \ | ||
59 | || die | ||
60 | |||
61 | # does not like optimations | ||
62 | mmake -j1 || die | ||
63 | |||
64 | # remove Luxi TTF fonts from the list, the Type1 are much better | ||
65 | niro | 3306 | # all-abis 'sed -i "s:<dir>/usr/$(mlibdir)/X11/fonts/TTF</dir>::" fonts.conf' || die |
66 | niro | 3305 | } |
67 | |||
68 | src_install() | ||
69 | { | ||
70 | # needed directories | ||
71 | minstalldir /usr/share/man/man1 || die | ||
72 | |||
73 | minstall_destdir || die | ||
74 | |||
75 | # install font.conf | ||
76 | minstallfile fonts.conf /etc/fonts || die | ||
77 | minstallfile fonts.conf /etc/fonts/fonts.conf.new || die | ||
78 | |||
79 | # install man-pages | ||
80 | # we're using prebuilded man pages to prevent docbook dependencies | ||
81 | minstallfile -s man-2.3.1/fc-cache.man /usr/share/man/man1/fc-cache.1 || die | ||
82 | minstallfile -s man-2.3.1/fc-list.man /usr/share/man/man1/fc-list.1 || die | ||
83 | } | ||
84 | |||
85 | preinstall() | ||
86 | { | ||
87 | # delete this file if it exists | ||
88 | [ -f ${MROOT}/etc/fonts/fonts.conf.new ] && \ | ||
89 | rm -f ${MROOT}/etc/fonts/fonts.conf.new | ||
90 | } | ||
91 | |||
92 | postinstall() | ||
93 | { | ||
94 | echo "Creating new font cache..." | ||
95 | |||
96 | # force update; config_protect will prevent this | ||
97 | mv -f ${MROOT}/etc/fonts/fonts.conf.new ${MROOT}/etc/fonts/fonts.conf | ||
98 | rm -f ${MROOT}/etc/fonts/._cfg????_fonts.conf | ||
99 | HOME="${MROOT}/root" ${MROOT}/usr/bin/fc-cache -f | ||
100 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |