Magellan Linux

Contents of /smage/trunk/core/fontconfig/fontconfig-2.11.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5250 - (show annotations) (download)
Tue Dec 17 11:35:52 2013 UTC (10 years, 5 months ago) by niro
File size: 2267 byte(s)
auto added: ver bump to 2.11.0-r1
1 # $Id$
2
3 PNAME="fontconfig"
4 PVER="2.11.0"
5 PBUILD="r1"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="fontconfig is a library for configuring and customizing font access."
10 HOMEPAGE="http://fontconfig.org/"
11
12 DEPEND=">= media-libs/freetype-2.5
13 >= dev-libs/expat-2.1"
14
15 SDEPEND=">= virtual/sed"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 ALX_PKG_KEEP="etc usr/bin/fc-cache usr/$(mlibdir)/*.so.*"
21 sminclude multilib mtools alx-split
22
23 SRC_URI=(
24 http://fontconfig.org/release/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 "mirror://${PNAME}/man-2.3.1/fc-cache.man man-2.3.1"
27 "mirror://${PNAME}/man-2.3.1/fc-list.man man-2.3.1"
28 )
29
30 UP2DATE="updatecmd http://fontconfig.org/release/ | grep ${PNAME}- | lasttarball gz"
31
32 src_compile()
33 {
34
35 mconfigure \
36 --disable-docs \
37 --with-docdir=/usr/share/doc/${PNAME}-${PVER} \
38 --x-includes=/usr/include \
39 --x-libraries=/usr/$(mlibdir) \
40 --with-default-fonts=/usr/share/fonts \
41 --with-add-fonts=/usr/local/share/fonts \
42 || die
43
44 # does not like optimations
45 mmake -j1 || die
46
47 # remove Luxi TTF fonts from the list, the Type1 are much better
48 # all-abis 'sed -i "s:<dir>/usr/$(mlibdir)/X11/fonts/TTF</dir>::" fonts.conf' || die
49 }
50
51 alx_generic_src_install()
52 {
53 minstall_destdir || die
54
55 # install font.conf
56 minstallfile fonts.conf /etc/fonts || die
57 minstallfile fonts.conf /etc/fonts/fonts.conf.new || die
58
59 # fc-lang directory contains language coverage datafiles
60 # which are needed to test the coverage of fonts.
61 minstalldir /usr/share/fc-lang || die
62 minstallfile fc-lang/\*.orth /usr/share/fc-lang || die
63
64 # install man-pages
65 # we're using prebuilded man pages to prevent docbook dependencies
66 minstalldir /usr/share/man/man1 || die
67 minstallfile -s man-2.3.1/fc-cache.man /usr/share/man/man1/fc-cache.1 || die
68 minstallfile -s man-2.3.1/fc-list.man /usr/share/man/man1/fc-list.1 || die
69 }
70
71 preinstall()
72 {
73 # delete this file if it exists
74 [ -f ${MROOT}/etc/fonts/fonts.conf.new ] && \
75 rm -f ${MROOT}/etc/fonts/fonts.conf.new
76 }
77
78 postinstall()
79 {
80 echo "Creating new font cache..."
81
82 # force update; config_protect will prevent this
83 mv -f ${MROOT}/etc/fonts/fonts.conf.new ${MROOT}/etc/fonts/fonts.conf
84 rm -f ${MROOT}/etc/fonts/._cfg????_fonts.conf
85 HOME="${MROOT}/root" ${MROOT}/usr/bin/fc-cache -sr
86 }