Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/fontconfig/fontconfig-2.12.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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