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: Tue, 29 Oct 2019 14:48:35
Message-Id: 1572360506.3fffca8572508901f93bf0b059363d61be743889.polynomial-c@gentoo
1 commit: 3fffca8572508901f93bf0b059363d61be743889
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 29 14:47:06 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 29 14:48:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fffca85
7
8 media-libs/harfbuzz: Bump to version 2.6.3
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
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.3.ebuild | 110 ++++++++++++++++++++++++++++++
15 2 files changed, 111 insertions(+)
16
17 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
18 index 9d08c50f694..f0d9d30f2d9 100644
19 --- a/media-libs/harfbuzz/Manifest
20 +++ b/media-libs/harfbuzz/Manifest
21 @@ -1,2 +1,3 @@
22 DIST harfbuzz-2.6.1.tar.xz 5741372 BLAKE2B bb763eba23a37bd20d0ddb39824d5a0c655d6e098aea2e44b6943e7bd5cb1f9a5cd94e3de5520d962e3c476defac43af58f98d0a5b80e5c1506d00bc716ec876 SHA512 cea531ab9db0ae1b188ac56c3ea6e0344192c4321b97d4425f4a53e6bb34c88463a7453fd69fcadccb8574506c1fb5505422019e41a7938a04e7823e3f484c06
23 DIST harfbuzz-2.6.2.tar.xz 5769792 BLAKE2B 8ab4f76e858cb6d120b59c62fcda783fb331ec750ed9e4a74ceea448cafab9aff814d8599442d8939d41d0b5cc176724753b16c7cd42d6d314a08ce27d6856f5 SHA512 0a98c2b49650d66cf11f3395504cba3b18aaca43482924d9b58babd2ccb986b74ed7478bef5c4c1937d7782b7b278504854eaa04a62b329df08d91d30fc879d5
24 +DIST harfbuzz-2.6.3.tar.xz 5811320 BLAKE2B 84f6f8346574c881b41c47561b983d0714d2754a40955cbb8fb9687cfa0cd2dea965aad1eac417ad1cb5270cd5ced27225c710f0743a408f367902e7c326b24e SHA512 ed387c551c01305d419dab186e3760959ac31abec761dde407142ad3619db918a5b79cc1e0737004f5da3437f7eabb8d796f770f0e7eba60d3a4496995453444
25
26 diff --git a/media-libs/harfbuzz/harfbuzz-2.6.3.ebuild b/media-libs/harfbuzz/harfbuzz-2.6.3.ebuild
27 new file mode 100644
28 index 00000000000..8f3d354b0b0
29 --- /dev/null
30 +++ b/media-libs/harfbuzz/harfbuzz-2.6.3.ebuild
31 @@ -0,0 +1,110 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python2_7 )
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://anongit.freedesktop.org/git/harfbuzz.git"
46 + inherit git-r3 autotools
47 +else
48 + SRC_URI="https://www.freedesktop.org/software/${PN}/release/${P}.tar.xz"
49 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~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 +REQUIRED_USE="introspection? ( glib )"
57 +
58 +RDEPEND="
59 + cairo? ( x11-libs/cairo:= )
60 + glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
61 + graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
62 + icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
63 + introspection? ( >=dev-libs/gobject-introspection-1.34:= )
64 + truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
65 +"
66 +DEPEND="${RDEPEND}
67 + test? ( ${PYTHON_DEPS} )
68 +"
69 +BDEPEND="
70 + dev-util/gtk-doc-am
71 + virtual/pkgconfig
72 +"
73 +# eautoreconf requires gobject-introspection-common
74 +# ragel needed if regenerating *.hh files from *.rl
75 +if [[ ${PV} = 9999 ]] ; then
76 + DEPEND+="
77 + >=dev-libs/gobject-introspection-common-1.34
78 + dev-util/ragel
79 + "
80 +fi
81 +
82 +pkg_setup() {
83 + use test && python-any-r1_pkg_setup
84 + if ! use debug ; then
85 + append-cppflags -DHB_NDEBUG
86 + fi
87 +}
88 +
89 +src_prepare() {
90 + default
91 +
92 + xdg_environment_reset
93 +
94 + if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
95 + # on Darwin/Solaris we need to link with g++, like automake defaults
96 + # to, but overridden by upstream because on Linux this is not
97 + # necessary, bug #449126
98 + sed -i \
99 + -e 's/\<LINK\>/CXXLINK/' \
100 + src/Makefile.am || die
101 + sed -i \
102 + -e '/libharfbuzz_la_LINK = /s/\<LINK\>/CXXLINK/' \
103 + src/Makefile.in || die
104 + sed -i \
105 + -e '/AM_V_CCLD/s/\<LINK\>/CXXLINK/' \
106 + test/api/Makefile.in || die
107 + fi
108 +
109 + [[ ${PV} == 9999 ]] && eautoreconf
110 + elibtoolize # for Solaris
111 +
112 + # bug 618772
113 + append-cxxflags -std=c++14
114 +}
115 +
116 +multilib_src_configure() {
117 + # harfbuzz-gobject only used for instrospection, bug #535852
118 + local myeconfargs=(
119 + --without-coretext
120 + --without-fontconfig #609300
121 + --without-uniscribe
122 + $(use_enable static-libs static)
123 + $(multilib_native_use_with cairo)
124 + $(use_with glib)
125 + $(use_with introspection gobject)
126 + $(use_with graphite graphite2)
127 + $(use_with icu)
128 + $(multilib_native_use_enable introspection)
129 + $(use_with truetype freetype)
130 + )
131 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
132 +
133 + if multilib_is_native_abi; then
134 + ln -s "${S}"/docs/html docs/html || die
135 + fi
136 +}
137 +
138 +multilib_src_install_all() {
139 + einstalldocs
140 + find "${ED}" -name "*.la" -delete || die
141 +}