Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/pango/, x11-libs/pango/files/
Date: Mon, 03 Feb 2020 02:37:05
Message-Id: 1580697382.66d950c109ef07428aaf8a1d1d234ee7ba42df55.mattst88@gentoo
1 commit: 66d950c109ef07428aaf8a1d1d234ee7ba42df55
2 Author: David Heidelberg <david <AT> ixit <DOT> cz>
3 AuthorDate: Wed Oct 30 13:03:19 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 3 02:36:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66d950c1
7
8 x11-libs/pango: Version bump to 1.44.7
9
10 From Polynomial-C's overlay.
11
12 Closes: https://bugs.gentoo.org/698922
13 Closes: https://github.com/gentoo/gentoo/pull/13498
14 Signed-off-by: David Heidelberg <david <AT> ixit.cz>
15 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
16
17 x11-libs/pango/Manifest | 1 +
18 ...break.c-Only-test-Thai-breaks-with-libtha.patch | 35 ++++++++++
19 x11-libs/pango/pango-1.44.7.ebuild | 81 ++++++++++++++++++++++
20 3 files changed, 117 insertions(+)
21
22 diff --git a/x11-libs/pango/Manifest b/x11-libs/pango/Manifest
23 index b156ec8c167..43cbd6530e5 100644
24 --- a/x11-libs/pango/Manifest
25 +++ b/x11-libs/pango/Manifest
26 @@ -1,2 +1,3 @@
27 DIST pango-1.42.4-patchset.tar.xz 6040 BLAKE2B ec3f1a6a4de30e0864e7f0bf0950cb7a7b4bada8c3db496a8e5b1e770f221ae72b43167178445ea9cd0d6b88e51d2af49e7fdf27b2e792997fe7c37e55d429c1 SHA512 b7654c3493931e3c6d3cbd40ee49c5cbebaf403954bae75dea80e9f03e12dd5082548aff6a9e778821b8f935e227a7efaad4c1b980fa108e7258042221cadfc1
28 DIST pango-1.42.4.tar.xz 833876 BLAKE2B 7de1094a29750b9e59ea1e5c92644fa5d6b835828d027963a53cce3f204ee1ea0042ec492e209de9136f05ca131ccda959bc477d4f6e9c72e5f620ddf4235f26 SHA512 993e97f647eba0c5ed90bcfcb8228bf67fa3f20b1f4331e4e40a30788d7c3ac55eee1209471bf21df125cb8fc6121acc8062a9da2f8a7d6cbe8e9ad13a9320dc
29 +DIST pango-1.44.7.tar.xz 521384 BLAKE2B 9917efc1bcc9115331149d77eb9b15373d4331ed6a8e5542a97fbbbb480eb0557736d4f1817c0fd56262f442e4b3c2c68607baacdd38b1684def1af58a583bfb SHA512 6e0a3d5cd32c209fd71a2ce5f705a60db318c2133bcca07360a047a73892f642a1661c1f0fb90353fc43e75336dfc22909bf4969f1bd03324c9689344af08350
30
31 diff --git a/x11-libs/pango/files/pango-1.44.7-tests-test-break.c-Only-test-Thai-breaks-with-libtha.patch b/x11-libs/pango/files/pango-1.44.7-tests-test-break.c-Only-test-Thai-breaks-with-libtha.patch
32 new file mode 100644
33 index 00000000000..181d84587e1
34 --- /dev/null
35 +++ b/x11-libs/pango/files/pango-1.44.7-tests-test-break.c-Only-test-Thai-breaks-with-libtha.patch
36 @@ -0,0 +1,35 @@
37 +https://gitlab.gnome.org/GNOME/pango/merge_requests/161
38 +
39 +From b73284747ac937e31dc9191f84ed6e24284c88ee Mon Sep 17 00:00:00 2001
40 +From: Chun-wei Fan <fanchunwei@×××××××××.org>
41 +Date: Mon, 25 Nov 2019 14:58:32 +0800
42 +Subject: [PATCH] tests/test-break.c: Only test Thai breaks with libthai
43 + available
44 +
45 +The four.break test data file involves the Thai language, meaning that
46 +this test will fail unless we have libthai. Skip this test unless
47 +libthai is found.
48 +---
49 + tests/test-break.c | 6 ++++++
50 + 1 file changed, 6 insertions(+)
51 +
52 +diff --git a/tests/test-break.c b/tests/test-break.c
53 +index 8549b678..47fa3009 100644
54 +--- a/tests/test-break.c
55 ++++ b/tests/test-break.c
56 +@@ -305,6 +305,12 @@ main (int argc, char *argv[])
57 + if (!strstr (name, "break"))
58 + continue;
59 +
60 ++#ifndef HAVE_LIBTHAI
61 ++ /* four.break involves Thai, so only test it when we have libthai */
62 ++ if (strstr (name, "four.break"))
63 ++ continue;
64 ++#endif
65 ++
66 + path = g_strdup_printf ("/break/%s", name);
67 + g_test_add_data_func_full (path, g_test_build_filename (G_TEST_DIST, "breaks", name, NULL),
68 + test_break, g_free);
69 +--
70 +2.24.1
71 +
72
73 diff --git a/x11-libs/pango/pango-1.44.7.ebuild b/x11-libs/pango/pango-1.44.7.ebuild
74 new file mode 100644
75 index 00000000000..cbaa8b80c48
76 --- /dev/null
77 +++ b/x11-libs/pango/pango-1.44.7.ebuild
78 @@ -0,0 +1,81 @@
79 +# Copyright 1999-2019 Gentoo Authors
80 +# Distributed under the terms of the GNU General Public License v2
81 +
82 +EAPI=7
83 +
84 +inherit gnome2-utils meson multilib-minimal toolchain-funcs xdg
85 +
86 +DESCRIPTION="Internationalized text layout and rendering library"
87 +HOMEPAGE="https://www.pango.org/"
88 +SRC_URI="http://ftp.gnome.org/pub/GNOME/sources/pango/$(ver_cut 1-2)/${P}.tar.xz"
89 +
90 +LICENSE="LGPL-2+ FTL"
91 +SLOT="0"
92 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
93 +
94 +# X USE flag is simply a stub until all revdeps have been adjusted to use X(+)
95 +IUSE="gtk-doc +introspection test +X"
96 +RESTRICT="!test? ( test )"
97 +
98 +RDEPEND="
99 + >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}]
100 + >=dev-libs/glib-2.59.2:2[${MULTILIB_USEDEP}]
101 + >=media-libs/fontconfig-2.12.92:1.0=[${MULTILIB_USEDEP}]
102 + >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}]
103 + >=media-libs/harfbuzz-2.0:=[glib(+),truetype(+),${MULTILIB_USEDEP}]
104 + >=x11-libs/cairo-1.12.10:=[X,${MULTILIB_USEDEP}]
105 + >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}]
106 + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
107 + >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}]
108 + x11-libs/libXrender[${MULTILIB_USEDEP}]
109 + introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
110 +"
111 +DEPEND="${RDEPEND}
112 + dev-util/glib-utils
113 + x11-base/xorg-proto
114 +"
115 +BDEPEND="
116 + virtual/pkgconfig[${MULTILIB_USEDEP}]
117 + gtk-doc? (
118 + >=dev-util/gtk-doc-1.20
119 + app-text/docbook-xml-dtd:4.2
120 + app-text/docbook-xml-dtd:4.5
121 + )
122 +"
123 +
124 +PATCHES=(
125 + "${FILESDIR}"/${P}-tests-test-break.c-Only-test-Thai-breaks-with-libtha.patch
126 +)
127 +
128 +src_prepare() {
129 + xdg_src_prepare
130 + gnome2_environment_reset
131 +}
132 +
133 +multilib_src_configure() {
134 + tc-export CXX
135 +
136 + local emesonargs=(
137 + -Dgtk_doc="$(multilib_native_usex gtk-doc true false)"
138 + -Dintrospection="$(multilib_native_usex introspection true false)"
139 + -Dinstall-tests=false
140 + )
141 + meson_src_configure
142 +}
143 +
144 +muiltilib_src_compile() {
145 + meson_src_compile
146 +}
147 +
148 +multilib_src_install() {
149 + meson_src_install
150 +}
151 +
152 +multilib_src_test() {
153 + meson_src_test
154 +}
155 +
156 +pkg_postinst() {
157 + xdg_pkg_postinst
158 + gnome2_schemas_update
159 +}