Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/fontconfig: fontconfig-2.8.0-r1.ebuild ChangeLog
Date: Sun, 11 Apr 2010 02:12:52
Message-Id: 20100411021248.82F6B2C04A@corvid.gentoo.org
1 dirtyepic 10/04/11 02:12:48
2
3 Modified: ChangeLog
4 Added: fontconfig-2.8.0-r1.ebuild
5 Log:
6 - Add alias for ZapfDingbats to fix display of some pdfs in poppler-based
7 readers. (bug #303591 by Rafał Mużyło, thanks to Paul Bredbury)
8 - Add virtual/ttf-fonts to PDEPEND. (bug #260019 by Doruk Fisek)
9 (Portage version: 2.2_rc67/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.147 media-libs/fontconfig/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.147&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.147&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/fontconfig/ChangeLog?r1=1.146&r2=1.147
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v
21 retrieving revision 1.146
22 retrieving revision 1.147
23 diff -u -r1.146 -r1.147
24 --- ChangeLog 11 Apr 2010 01:00:59 -0000 1.146
25 +++ ChangeLog 11 Apr 2010 02:12:48 -0000 1.147
26 @@ -1,6 +1,14 @@
27 # ChangeLog for media-libs/fontconfig
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v 1.146 2010/04/11 01:00:59 dirtyepic Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v 1.147 2010/04/11 02:12:48 dirtyepic Exp $
31 +
32 +*fontconfig-2.8.0-r1 (11 Apr 2010)
33 +
34 + 11 Apr 2010; Ryan Hill <dirtyepic@g.o> +fontconfig-2.8.0-r1.ebuild,
35 + +files/fontconfig-2.8.0-urw-aliases.patch:
36 + - Add alias for ZapfDingbats to fix display of some pdfs in poppler-based
37 + readers. (bug #303591 by Rafał Mużyło, thanks to Paul Bredbury)
38 + - Add virtual/ttf-fonts to PDEPEND. (bug #260019 by Doruk Fisek)
39
40 11 Apr 2010; Ryan Hill <dirtyepic@g.o> -fontconfig-2.5.0-r1.ebuild,
41 -files/fontconfig-2.5.0-libtool-2.2.patch, -fontconfig-2.7.1-r1.ebuild,
42
43
44
45 1.1 media-libs/fontconfig/fontconfig-2.8.0-r1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/fontconfig/fontconfig-2.8.0-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/fontconfig/fontconfig-2.8.0-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: fontconfig-2.8.0-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/fontconfig-2.8.0-r1.ebuild,v 1.1 2010/04/11 02:12:48 dirtyepic Exp $
55
56 EAPI="2"
57
58 inherit autotools eutils libtool toolchain-funcs flag-o-matic
59
60 DESCRIPTION="A library for configuring and customizing font access"
61 HOMEPAGE="http://fontconfig.org/"
62 SRC_URI="http://fontconfig.org/release/${P}.tar.gz"
63
64 LICENSE="MIT"
65 SLOT="1.0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
67 IUSE="doc"
68
69 # Purposefully dropped the xml USE flag and libxml2 support. Expat is the
70 # default and used by every distro. See bug #283191.
71
72 RDEPEND=">=media-libs/freetype-2.2.1
73 >=dev-libs/expat-1.95.3"
74 DEPEND="${RDEPEND}
75 dev-util/pkgconfig
76 doc? (
77 app-text/docbook-sgml-utils[jadetex]
78 =app-text/docbook-sgml-dtd-3.1*
79 )"
80 PDEPEND="app-admin/eselect-fontconfig
81 virtual/ttf-fonts"
82
83 src_prepare() {
84 epatch "${FILESDIR}"/${PN}-2.7.1-latin-reorder.patch # 130466
85 epatch "${FILESDIR}"/${PN}-2.3.2-docbook.patch # 310157
86 epatch "${FILESDIR}"/${PN}-2.8.0-urw-aliases.patch # 303591
87
88 eautoreconf
89
90 # Needed to get a sane .so versioning on fbsd, please dont drop
91 # If you have to run eautoreconf, you can also leave the elibtoolize call as
92 # it will be a no-op.
93 elibtoolize
94 }
95
96 src_configure() {
97 local myconf
98 if tc-is-cross-compiler; then
99 myconf="--with-arch=${ARCH}"
100 replace-flags -mtune=* -DMTUNE_CENSORED
101 replace-flags -march=* -DMARCH_CENSORED
102 fi
103 econf \
104 $(use_enable doc docs) \
105 $(use_enable doc docbook) \
106 --localstatedir=/var \
107 --with-default-fonts=/usr/share/fonts \
108 --with-add-fonts=/usr/local/share/fonts \
109 ${myconf} || die
110 }
111
112 src_install() {
113 emake DESTDIR="${D}" install || die "emake install"
114 emake DESTDIR="${D}" -C doc install-man || die "emake install-man"
115
116 #fc-lang directory contains language coverage datafiles
117 #which are needed to test the coverage of fonts.
118 insinto /usr/share/fc-lang
119 doins fc-lang/*.orth
120
121 insinto /etc/fonts
122 doins "${S}"/fonts.conf
123
124 dodoc doc/fontconfig-user.{txt,pdf}
125 dodoc AUTHORS ChangeLog README
126
127 if [[ -e ${D}usr/share/doc/fontconfig/ ]]; then
128 mv "${D}"usr/share/doc/fontconfig/* "${D}"/usr/share/doc/${P}
129 rm -rf "${D}"usr/share/doc/fontconfig
130 fi
131
132 # Changes should be made to /etc/fonts/local.conf, and as we had
133 # too much problems with broken fonts.conf, we force update it ...
134 # <azarah@g.o> (11 Dec 2002)
135 echo 'CONFIG_PROTECT_MASK="/etc/fonts/fonts.conf"' > "${T}"/37fontconfig
136 doenvd "${T}"/37fontconfig
137
138 # As of fontconfig 2.7, everything sticks their noses in here.
139 dodir /etc/sandbox.d
140 echo 'SANDBOX_PREDICT="/var/cache/fontconfig"' > "${D}"/etc/sandbox.d/37fontconfig
141 }
142
143 pkg_preinst() {
144 # Bug #193476
145 # /etc/fonts/conf.d/ contains symlinks to ../conf.avail/ to include various
146 # config files. If we install as-is, we'll blow away user settings.
147 ebegin "Syncing fontconfig configuration to system"
148 if [[ -e ${ROOT}/etc/fonts/conf.d ]]; then
149 for file in "${ROOT}"/etc/fonts/conf.avail/*; do
150 f=${file##*/}
151 if [[ -L ${ROOT}/etc/fonts/conf.d/${f} ]]; then
152 [[ -f ${D}etc/fonts/conf.avail/${f} ]] \
153 && ln -sf ../conf.avail/"${f}" "${D}"etc/fonts/conf.d/ &>/dev/null
154 else
155 [[ -f ${D}etc/fonts/conf.avail/${f} ]] \
156 && rm "${D}"etc/fonts/conf.d/"${f}" &>/dev/null
157 fi
158 done
159 fi
160 eend $?
161 }
162
163 pkg_postinst() {
164 einfo "Cleaning broken symlinks in "${ROOT}"etc/fonts/conf.d/"
165 find -L "${ROOT}"etc/fonts/conf.d/ -type l -delete
166
167 echo
168 ewarn "Please make fontconfig configuration changes using \`eselect fontconfig\`"
169 ewarn "Any changes made to /etc/fonts/fonts.conf will be overwritten."
170 ewarn
171 ewarn "If you need to reset your configuration to upstream defaults, delete"
172 ewarn "the directory ${ROOT}etc/fonts/conf.d/ and re-emerge fontconfig."
173 echo
174
175 if [[ ${ROOT} = / ]]; then
176 ebegin "Creating global font cache"
177 /usr/bin/fc-cache -srf
178 eend $?
179 fi
180 }