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