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: Thu, 14 May 2020 09:08:00
Message-Id: 1589447271.0a10ce0ffefe4e28481d1b25439376e78aefd7db.polynomial-c@gentoo
1 commit: 0a10ce0ffefe4e28481d1b25439376e78aefd7db
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 14 09:07:41 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu May 14 09:07:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a10ce0f
7
8 media-libs/harfbuzz: Bump to version 2.6.6
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-libs/harfbuzz/Manifest | 1 +
14 media-libs/harfbuzz/harfbuzz-2.6.6.ebuild | 111 ++++++++++++++++++++++++++++++
15 2 files changed, 112 insertions(+)
16
17 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
18 index e741812357e..3a8cfa60a06 100644
19 --- a/media-libs/harfbuzz/Manifest
20 +++ b/media-libs/harfbuzz/Manifest
21 @@ -1,2 +1,3 @@
22 DIST harfbuzz-2.6.4.tar.xz 5967468 BLAKE2B 24d215324a408a724f47a901c4a56605144d15373518bd52643ece83705d0c63582a80635ecef6a6d8d2f5f39c750076d553fb39aaa8c0dd41702ee910c32f24 SHA512 d8664bb64fda11ff7646693070637e3827f8b3d1de50e11ecf108ce4d19c878b26b2ba4cff278da6e6cc0cb431e1630d9eaa7c32a9bebb9655a7aa8dabf7114f
23 DIST harfbuzz-2.6.5.tar.xz 8510596 BLAKE2B e495fbba7e0cb58918afeb6beb3ebcf936be896ca606cef27dcbfb9b5f10add144f7fcaa50dec35a9f909d7e87deebadb7c9e6bbbadcbd799effd96076786cde SHA512 ae66211f9b4233c1da4b22b703ab4912f684390294c5c88113e6c927d5aeda8960da3ff607a7c7be5968d9fbb5a95b1f6933070d0aab2aa442a3ec8a112cd16f
24 +DIST harfbuzz-2.6.6.tar.xz 8530984 BLAKE2B 59ddbffdd6d7af44a1564079e8313cd24a5811cae2de46a632ebf7ec3e76b3c600d159b8be0e52cc1a776c9975955d0e888ce69c304467b3eaef41f09b2be493 SHA512 b0b6323b893a3540e36e2358cc7e7d27c98aa14f1debe65cd8eaf817a55752ea4f22369e37e195abefd03bbc787f178d1b64f167237683ac208b9a65b0ae09c8
25
26 diff --git a/media-libs/harfbuzz/harfbuzz-2.6.6.ebuild b/media-libs/harfbuzz/harfbuzz-2.6.6.ebuild
27 new file mode 100644
28 index 00000000000..085525d97ee
29 --- /dev/null
30 +++ b/media-libs/harfbuzz/harfbuzz-2.6.6.ebuild
31 @@ -0,0 +1,111 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +
39 +inherit flag-o-matic libtool multilib-minimal 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 autotools
47 +else
48 + SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
49 + 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"
50 +fi
51 +
52 +LICENSE="Old-MIT ISC icu"
53 +SLOT="0/0.9.18" # 0.9.18 introduced the harfbuzz-icu split; bug #472416
54 +
55 +IUSE="+cairo debug +glib +graphite icu +introspection static-libs test +truetype"
56 +RESTRICT="!test? ( test )"
57 +REQUIRED_USE="introspection? ( glib )"
58 +
59 +RDEPEND="
60 + cairo? ( x11-libs/cairo:= )
61 + glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
62 + graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
63 + icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
64 + introspection? ( >=dev-libs/gobject-introspection-1.34:= )
65 + truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
66 +"
67 +DEPEND="${RDEPEND}
68 + test? ( ${PYTHON_DEPS} )
69 +"
70 +BDEPEND="
71 + dev-util/gtk-doc-am
72 + virtual/pkgconfig
73 +"
74 +# eautoreconf requires gobject-introspection-common
75 +# ragel needed if regenerating *.hh files from *.rl
76 +if [[ ${PV} = 9999 ]] ; then
77 + DEPEND+="
78 + >=dev-libs/gobject-introspection-common-1.34
79 + dev-util/ragel
80 + "
81 +fi
82 +
83 +pkg_setup() {
84 + use test && python-any-r1_pkg_setup
85 + if ! use debug ; then
86 + append-cppflags -DHB_NDEBUG
87 + fi
88 +}
89 +
90 +src_prepare() {
91 + default
92 +
93 + xdg_environment_reset
94 +
95 + if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
96 + # on Darwin/Solaris we need to link with g++, like automake defaults
97 + # to, but overridden by upstream because on Linux this is not
98 + # necessary, bug #449126
99 + sed -i \
100 + -e 's/\<LINK\>/CXXLINK/' \
101 + src/Makefile.am || die
102 + sed -i \
103 + -e '/libharfbuzz_la_LINK = /s/\<LINK\>/CXXLINK/' \
104 + src/Makefile.in || die
105 + sed -i \
106 + -e '/AM_V_CCLD/s/\<LINK\>/CXXLINK/' \
107 + test/api/Makefile.in || die
108 + fi
109 +
110 + [[ ${PV} == 9999 ]] && eautoreconf
111 + elibtoolize # for Solaris
112 +
113 + # bug 618772
114 + append-cxxflags -std=c++14
115 +}
116 +
117 +multilib_src_configure() {
118 + # harfbuzz-gobject only used for instrospection, bug #535852
119 + local myeconfargs=(
120 + --without-coretext
121 + --without-fontconfig #609300
122 + --without-uniscribe
123 + $(use_enable static-libs static)
124 + $(multilib_native_use_with cairo)
125 + $(use_with glib)
126 + $(use_with introspection gobject)
127 + $(use_with graphite graphite2)
128 + $(use_with icu)
129 + $(multilib_native_use_enable introspection)
130 + $(use_with truetype freetype)
131 + )
132 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
133 +
134 + if multilib_is_native_abi; then
135 + ln -s "${S}"/docs/html docs/html || die
136 + fi
137 +}
138 +
139 +multilib_src_install_all() {
140 + einstalldocs
141 + find "${ED}" -type f -name "*.la" -delete || die
142 +}