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