Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/fontconfig: fontconfig-2.10.2-r1.ebuild ChangeLog
Date: Mon, 25 Feb 2013 22:38:19
Message-Id: 20130225223816.6D9F72171D@flycatcher.gentoo.org
1 mgorny 13/02/25 22:38:16
2
3 Modified: ChangeLog
4 Added: fontconfig-2.10.2-r1.ebuild
5 Log:
6 Convert to autotools-multilib. Acked by lu_zero, bug #455074.
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
9
10 Revision Changes Path
11 1.165 media-libs/fontconfig/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.165&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.165&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?r1=1.164&r2=1.165
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v
20 retrieving revision 1.164
21 retrieving revision 1.165
22 diff -u -r1.164 -r1.165
23 --- ChangeLog 21 Feb 2013 17:07:25 -0000 1.164
24 +++ ChangeLog 25 Feb 2013 22:38:16 -0000 1.165
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.164 2013/02/21 17:07:25 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v 1.165 2013/02/25 22:38:16 mgorny Exp $
30 +
31 +*fontconfig-2.10.2-r1 (25 Feb 2013)
32 +
33 + 25 Feb 2013; Michał Górny <mgorny@g.o> +fontconfig-2.10.2-r1.ebuild:
34 + Convert to autotools-multilib. Acked by lu_zero, bug #455074.
35
36 21 Feb 2013; Zac Medico <zmedico@g.o> fontconfig-2.9.0.ebuild:
37 Fix for prefix and add ~arm-linux + ~x86-linux keywords.
38
39
40
41 1.1 media-libs/fontconfig/fontconfig-2.10.2-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/fontconfig-2.10.2-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/fontconfig-2.10.2-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: fontconfig-2.10.2-r1.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.2-r1.ebuild,v 1.1 2013/02/25 22:38:16 mgorny 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"
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 ${ROOT}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=/var
103 --with-default-fonts=/usr/share/fonts
104 --with-add-fonts=/usr/local/share/fonts
105 --with-templatedir=/etc/fonts/conf.avail
106 --with-freetype-config="$(tc-getPKG_CONFIG) freetype2"
107 )
108
109 autotools-multilib_src_configure
110 }
111
112 src_install() {
113 autotools-multilib_src_install
114
115 # XXX: avoid calling this multiple times, bug #459210
116 install_others() {
117 # stuff installed from build-dir
118 autotools-utils_src_compile \
119 DESTDIR="${D}" -C doc install-man
120
121 insinto /etc/fonts
122 doins "${BUILD_DIR}"/fonts.conf
123 }
124 multilib_foreach_abi install_others
125
126 #fc-lang directory contains language coverage datafiles
127 #which are needed to test the coverage of fonts.
128 insinto /usr/share/fc-lang
129 doins fc-lang/*.orth
130
131 dodoc doc/fontconfig-user.{txt,pdf}
132
133 if [[ -e ${D}usr/share/doc/fontconfig/ ]]; then
134 mv "${D}"usr/share/doc/fontconfig/* "${D}"/usr/share/doc/${P}
135 rm -rf "${D}"usr/share/doc/fontconfig
136 fi
137
138 # Changes should be made to /etc/fonts/local.conf, and as we had
139 # too much problems with broken fonts.conf we force update it ...
140 echo 'CONFIG_PROTECT_MASK="/etc/fonts/fonts.conf"' > "${T}"/37fontconfig
141 doenvd "${T}"/37fontconfig
142
143 # As of fontconfig 2.7, everything sticks their noses in here.
144 dodir /etc/sandbox.d
145 echo 'SANDBOX_PREDICT="/var/cache/fontconfig"' > "${D}"/etc/sandbox.d/37fontconfig
146
147 readme.gentoo_create_doc
148 }
149
150 pkg_preinst() {
151 # Bug #193476
152 # /etc/fonts/conf.d/ contains symlinks to ../conf.avail/ to include various
153 # config files. If we install as-is, we'll blow away user settings.
154 ebegin "Syncing fontconfig configuration to system"
155 if [[ -e ${ROOT}/etc/fonts/conf.d ]]; then
156 for file in "${ROOT}"/etc/fonts/conf.avail/*; do
157 f=${file##*/}
158 if [[ -L ${ROOT}/etc/fonts/conf.d/${f} ]]; then
159 [[ -f ${D}etc/fonts/conf.avail/${f} ]] \
160 && ln -sf ../conf.avail/"${f}" "${D}"etc/fonts/conf.d/ &>/dev/null
161 else
162 [[ -f ${D}etc/fonts/conf.avail/${f} ]] \
163 && rm "${D}"etc/fonts/conf.d/"${f}" &>/dev/null
164 fi
165 done
166 fi
167 eend $?
168 }
169
170 pkg_postinst() {
171 einfo "Cleaning broken symlinks in "${ROOT}"etc/fonts/conf.d/"
172 find -L "${ROOT}"etc/fonts/conf.d/ -type l -delete
173
174 readme.gentoo_print_elog
175
176 if [[ ${ROOT} = / ]]; then
177 ebegin "Creating global font cache"
178 /usr/bin/fc-cache -srf
179 eend $?
180 fi
181 }