1 |
vapier 14/03/29 20:42:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: fontconfig-2.11.1.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key D2E96200) |
9 |
|
10 |
Revision Changes Path |
11 |
1.191 media-libs/fontconfig/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.191&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?rev=1.191&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/ChangeLog?r1=1.190&r2=1.191 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v |
20 |
retrieving revision 1.190 |
21 |
retrieving revision 1.191 |
22 |
diff -u -r1.190 -r1.191 |
23 |
--- ChangeLog 16 Jan 2014 14:43:34 -0000 1.190 |
24 |
+++ ChangeLog 29 Mar 2014 20:42:28 -0000 1.191 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-libs/fontconfig |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v 1.190 2014/01/16 14:43:34 polynomial-c Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/fontconfig/ChangeLog,v 1.191 2014/03/29 20:42:28 vapier Exp $ |
30 |
+ |
31 |
+*fontconfig-2.11.1 (29 Mar 2014) |
32 |
+ |
33 |
+ 29 Mar 2014; Mike Frysinger <vapier@g.o> +fontconfig-2.11.1.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*fontconfig-2.11.0-r1 (16 Jan 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/fontconfig/fontconfig-2.11.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/fontconfig-2.11.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/fontconfig-2.11.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: fontconfig-2.11.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 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.11.1.ebuild,v 1.1 2014/03/29 20:42:28 vapier Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
AUTOTOOLS_AUTORECONF=yes |
54 |
|
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 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
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 |
RDEPEND=">=dev-libs/expat-1.95.3[${MULTILIB_USEDEP}] |
70 |
>=media-libs/freetype-2.2.1[${MULTILIB_USEDEP}] |
71 |
abi_x86_32? ( !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)] )" |
72 |
DEPEND="${RDEPEND} |
73 |
virtual/pkgconfig |
74 |
doc? ( |
75 |
=app-text/docbook-sgml-dtd-3.1* |
76 |
app-text/docbook-sgml-utils[jadetex] |
77 |
)" |
78 |
PDEPEND="!x86-winnt? ( app-admin/eselect-fontconfig ) |
79 |
virtual/ttf-fonts" |
80 |
|
81 |
PATCHES=( |
82 |
"${FILESDIR}"/${PN}-2.7.1-latin-reorder.patch # 130466 |
83 |
"${FILESDIR}"/${PN}-2.10.2-docbook.patch # 310157 |
84 |
) |
85 |
|
86 |
pkg_setup() { |
87 |
DOC_CONTENTS="Please make fontconfig configuration changes using |
88 |
\`eselect fontconfig\`. Any changes made to /etc/fonts/fonts.conf will be |
89 |
overwritten. If you need to reset your configuration to upstream defaults, |
90 |
delete the directory ${EROOT}etc/fonts/conf.d/ and re-emerge fontconfig." |
91 |
} |
92 |
|
93 |
src_configure() { |
94 |
local addfonts |
95 |
# harvest some font locations, such that users can benefit from the |
96 |
# host OS's installed fonts |
97 |
case ${CHOST} in |
98 |
*-darwin*) |
99 |
addfonts=",/Library/Fonts,/System/Library/Fonts" |
100 |
;; |
101 |
*-solaris*) |
102 |
[[ -d /usr/X/lib/X11/fonts/TrueType ]] && \ |
103 |
addfonts=",/usr/X/lib/X11/fonts/TrueType" |
104 |
[[ -d /usr/X/lib/X11/fonts/Type1 ]] && \ |
105 |
addfonts="${addfonts},/usr/X/lib/X11/fonts/Type1" |
106 |
;; |
107 |
*-linux-gnu) |
108 |
use prefix && [[ -d /usr/share/fonts ]] && \ |
109 |
addfonts=",/usr/share/fonts" |
110 |
;; |
111 |
esac |
112 |
|
113 |
local myeconfargs=( |
114 |
$(use_enable doc docbook) |
115 |
# always enable docs to install manpages |
116 |
--enable-docs |
117 |
--localstatedir="${EPREFIX}"/var |
118 |
--with-default-fonts="${EPREFIX}"/usr/share/fonts |
119 |
--with-add-fonts="${EPREFIX}/usr/local/share/fonts${addfonts}" \ |
120 |
--with-templatedir="${EPREFIX}"/etc/fonts/conf.avail |
121 |
) |
122 |
|
123 |
autotools-multilib_src_configure |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
autotools-multilib_src_install |
128 |
|
129 |
# XXX: avoid calling this multiple times, bug #459210 |
130 |
install_others() { |
131 |
# stuff installed from build-dir |
132 |
autotools-utils_src_compile \ |
133 |
DESTDIR="${D}" -C doc install-man |
134 |
|
135 |
insinto /etc/fonts |
136 |
doins "${BUILD_DIR}"/fonts.conf |
137 |
} |
138 |
multilib_foreach_abi install_others |
139 |
|
140 |
#fc-lang directory contains language coverage datafiles |
141 |
#which are needed to test the coverage of fonts. |
142 |
insinto /usr/share/fc-lang |
143 |
doins fc-lang/*.orth |
144 |
|
145 |
dodoc doc/fontconfig-user.{txt,pdf} |
146 |
|
147 |
if [[ -e ${ED}usr/share/doc/fontconfig/ ]]; then |
148 |
mv "${ED}"usr/share/doc/fontconfig/* "${ED}"/usr/share/doc/${P} |
149 |
rm -rf "${ED}"usr/share/doc/fontconfig |
150 |
fi |
151 |
|
152 |
# Changes should be made to /etc/fonts/local.conf, and as we had |
153 |
# too much problems with broken fonts.conf we force update it ... |
154 |
echo 'CONFIG_PROTECT_MASK="/etc/fonts/fonts.conf"' > "${T}"/37fontconfig |
155 |
doenvd "${T}"/37fontconfig |
156 |
|
157 |
# As of fontconfig 2.7, everything sticks their noses in here. |
158 |
dodir /etc/sandbox.d |
159 |
echo 'SANDBOX_PREDICT="/var/cache/fontconfig"' > "${ED}"/etc/sandbox.d/37fontconfig |
160 |
|
161 |
readme.gentoo_create_doc |
162 |
} |
163 |
|
164 |
pkg_preinst() { |
165 |
# Bug #193476 |
166 |
# /etc/fonts/conf.d/ contains symlinks to ../conf.avail/ to include various |
167 |
# config files. If we install as-is, we'll blow away user settings. |
168 |
ebegin "Syncing fontconfig configuration to system" |
169 |
if [[ -e ${EROOT}/etc/fonts/conf.d ]]; then |
170 |
for file in "${EROOT}"/etc/fonts/conf.avail/*; do |
171 |
f=${file##*/} |
172 |
if [[ -L ${EROOT}/etc/fonts/conf.d/${f} ]]; then |
173 |
[[ -f ${ED}etc/fonts/conf.avail/${f} ]] \ |
174 |
&& ln -sf ../conf.avail/"${f}" "${ED}"etc/fonts/conf.d/ &>/dev/null |
175 |
else |
176 |
[[ -f ${ED}etc/fonts/conf.avail/${f} ]] \ |
177 |
&& rm "${ED}"etc/fonts/conf.d/"${f}" &>/dev/null |
178 |
fi |
179 |
done |
180 |
fi |
181 |
eend $? |
182 |
} |
183 |
|
184 |
pkg_postinst() { |
185 |
einfo "Cleaning broken symlinks in "${EROOT}"etc/fonts/conf.d/" |
186 |
find -L "${EROOT}"etc/fonts/conf.d/ -type l -delete |
187 |
|
188 |
readme.gentoo_print_elog |
189 |
|
190 |
if [[ ${ROOT} = / ]]; then |
191 |
ebegin "Creating global font cache" |
192 |
"${EPREFIX}"/usr/bin/fc-cache -srf |
193 |
eend $? |
194 |
fi |
195 |
} |