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: Mon, 10 Sep 2018 14:03:06
Message-Id: 1536588168.fcbca76983378b632ba19d61f3b2ae59bbaf61fd.polynomial-c@gentoo
1 commit: fcbca76983378b632ba19d61f3b2ae59bbaf61fd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 10 13:46:25 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 14:02:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcbca769
7
8 media-libs/harfbuzz: Bump to version 1.9.0
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 media-libs/harfbuzz/Manifest | 1 +
13 media-libs/harfbuzz/harfbuzz-1.9.0.ebuild | 109 ++++++++++++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
17 index 8bd6dc08538..8aa36edcd42 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.7.tar.bz2 3863545 BLAKE2B fac6a6b198fc8cc4d92ae128f9064a3c5ae71ba55891e80cbedd51e91a7df5bd1190f9d51051613a704a3c005b0a8eb850b387ca15b5ff09321ad9df23c70fab SHA512 8654b148fa6fcc34a0e2a981493901a5d93c46934861655c070a228baf136e5ed231cd8a5268948b6ff12ab551870f37d7270d9be649d35d515130540d0eeefa
23 DIST harfbuzz-1.8.8.tar.bz2 3862626 BLAKE2B c5b2b89f6fbefa004927c0ed5dc314d3f8fd4ce8c58918f4020a91247d9e781ff1ffb4ba05b138b4b1aebbdcad2041d749301143523a808f61f013e2efb5efdd SHA512 eb96cd710571a96473b20bc9a01dadf2a3c11224497e52c63368e8edec64a8eb7085dd847c78111b798a1e8a6a950f0a04c930209822aabf13cf86d7a53b1f79
24 +DIST harfbuzz-1.9.0.tar.bz2 3870586 BLAKE2B 53aa631145662fc0fa1bb80e6b438de7d68d5f8f55d163e62a7c6153b250ab2e1c4de327194ba566682a4033e632f0ebc2915250760f721a2a2f2b97e9e6c844 SHA512 fed98e4e67a518a7bee4f3222f8e595bfa529cab12d42707577c639b7bf9a6d771646e63859bd70850bbf93300780e3b0538483e6b73332721e6c2ce5a17a0c2
25
26 diff --git a/media-libs/harfbuzz/harfbuzz-1.9.0.ebuild b/media-libs/harfbuzz/harfbuzz-1.9.0.ebuild
27 new file mode 100644
28 index 00000000000..243f2a80c86
29 --- /dev/null
30 +++ b/media-libs/harfbuzz/harfbuzz-1.9.0.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 ~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 +}