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, 04 Jul 2018 08:58:54
Message-Id: 1530694349.f42813d4e2d519c368462fcdefd2dfe4e982ebb6.polynomial-c@gentoo
1 commit: f42813d4e2d519c368462fcdefd2dfe4e982ebb6
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 4 08:52:29 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 4 08:52:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f42813d4
7
8 media-libs/harfbuzz: Bump to version 1.8.2
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 media-libs/harfbuzz/Manifest | 1 +
13 media-libs/harfbuzz/harfbuzz-1.8.2.ebuild | 109 ++++++++++++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
17 index bcf10c7e48d..1d5f560ffa0 100644
18 --- a/media-libs/harfbuzz/Manifest
19 +++ b/media-libs/harfbuzz/Manifest
20 @@ -2,3 +2,4 @@ DIST harfbuzz-1.7.2.tar.bz2 1708416 BLAKE2B d182bdfa163e07ff41bf36e30373470bf0dd
21 DIST harfbuzz-1.7.6.tar.bz2 2586909 BLAKE2B 0ae5902b9fe00a4f05a5dc407d698195920454efff79be10f1d85af5430d8bde7df071ba226b978c860d1dd8778a8259f330ab633a1aaa416a4451888fa9ae6a SHA512 259656574b1ec2916ada951b759a591f45c11c5c639fa29831e06320312bf951f4f5ef6306f9ffc373abf0d40dbf944db918d4c54aca3bd7eab2c3a886db7a68
22 DIST harfbuzz-1.8.0.tar.bz2 3793974 BLAKE2B d6f6a58e1fe2778f5007e73abc90ccd5bed3b170f27ef1a656fcad824a410b2f4d7f560ce01e5dc87ad97dea0bc926c7d49f2c9e87fec5b7c84cac6be4373afc SHA512 90cccdaa45bbd7b5a75c9600d49e15dea820f0db4f9e4eda2c451092000281657a2ecb281b574d339e84e72842e978f5cbf505845fa573e6b76382192d8dd4fb
23 DIST harfbuzz-1.8.1.tar.bz2 3804867 BLAKE2B 9687b35bbdb74a42c28764a7b026a46ff90640b84bc40702bdbfadc79bbe3c393de837d4cdbbb8798f28aa8c75687c4f07e1c79e98bf9bd506403d89b4baf6a5 SHA512 7ef27232b294883b0c7404c8412837acfba95f12677f226d764f87e22cd169fe037e7bf13a9309e78c9aa905225fb332b3a143a01b13308b05fcccaeddb0c931
24 +DIST harfbuzz-1.8.2.tar.bz2 3820498 BLAKE2B 7ed1509a7b54571e14d72fa097d19a56e27b3c0020243e51315ff783910319486e6c1af7cec88060c17ccf5788ff1b09f26ee4dbc879b009c983ede767e00316 SHA512 c88a3e9e55866608647318a1af7c5d848863cd894d635583b8a2d2a7a02eea875b7a5a4f0f38555d80f2e81628743e40710f5e6f9251bf629f1d15ac51103e5a
25
26 diff --git a/media-libs/harfbuzz/harfbuzz-1.8.2.ebuild b/media-libs/harfbuzz/harfbuzz-1.8.2.ebuild
27 new file mode 100644
28 index 00000000000..c723137a7e5
29 --- /dev/null
30 +++ b/media-libs/harfbuzz/harfbuzz-1.8.2.ebuild
31 @@ -0,0 +1,109 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
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.bz2"
49 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~x64-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 fontconfig +glib +graphite icu +introspection static-libs test +truetype"
56 +REQUIRED_USE="introspection? ( glib )"
57 +
58 +RDEPEND="
59 + cairo? ( x11-libs/cairo:= )
60 + fontconfig? ( media-libs/fontconfig:1.0[${MULTILIB_USEDEP}] )
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 + dev-util/gtk-doc-am
69 + virtual/pkgconfig
70 + test? ( ${PYTHON_DEPS} )
71 +"
72 +# eautoreconf requires gobject-introspection-common
73 +# ragel needed if regenerating *.hh files from *.rl
74 +if [[ ${PV} = 9999 ]] ; then
75 + DEPEND+="
76 + >=dev-libs/gobject-introspection-common-1.34
77 + dev-util/ragel
78 + "
79 +fi
80 +
81 +pkg_setup() {
82 + use test && python-any-r1_pkg_setup
83 + if ! use debug ; then
84 + append-cppflags -DHB_NDEBUG
85 + fi
86 +}
87 +
88 +src_prepare() {
89 + default
90 +
91 + xdg_environment_reset
92 +
93 + if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
94 + # on Darwin/Solaris we need to link with g++, like automake defaults
95 + # to, but overridden by upstream because on Linux this is not
96 + # necessary, bug #449126
97 + sed -i \
98 + -e 's/\<LINK\>/CXXLINK/' \
99 + src/Makefile.am || die
100 + sed -i \
101 + -e '/libharfbuzz_la_LINK = /s/\<LINK\>/CXXLINK/' \
102 + src/Makefile.in || die
103 + sed -i \
104 + -e '/AM_V_CCLD/s/\<LINK\>/CXXLINK/' \
105 + test/api/Makefile.in || die
106 + fi
107 +
108 + [[ ${PV} == 9999 ]] && eautoreconf
109 + elibtoolize # for Solaris
110 +
111 + # bug 618772
112 + append-cxxflags -std=c++14
113 +}
114 +
115 +multilib_src_configure() {
116 + # harfbuzz-gobject only used for instrospection, bug #535852
117 + local myeconfargs=(
118 + --without-coretext
119 + --without-uniscribe
120 + $(use_enable static-libs static)
121 + $(multilib_native_use_with cairo)
122 + $(use_with fontconfig)
123 + $(use_with glib)
124 + $(use_with introspection gobject)
125 + $(use_with graphite graphite2)
126 + $(use_with icu)
127 + $(multilib_native_use_enable introspection)
128 + $(use_with truetype freetype)
129 + )
130 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
131 +
132 + if multilib_is_native_abi; then
133 + ln -s "${S}"/docs/html docs/html || die
134 + fi
135 +}
136 +
137 +multilib_src_install_all() {
138 + einstalldocs
139 + find "${ED}" -name "*.la" -delete || die
140 +}