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, 14 Aug 2020 18:31:56
Message-Id: 1597429910.97a9ebee14662e1625865b25213674a9d7508943.polynomial-c@gentoo
1 commit: 97a9ebee14662e1625865b25213674a9d7508943
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 14 18:31:21 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 14 18:31:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a9ebee
7
8 media-libs/harfbuzz: Synced live ebuild
9
10 Package-Manager: Portage-3.0.2, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-libs/harfbuzz/harfbuzz-9999.ebuild | 63 ++++++++++++++++----------------
14 1 file changed, 31 insertions(+), 32 deletions(-)
15
16 diff --git a/media-libs/harfbuzz/harfbuzz-9999.ebuild b/media-libs/harfbuzz/harfbuzz-9999.ebuild
17 index 8bb87bd9b55..774a139ec6a 100644
18 --- a/media-libs/harfbuzz/harfbuzz-9999.ebuild
19 +++ b/media-libs/harfbuzz/harfbuzz-9999.ebuild
20 @@ -5,7 +5,7 @@ EAPI=7
21
22 PYTHON_COMPAT=( python3_{6,7,8} )
23
24 -inherit autotools flag-o-matic libtool multilib-minimal python-any-r1 xdg-utils
25 +inherit flag-o-matic libtool meson multilib-minimal python-any-r1 xdg-utils
26
27 DESCRIPTION="An OpenType text shaping engine"
28 HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz"
29 @@ -54,15 +54,6 @@ src_prepare() {
30
31 xdg_environment_reset
32
33 - if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
34 - # on Darwin/Solaris we need to link with g++, like automake defaults
35 - # to, but overridden by upstream because on Linux this is not
36 - # necessary, bug #449126
37 - sed -i \
38 - -e 's/\<LINK\>/CXXLINK/' \
39 - src/Makefile.am || die
40 - fi
41 -
42 sed -i \
43 -e 's:tests/macos.tests::' \
44 test/shaping/data/in-house/Makefile.sources \
45 @@ -73,38 +64,46 @@ src_prepare() {
46 echo "EXTRA_DIST = " > gtk-doc.make
47 fi
48
49 - eautoreconf
50 - elibtoolize # for Solaris
51 -
52 # bug 618772
53 append-cxxflags -std=c++14
54 }
55
56 +meson_multilib_native_feature() {
57 + if multilib_is_native_abi && use "$1" ; then
58 + echo "enabled"
59 + else
60 + echo "disabled"
61 + fi
62 +}
63 +
64 multilib_src_configure() {
65 # harfbuzz-gobject only used for instrospection, bug #535852
66 - local myeconfargs=(
67 - --without-coretext
68 - --without-fontconfig #609300
69 - --without-uniscribe
70 - $(multilib_native_use_enable doc gtk-doc)
71 - $(multilib_native_use_enable doc gtk-doc-html)
72 - $(use_enable static-libs static)
73 - $(multilib_native_use_with cairo)
74 - $(use_with glib)
75 - $(use_with introspection gobject)
76 - $(use_with graphite graphite2)
77 - $(use_with icu)
78 - $(multilib_native_use_enable introspection)
79 - $(use_with truetype freetype)
80 + local emesonargs=(
81 + -Dcairo="$(meson_multilib_native_feature cairo)"
82 + -Dcoretext="disabled"
83 + -Ddocs="$(meson_multilib_native_feature doc)"
84 + -Dfontconfig="disabled" #609300
85 + #-Dgobject="$(meson_multilib_native_feature introspection)"
86 + -Dintrospection="$(meson_multilib_native_feature introspection)"
87 + -Dstatic="$(usex static-libs true false)"
88 + $(meson_feature glib)
89 + $(meson_feature graphite)
90 + $(meson_feature icu)
91 + $(meson_feature introspection gobject)
92 + $(meson_feature test tests)
93 + $(meson_feature truetype freetype)
94 )
95 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
96 + meson_src_configure
97 +}
98
99 - if multilib_is_native_abi; then
100 - ln -s "${S}"/docs/html docs/html || die
101 - fi
102 +multilib_src_compile() {
103 + meson_src_compile
104 +}
105 +
106 +multilib_src_install() {
107 + meson_src_install
108 }
109
110 multilib_src_install_all() {
111 einstalldocs
112 - find "${ED}" -type f -name "*.la" -delete || die
113 }