Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/fontconfig: fontconfig-2.10.91.ebuild ChangeLog
Date: Thu, 28 Mar 2013 17:42:10
Message-Id: 20130328174205.EA6BC2171D@flycatcher.gentoo.org
1 pacho 13/03/28 17:42:05
2
3 Modified: ChangeLog
4 Added: fontconfig-2.10.91.ebuild
5 Log:
6 Version bump for Gnome 3.8
7
8 (Portage version: 2.1.11.58/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.169 media-libs/fontconfig/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.169&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.169&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?r1=1.168&r2=1.169
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v
20 retrieving revision 1.168
21 retrieving revision 1.169
22 diff -u -r1.168 -r1.169
23 --- ChangeLog 9 Mar 2013 07:26:03 -0000 1.168
24 +++ ChangeLog 28 Mar 2013 17:42:05 -0000 1.169
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/fontconfig
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v 1.168 2013/03/09 07:26:03 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v 1.169 2013/03/28 17:42:05 pacho Exp $
30 +
31 +*fontconfig-2.10.91 (28 Mar 2013)
32 +
33 + 28 Mar 2013; Pacho Ramos <pacho@g.o> +fontconfig-2.10.91.ebuild:
34 + Version bump for Gnome 3.8
35
36 09 Mar 2013; Zac Medico <zmedico@g.o> fontconfig-2.10.2.ebuild:
37 Fix for prefix and add ~arm-linux + ~x86-linux keywords.
38
39
40
41 1.1 media-libs/fontconfig/fontconfig-2.10.91.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/fontconfig-2.10.91.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/fontconfig-2.10.91.ebuild?rev=1.1&content-type=text/plain
45
46 Index: fontconfig-2.10.91.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/fontconfig-2.10.91.ebuild,v 1.1 2013/03/28 17:42:05 pacho Exp $
51
52 EAPI=5
53
54 AUTOTOOLS_AUTORECONF=yes
55 inherit autotools-multilib readme.gentoo
56
57 DESCRIPTION="A library for configuring and customizing font access"
58 HOMEPAGE="http://fontconfig.org/"
59 SRC_URI="http://fontconfig.org/release/${P}.tar.bz2"
60
61 LICENSE="MIT"
62 SLOT="1.0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
64 IUSE="doc static-libs"
65
66 # Purposefully dropped the xml USE flag and libxml2 support. Expat is the
67 # default and used by every distro. See bug #283191.
68
69 # Note: replace emul-linux dep when expat becomes multilib-aware
70 # (and add [${MULTILIB_USEDEP}] on it then!)
71 RDEPEND=">=media-libs/freetype-2.2.1[${MULTILIB_USEDEP}]
72 >=dev-libs/expat-1.95.3
73 abi_x86_32? (
74 amd64? ( app-emulation/emul-linux-x86-baselibs[development] )
75 !<=app-emulation/emul-linux-x86-xlibs-20130224 )"
76 DEPEND="${RDEPEND}
77 virtual/pkgconfig
78 doc? (
79 app-text/docbook-sgml-utils[jadetex]
80 =app-text/docbook-sgml-dtd-3.1*
81 )"
82 PDEPEND="app-admin/eselect-fontconfig
83 virtual/ttf-fonts"
84
85 PATCHES=(
86 "${FILESDIR}"/${PN}-2.7.1-latin-reorder.patch # 130466
87 "${FILESDIR}"/${PN}-2.10.2-docbook.patch # 310157
88 )
89
90 pkg_setup() {
91 DOC_CONTENTS="Please make fontconfig configuration changes using
92 \`eselect fontconfig\`. Any changes made to /etc/fonts/fonts.conf will be
93 overwritten. If you need to reset your configuration to upstream defaults,
94 delete the directory ${EROOT}etc/fonts/conf.d/ and re-emerge fontconfig."
95 }
96
97 src_configure() {
98 local myeconfargs=(
99 $(use_enable doc docbook)
100 # always enable docs to install manpages
101 --enable-docs
102 --localstatedir="${EPREFIX}"/var
103 --with-default-fonts="${EPREFIX}"/usr/share/fonts
104 --with-add-fonts="${EPREFIX}"/usr/local/share/fonts
105 --with-templatedir="${EPREFIX}"/etc/fonts/conf.avail
106 )
107
108 autotools-multilib_src_configure
109 }
110
111 src_install() {
112 autotools-multilib_src_install
113
114 # XXX: avoid calling this multiple times, bug #459210
115 install_others() {
116 # stuff installed from build-dir
117 autotools-utils_src_compile \
118 DESTDIR="${D}" -C doc install-man
119
120 insinto /etc/fonts
121 doins "${BUILD_DIR}"/fonts.conf
122 }
123 multilib_foreach_abi install_others
124
125 #fc-lang directory contains language coverage datafiles
126 #which are needed to test the coverage of fonts.
127 insinto /usr/share/fc-lang
128 doins fc-lang/*.orth
129
130 dodoc doc/fontconfig-user.{txt,pdf}
131
132 if [[ -e ${ED}usr/share/doc/fontconfig/ ]]; then
133 mv "${ED}"usr/share/doc/fontconfig/* "${ED}"/usr/share/doc/${P}
134 rm -rf "${ED}"usr/share/doc/fontconfig
135 fi
136
137 # Changes should be made to /etc/fonts/local.conf, and as we had
138 # too much problems with broken fonts.conf we force update it ...
139 echo 'CONFIG_PROTECT_MASK="/etc/fonts/fonts.conf"' > "${T}"/37fontconfig
140 doenvd "${T}"/37fontconfig
141
142 # As of fontconfig 2.7, everything sticks their noses in here.
143 dodir /etc/sandbox.d
144 echo 'SANDBOX_PREDICT="/var/cache/fontconfig"' > "${ED}"/etc/sandbox.d/37fontconfig
145
146 readme.gentoo_create_doc
147 }
148
149 pkg_preinst() {
150 # Bug #193476
151 # /etc/fonts/conf.d/ contains symlinks to ../conf.avail/ to include various
152 # config files. If we install as-is, we'll blow away user settings.
153 ebegin "Syncing fontconfig configuration to system"
154 if [[ -e ${EROOT}/etc/fonts/conf.d ]]; then
155 for file in "${EROOT}"/etc/fonts/conf.avail/*; do
156 f=${file##*/}
157 if [[ -L ${EROOT}/etc/fonts/conf.d/${f} ]]; then
158 [[ -f ${ED}etc/fonts/conf.avail/${f} ]] \
159 && ln -sf ../conf.avail/"${f}" "${ED}"etc/fonts/conf.d/ &>/dev/null
160 else
161 [[ -f ${ED}etc/fonts/conf.avail/${f} ]] \
162 && rm "${ED}"etc/fonts/conf.d/"${f}" &>/dev/null
163 fi
164 done
165 fi
166 eend $?
167 }
168
169 pkg_postinst() {
170 einfo "Cleaning broken symlinks in "${EROOT}"etc/fonts/conf.d/"
171 find -L "${EROOT}"etc/fonts/conf.d/ -type l -delete
172
173 readme.gentoo_print_elog
174
175 if [[ ${ROOT} = / ]]; then
176 ebegin "Creating global font cache"
177 "${EPREFIX}"/usr/bin/fc-cache -srf
178 eend $?
179 fi
180 }