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