Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: x11-libs/pango/, x11-libs/pango/files/
Date: Fri, 11 Aug 2017 07:19:26
Message-Id: 1502435639.ebc513a00651a2b9ef0ef338f61f749eef3130ed.eva@gentoo
1 commit: ebc513a00651a2b9ef0ef338f61f749eef3130ed
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 11 07:13:59 2017 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 11 07:13:59 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=ebc513a0
7
8 x11-libs/pango: sync with gentoo repository
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11 Manifest-Sign-Key: 0x5A56C8CD0C13248A
12
13 x11-libs/pango/files/pango-1.32.1-lib64.patch | 44 --------------
14 x11-libs/pango/metadata.xml | 3 +
15 x11-libs/pango/pango-1.37.5.ebuild | 66 --------------------
16 x11-libs/pango/pango-9999.ebuild | 86 +++++++++------------------
17 4 files changed, 30 insertions(+), 169 deletions(-)
18
19 diff --git a/x11-libs/pango/files/pango-1.32.1-lib64.patch b/x11-libs/pango/files/pango-1.32.1-lib64.patch
20 deleted file mode 100644
21 index 0820c78f..00000000
22 --- a/x11-libs/pango/files/pango-1.32.1-lib64.patch
23 +++ /dev/null
24 @@ -1,44 +0,0 @@
25 -From c41144ce0d72cb19d347a46ef9386f257f14fb58 Mon Sep 17 00:00:00 2001
26 -From: Gilles Dartiguelongue <eva@g.o>
27 -Date: Sun, 28 Oct 2012 23:19:39 +0100
28 -Subject: [PATCH] Add multilib support
29 -
30 -pango.modules list modules specific to a host architecture.
31 -Add host triplet in path so that machine able to run multiple
32 -triplet have a proper file per pango library.
33 ----
34 - pango/Makefile.am | 1 +
35 - pango/pango-utils.c | 4 ++--
36 - 2 files changed, 3 insertions(+), 2 deletions(-)
37 -
38 -diff --git a/pango/Makefile.am b/pango/Makefile.am
39 -index ab092c9..558108b 100644
40 ---- a/pango/Makefile.am
41 -+++ b/pango/Makefile.am
42 -@@ -17,6 +17,7 @@ INCLUDES = \
43 - -DPANGO_ENABLE_BACKEND \
44 - -DPANGO_ENABLE_ENGINE \
45 - -DSYSCONFDIR=\"$(sysconfdir)\" \
46 -+ -DHOST=\"$(host_triplet)\" \
47 - -DLIBDIR=\"$(libdir)\" \
48 - -I$(top_srcdir) \
49 - -I$(top_builddir) \
50 -diff --git a/pango/pango-utils.c b/pango/pango-utils.c
51 -index 18ffa26..3b88f15 100644
52 ---- a/pango/pango-utils.c
53 -+++ b/pango/pango-utils.c
54 -@@ -738,9 +738,9 @@ pango_get_sysconf_subdirectory (void)
55 - #else
56 - const char *sysconfdir = g_getenv ("PANGO_SYSCONFDIR");
57 - if (sysconfdir != NULL)
58 -- tmp_result = g_build_filename (sysconfdir, "pango", NULL);
59 -+ tmp_result = g_build_filename (sysconfdir, "pango", HOST, NULL);
60 - else
61 -- tmp_result = SYSCONFDIR "/pango";
62 -+ tmp_result = SYSCONFDIR "/pango/" HOST;
63 - #endif
64 - g_once_init_leave((gsize*)&result, (gsize)tmp_result);
65 - }
66 ---
67 -1.7.12.4
68 -
69
70 diff --git a/x11-libs/pango/metadata.xml b/x11-libs/pango/metadata.xml
71 index c183bcf3..ce9f853c 100644
72 --- a/x11-libs/pango/metadata.xml
73 +++ b/x11-libs/pango/metadata.xml
74 @@ -5,6 +5,9 @@
75 <email>gnome@g.o</email>
76 <name>Gentoo GNOME Desktop</name>
77 </maintainer>
78 +<use>
79 + <flag name="X">Build and install the legacy pangoxft library</flag>
80 +</use>
81 <upstream>
82 <remote-id type="cpe">cpe:/a:pango:pango</remote-id>
83 </upstream>
84
85 diff --git a/x11-libs/pango/pango-1.37.5.ebuild b/x11-libs/pango/pango-1.37.5.ebuild
86 deleted file mode 100644
87 index 5421c79e..00000000
88 --- a/x11-libs/pango/pango-1.37.5.ebuild
89 +++ /dev/null
90 @@ -1,66 +0,0 @@
91 -# Copyright 1999-2015 Gentoo Foundation
92 -# Distributed under the terms of the GNU General Public License v2
93 -# $Id$
94 -
95 -EAPI="5"
96 -GCONF_DEBUG="yes"
97 -GNOME2_LA_PUNT="yes"
98 -
99 -inherit gnome2 multilib toolchain-funcs multilib-minimal
100 -
101 -DESCRIPTION="Internationalized text layout and rendering library"
102 -HOMEPAGE="http://www.pango.org/"
103 -
104 -LICENSE="LGPL-2+ FTL"
105 -SLOT="0"
106 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
107 -
108 -IUSE="X +introspection"
109 -
110 -RDEPEND="
111 - >=media-libs/harfbuzz-0.9.12:=[glib(+),truetype(+),${MULTILIB_USEDEP}]
112 - >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
113 - >=media-libs/fontconfig-2.10.92:1.0=[${MULTILIB_USEDEP}]
114 - >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}]
115 - >=x11-libs/cairo-1.12.14-r4:=[X?,${MULTILIB_USEDEP}]
116 - introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
117 - X? (
118 - >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}]
119 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
120 - >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}]
121 - )
122 - abi_x86_32? (
123 - !<=app-emulation/emul-linux-x86-gtklibs-20131008-r3
124 - !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
125 - )
126 -"
127 -DEPEND="${RDEPEND}
128 - >=dev-util/gtk-doc-am-1.20
129 - virtual/pkgconfig
130 - X? ( >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}] )
131 - !<=sys-devel/autoconf-2.63:2.5
132 -"
133 -
134 -multilib_src_configure() {
135 - tc-export CXX
136 -
137 - ECONF_SOURCE=${S} \
138 - gnome2_src_configure \
139 - --with-cairo \
140 - $(multilib_native_use_enable introspection) \
141 - $(use_with X xft) \
142 - "$(usex X --x-includes="${EPREFIX}/usr/include" "")" \
143 - "$(usex X --x-libraries="${EPREFIX}/usr/$(get_libdir)" "")"
144 -
145 - if multilib_is_native_abi; then
146 - ln -s "${S}"/docs/html docs/html || die
147 - fi
148 -}
149 -
150 -multilib_src_install() {
151 - gnome2_src_install
152 -}
153 -
154 -pkg_postinst() {
155 - gnome2_pkg_postinst
156 -}
157
158 diff --git a/x11-libs/pango/pango-9999.ebuild b/x11-libs/pango/pango-9999.ebuild
159 index d754fc85..9d5d0d05 100644
160 --- a/x11-libs/pango/pango-9999.ebuild
161 +++ b/x11-libs/pango/pango-9999.ebuild
162 @@ -1,12 +1,10 @@
163 -# Copyright 1999-2015 Gentoo Foundation
164 +# Copyright 1999-2017 Gentoo Foundation
165 # Distributed under the terms of the GNU General Public License v2
166 -# $Id$
167
168 -EAPI="5"
169 -GCONF_DEBUG="yes"
170 +EAPI=6
171 GNOME2_LA_PUNT="yes"
172
173 -inherit autotools eutils gnome2 multilib toolchain-funcs
174 +inherit gnome2 multilib-minimal toolchain-funcs
175 if [[ ${PV} = 9999 ]]; then
176 inherit gnome2-live
177 fi
178 @@ -19,78 +17,48 @@ SLOT="0"
179 if [[ ${PV} = 9999 ]]; then
180 KEYWORDS=""
181 else
182 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
183 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
184 fi
185
186 -IUSE="X +introspection"
187 +IUSE="X +introspection test"
188
189 RDEPEND="
190 - >=media-libs/harfbuzz-0.9.9:=[glib(+),truetype(+)]
191 - >=dev-libs/glib-2.33.12:2
192 - >=media-libs/fontconfig-2.10.91:1.0=
193 - media-libs/freetype:2=
194 - >=x11-libs/cairo-1.12.10:=[X?]
195 - introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
196 + >=media-libs/harfbuzz-1.2.3:=[glib(+),truetype(+),${MULTILIB_USEDEP}]
197 + >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
198 + >=media-libs/fontconfig-2.10.92:1.0=[${MULTILIB_USEDEP}]
199 + >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}]
200 + >=x11-libs/cairo-1.12.14-r4:=[X?,${MULTILIB_USEDEP}]
201 + introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
202 X? (
203 - x11-libs/libXrender
204 - x11-libs/libX11
205 - >=x11-libs/libXft-2.0.0 )
206 + >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}]
207 + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
208 + >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}]
209 + )
210 "
211 DEPEND="${RDEPEND}
212 - >=dev-util/gtk-doc-am-1.15
213 - virtual/pkgconfig
214 - X? ( x11-proto/xproto )
215 + >=dev-util/gtk-doc-am-1.20
216 + virtual/pkgconfig[${MULTILIB_USEDEP}]
217 + test? ( media-fonts/cantarell )
218 + X? ( >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}] )
219 !<=sys-devel/autoconf-2.63:2.5
220 "
221
222 -src_prepare() {
223 - epatch "${FILESDIR}/${PN}-1.32.1-lib64.patch"
224 - eautoreconf
225 -
226 - gnome2_src_prepare
227 -}
228 -
229 -src_configure() {
230 +multilib_src_configure() {
231 tc-export CXX
232
233 + ECONF_SOURCE=${S} \
234 gnome2_src_configure \
235 --with-cairo \
236 - $(use_enable introspection) \
237 + $(multilib_native_use_enable introspection) \
238 $(use_with X xft) \
239 "$(usex X --x-includes="${EPREFIX}/usr/include" "")" \
240 "$(usex X --x-libraries="${EPREFIX}/usr/$(get_libdir)" "")"
241 -}
242
243 -src_install() {
244 - gnome2_src_install
245 -
246 - local PANGO_CONFDIR="/etc/pango/${CHOST}"
247 - dodir "${PANGO_CONFDIR}"
248 - keepdir "${PANGO_CONFDIR}"
249 -}
250 -
251 -pkg_postinst() {
252 - gnome2_pkg_postinst
253 -
254 - einfo "Generating modules listing..."
255 - local PANGO_CONFDIR="${EROOT}/etc/pango/${CHOST}"
256 - local pango_conf="${PANGO_CONFDIR}/pango.modules"
257 - local tmp_file=$(mktemp -t tmp_pango_ebuild.XXXXXXXXXX)
258 -
259 - # be atomic!
260 - if pango-querymodules --system \
261 - "${EROOT}"usr/$(get_libdir)/pango/1.8.0/modules/*$(get_modname) \
262 - > "${tmp_file}"; then
263 - cat "${tmp_file}" > "${pango_conf}" || {
264 - rm "${tmp_file}"; die; }
265 - else
266 - ewarn "Cannot update pango.modules, file generation failed"
267 + if multilib_is_native_abi; then
268 + ln -s "${S}"/docs/html docs/html || die
269 fi
270 - rm "${tmp_file}"
271 +}
272
273 - if [[ ${REPLACING_VERSIONS} < 1.30.1 ]]; then
274 - elog "In >=${PN}-1.30.1, default configuration file locations moved from"
275 - elog "~/.pangorc and ~/.pangox_aliases to ~/.config/pango/pangorc and"
276 - elog "~/.config/pango/pangox.aliases"
277 - fi
278 +multilib_src_install() {
279 + gnome2_src_install
280 }