Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/harfbuzz/
Date: Fri, 09 Jul 2021 06:08:32
Message-Id: 1625810628.6fdb5398ec1787ca809b2c7fe337e70ea4815334.polynomial-c@gentoo
1 commit: 6fdb5398ec1787ca809b2c7fe337e70ea4815334
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 9 06:03:48 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 9 06:03:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fdb5398
7
8 media-libs/harfbuzz: Bump to version 2.8.2
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 media-libs/harfbuzz/Manifest | 1 +
13 media-libs/harfbuzz/harfbuzz-2.8.2.ebuild | 93 +++++++++++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
17 index 3b7d3db0c7c..0d69639fd21 100644
18 --- a/media-libs/harfbuzz/Manifest
19 +++ b/media-libs/harfbuzz/Manifest
20 @@ -1 +1,2 @@
21 DIST harfbuzz-2.8.1.tar.gz 17939717 BLAKE2B 4e6eeb0beb45e88386d994eb219479a2ed68bd1b78af3becb4ef1c89152e21924319b415e194f57c7aa4acf8031ab4ae35725b873f36b6f816aaa33a7bbb86d9 SHA512 16e43b9182d3ebd2394c2c0e0df815ca9e715d55dc7e46de4eafcde49ddf59cccae69a5340e05c8aa2ee6bc2ba46d1cffae8252d1b2a004ffe9d70c62628cf73
22 +DIST harfbuzz-2.8.2.tar.gz 18506485 BLAKE2B 39a43d643339a5bc27d886e418695d2864ad7b9094dc508f5ccf52bf635b340adb7ec6958a15349e0b2580444ec98c5850e4022f708287fbe44cb7ea90065881 SHA512 51eee8c8fa6f839512e0dfc5c80ae8ed1e09d747d0ffc6736e5a1cbf86de956322f23e6ea25a90985e2317e98229a133e208da2a7b5177d65894cc64706ee8d4
23
24 diff --git a/media-libs/harfbuzz/harfbuzz-2.8.2.ebuild b/media-libs/harfbuzz/harfbuzz-2.8.2.ebuild
25 new file mode 100644
26 index 00000000000..9f52c19d342
27 --- /dev/null
28 +++ b/media-libs/harfbuzz/harfbuzz-2.8.2.ebuild
29 @@ -0,0 +1,93 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +
37 +inherit flag-o-matic meson-multilib python-any-r1 xdg-utils
38 +
39 +DESCRIPTION="An OpenType text shaping engine"
40 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz"
41 +
42 +if [[ ${PV} = 9999 ]] ; then
43 + EGIT_REPO_URI="https://github.com/harfbuzz/harfbuzz.git"
44 + inherit git-r3
45 +else
46 + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 +fi
49 +
50 +LICENSE="Old-MIT ISC icu"
51 +SLOT="0/0.9.18" # 0.9.18 introduced the harfbuzz-icu split; bug #472416
52 +
53 +IUSE="+cairo debug doc +glib +graphite icu +introspection static-libs test +truetype"
54 +RESTRICT="!test? ( test )"
55 +REQUIRED_USE="introspection? ( glib )"
56 +
57 +RDEPEND="
58 + cairo? ( x11-libs/cairo:= )
59 + glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
60 + graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
61 + icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
62 + introspection? ( >=dev-libs/gobject-introspection-1.34:= )
63 + truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
64 +"
65 +DEPEND="${RDEPEND}
66 + >=dev-libs/gobject-introspection-common-1.34
67 +"
68 +BDEPEND="
69 + ${PYTHON_DEPS}
70 + virtual/pkgconfig
71 + doc? ( dev-util/gtk-doc )
72 + introspection? ( dev-util/glib-utils )
73 +"
74 +
75 +pkg_setup() {
76 + python-any-r1_pkg_setup
77 + if ! use debug ; then
78 + append-cppflags -DHB_NDEBUG
79 + fi
80 +}
81 +
82 +src_prepare() {
83 + default
84 +
85 + xdg_environment_reset
86 +
87 + sed -i \
88 + -e 's:tests/macos.tests::' \
89 + test/shaping/data/in-house/Makefile.sources \
90 + || die # bug 726120
91 +
92 + # bug 618772
93 + append-cxxflags -std=c++14
94 +
95 + # bug 790359
96 + filter-flags -fexceptions -fthreadsafe-statics
97 +
98 + # bug 762415
99 + local pyscript
100 + for pyscript in $(find -type f -name "*.py") ; do
101 + python_fix_shebang -q "${pyscript}"
102 + done
103 +}
104 +
105 +multilib_src_configure() {
106 + # harfbuzz-gobject only used for instrospection, bug #535852
107 + local emesonargs=(
108 + $(meson_native_use_feature cairo)
109 + -Dcoretext="disabled"
110 + $(meson_native_use_feature doc)
111 + -Dfontconfig="disabled" #609300
112 + $(meson_native_use_feature introspection)
113 + $(meson_use static-libs static)
114 + $(meson_feature glib)
115 + $(meson_feature graphite)
116 + $(meson_feature icu)
117 + $(meson_feature introspection gobject)
118 + $(meson_feature test tests)
119 + $(meson_feature truetype freetype)
120 + )
121 + meson_src_configure
122 +}