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