Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/harfbuzz/
Date: Sat, 29 Aug 2020 15:42:23
Message-Id: 1598715661.0fc11078f4f3cbfaf84740917764c8a76741fcc0.whissi@gentoo
1 commit: 0fc11078f4f3cbfaf84740917764c8a76741fcc0
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 15:41:01 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 15:41:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fc11078
7
8 media-libs/harfbuzz: bump to v2.7.2
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 media-libs/harfbuzz/Manifest | 1 +
14 media-libs/harfbuzz/harfbuzz-2.7.2.ebuild | 104 ++++++++++++++++++++++++++++++
15 2 files changed, 105 insertions(+)
16
17 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
18 index 354d2bf8493..85f3068e686 100644
19 --- a/media-libs/harfbuzz/Manifest
20 +++ b/media-libs/harfbuzz/Manifest
21 @@ -3,3 +3,4 @@ DIST harfbuzz-2.6.7.tar.xz 9001936 BLAKE2B bd3a195506253a1446e877c35c067cc874826
22 DIST harfbuzz-2.6.8.tar.xz 8976516 BLAKE2B 46401ae06ec70172621d2aa354901f03173a273abdb0db909332946643e82b4286be690ac717a29304e9db121dd7f693b4ce19522de772f5d140986d6333e7ce SHA512 651b23d7d4fab6fef472ee57db39bbaebc31c2f40ea3a482c1499ad1a7b549b86a2bccbe9da191c8e9ecdf464191dd3c9a7485546b51695ad8ab3c0329732d9d
23 DIST harfbuzz-2.7.0.tar.gz 16278518 BLAKE2B 4d4bcbcd08c90cbdb34f8aca3571bcd836d578e7eab81187d7dba8a19ae586744b5f9ac83cfb6a50302648c502a87f4aa9dccdfbf39edc70d4318d831f4a55b0 SHA512 65d5b9bd3a53be659dd7d220da220f6873f7246c2ab11205132998e4ac4245fcf51b6968e705b81cc7652db5bbacc90c8db977cf1020edf7957a626a19e055c0
24 DIST harfbuzz-2.7.1.tar.gz 16603949 BLAKE2B 4c1792dfb8f2c777efb2f01dfc7e4642bda507813d21db5beee467b1368e991db0f0c3f903662da0a267e7af9a6c30bb258fa057e42d3096f9f8d23ccf4bac9e SHA512 a04864e0f5e523e9d025f066e0850afdfdf53acc9881c0284034ab4384088b118551a899ae5e77bbd821c344b97fb5e0a3d4506bbb812eb0019080be7b3f75f1
25 +DIST harfbuzz-2.7.2.tar.gz 16605557 BLAKE2B 246ab64e29afcadc692b57bad84acdea1f9200a63f6f8b1519d12b8515ec65dc45e2edf3abdde473b71364427a689d92ce2ee25c514edf4b1e680dd423d774ee SHA512 2eeb198dab1ed1cc7d10c3890293ff40e9f37372413877a5bd44d66e88d8460a81f51cbe71c328b1300f542ca8de3269749d1d01d0c324c8b95a9c038fbe1521
26
27 diff --git a/media-libs/harfbuzz/harfbuzz-2.7.2.ebuild b/media-libs/harfbuzz/harfbuzz-2.7.2.ebuild
28 new file mode 100644
29 index 00000000000..d8d69233362
30 --- /dev/null
31 +++ b/media-libs/harfbuzz/harfbuzz-2.7.2.ebuild
32 @@ -0,0 +1,104 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7,8} )
39 +
40 +inherit flag-o-matic meson multilib-minimal python-any-r1 xdg-utils
41 +
42 +DESCRIPTION="An OpenType text shaping engine"
43 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz"
44 +
45 +if [[ ${PV} = 9999 ]] ; then
46 + EGIT_REPO_URI="https://github.com/harfbuzz/harfbuzz.git"
47 + inherit git-r3
48 +else
49 + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
50 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +fi
52 +
53 +LICENSE="Old-MIT ISC icu"
54 +SLOT="0/0.9.18" # 0.9.18 introduced the harfbuzz-icu split; bug #472416
55 +
56 +IUSE="+cairo debug doc +glib +graphite icu +introspection static-libs test +truetype"
57 +RESTRICT="!test? ( test )"
58 +REQUIRED_USE="introspection? ( glib )"
59 +
60 +RDEPEND="
61 + cairo? ( x11-libs/cairo:= )
62 + glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
63 + graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
64 + icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
65 + introspection? ( >=dev-libs/gobject-introspection-1.34:= )
66 + truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
67 +"
68 +DEPEND="${RDEPEND}
69 + >=dev-libs/gobject-introspection-common-1.34
70 + test? ( ${PYTHON_DEPS} )
71 +"
72 +BDEPEND="
73 + virtual/pkgconfig
74 + doc? ( dev-util/gtk-doc )
75 + introspection? ( dev-util/glib-utils )
76 +"
77 +
78 +pkg_setup() {
79 + use test && python-any-r1_pkg_setup
80 + if ! use debug ; then
81 + append-cppflags -DHB_NDEBUG
82 + fi
83 +}
84 +
85 +src_prepare() {
86 + default
87 +
88 + xdg_environment_reset
89 +
90 + sed -i \
91 + -e 's:tests/macos.tests::' \
92 + test/shaping/data/in-house/Makefile.sources \
93 + || die # bug 726120
94 +
95 + # bug 618772
96 + append-cxxflags -std=c++14
97 +}
98 +
99 +meson_multilib_native_feature() {
100 + if multilib_is_native_abi && use "$1" ; then
101 + echo "enabled"
102 + else
103 + echo "disabled"
104 + fi
105 +}
106 +
107 +multilib_src_configure() {
108 + # harfbuzz-gobject only used for instrospection, bug #535852
109 + local emesonargs=(
110 + -Dcairo="$(meson_multilib_native_feature cairo)"
111 + -Dcoretext="disabled"
112 + -Ddocs="$(meson_multilib_native_feature doc)"
113 + -Dfontconfig="disabled" #609300
114 + -Dintrospection="$(meson_multilib_native_feature introspection)"
115 + -Dstatic="$(usex static-libs true false)"
116 + $(meson_feature glib)
117 + $(meson_feature graphite)
118 + $(meson_feature icu)
119 + $(meson_feature introspection gobject)
120 + $(meson_feature test tests)
121 + $(meson_feature truetype freetype)
122 + )
123 + meson_src_configure
124 +}
125 +
126 +multilib_src_compile() {
127 + meson_src_compile
128 +}
129 +
130 +multilib_src_install() {
131 + meson_src_install
132 +}
133 +
134 +multilib_src_install_all() {
135 + einstalldocs
136 +}