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, 18 Jul 2018 07:19:35
Message-Id: 1531897713.0eae00fa665273381016576ad8b427d4d22edebe.polynomial-c@gentoo
1 commit: 0eae00fa665273381016576ad8b427d4d22edebe
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 18 07:08:33 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 18 07:08:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0eae00fa
7
8 media-libs/harfbuzz: Bump to version 1.8.4
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 media-libs/harfbuzz/Manifest | 1 +
13 media-libs/harfbuzz/harfbuzz-1.8.4.ebuild | 109 ++++++++++++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
17 index 7cda4ec101d..925475e0922 100644
18 --- a/media-libs/harfbuzz/Manifest
19 +++ b/media-libs/harfbuzz/Manifest
20 @@ -2,3 +2,4 @@ DIST harfbuzz-1.7.6.tar.bz2 2586909 BLAKE2B 0ae5902b9fe00a4f05a5dc407d6981959204
21 DIST harfbuzz-1.8.1.tar.bz2 3804867 BLAKE2B 9687b35bbdb74a42c28764a7b026a46ff90640b84bc40702bdbfadc79bbe3c393de837d4cdbbb8798f28aa8c75687c4f07e1c79e98bf9bd506403d89b4baf6a5 SHA512 7ef27232b294883b0c7404c8412837acfba95f12677f226d764f87e22cd169fe037e7bf13a9309e78c9aa905225fb332b3a143a01b13308b05fcccaeddb0c931
22 DIST harfbuzz-1.8.2.tar.bz2 3820498 BLAKE2B 7ed1509a7b54571e14d72fa097d19a56e27b3c0020243e51315ff783910319486e6c1af7cec88060c17ccf5788ff1b09f26ee4dbc879b009c983ede767e00316 SHA512 c88a3e9e55866608647318a1af7c5d848863cd894d635583b8a2d2a7a02eea875b7a5a4f0f38555d80f2e81628743e40710f5e6f9251bf629f1d15ac51103e5a
23 DIST harfbuzz-1.8.3.tar.bz2 3828043 BLAKE2B 038a714480f10b05b2b31ba46667ce563598b43d122f64ab4adc6f267b2b99ea23ba92a1ae0df173be13f29da8960d55a5c5fdee25aa9fc4541a109c5e76946d SHA512 d3ec8f31ff51315fb35f6b5c69b3fbf29e1dff710fb11158801990fbeb99be5fce691f3c06df1c295a08bfb6c14021c511993b0d22ca96e76d8212ddfda198b6
24 +DIST harfbuzz-1.8.4.tar.bz2 3829479 BLAKE2B df4116945a00130b83198044665c4f0f0da497cf7d198a39632bbbe6b95327f8189dc7486262eb4d03b181c0151d89bea41223e092613c2f8fec9566eb6f9434 SHA512 8ec72b065b3f5d227b0af1486ab8019414bbdfaafce2f99d5a8bbf7d37a2709cadb545efcc46c5a5c44ce405966f01d8f3e8607f31907f8ed7ebe10150c9dcaf
25
26 diff --git a/media-libs/harfbuzz/harfbuzz-1.8.4.ebuild b/media-libs/harfbuzz/harfbuzz-1.8.4.ebuild
27 new file mode 100644
28 index 00000000000..c723137a7e5
29 --- /dev/null
30 +++ b/media-libs/harfbuzz/harfbuzz-1.8.4.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 +}