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, 31 Jan 2018 09:13:54
Message-Id: 1517388249.8edb0c637a9fe1f822a785120a9a9e69338e8ccb.polynomial-c@gentoo
1 commit: 8edb0c637a9fe1f822a785120a9a9e69338e8ccb
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 31 08:40:37 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 31 08:44:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8edb0c63
7
8 media-libs/harfbuzz: Bump to version 1.7.5
9
10 Package-Manager: Portage-2.3.21, Repoman-2.3.6
11
12 media-libs/harfbuzz/Manifest | 1 +
13 media-libs/harfbuzz/harfbuzz-1.7.5.ebuild | 109 ++++++++++++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
17 index e898f764b93..a935b5b786b 100644
18 --- a/media-libs/harfbuzz/Manifest
19 +++ b/media-libs/harfbuzz/Manifest
20 @@ -2,3 +2,4 @@ DIST harfbuzz-1.4.5.tar.bz2 1474461 BLAKE2B 8f2fb5c20c92afe3fb344bf4d4024090d68a
21 DIST harfbuzz-1.4.6.tar.bz2 1475086 BLAKE2B 8fb082016bc50e8ae2ab9244ae2ac0b01dc5967ab14ec6aeba52a66b4926327f6c0cb7bce0020cd8183c07c57a41de1255a5782218fda87290cbad2c29d08860 SHA512 aade3902adadf3a8339ba1d05279e639da7cb53981adc64e2a2d32a5d49335a6a9782a62cdf80beca569ec8a639792bf0368c0b6ecad08f35bc85878678aa096
22 DIST harfbuzz-1.7.2.tar.bz2 1708416 BLAKE2B d182bdfa163e07ff41bf36e30373470bf0dded24b1c748f1114f09b3aec628f41111c4b3d6830c3f0d46206d5468816e3efb495a023747825adcdf2a9b516e39 SHA512 a895c96a1c4096622c797a5a877e80529ce63e3bd3adea9f68994b32e13e7b3be14cdfe824d338f48b12f49de537f7d0f6db14f422ea896697667c672daeb1cc
23 DIST harfbuzz-1.7.4.tar.bz2 1718260 BLAKE2B 9a1ded92df7682b161a3db8ee9de80d0a2bc7d6b28f3318bad37c9efe45d7b13b8e268346dc814d7875e739d22eb264c0e7e75b24c931be416e8dca4b7f6e9d9 SHA512 d5343822f2e7ed33b34f0ecb470d219be161ebb4d2349833a8fcd909cec18a97aed6ca51a97fd73407d5d70ebfc61cafb71bd13ce96c9a278c720681a04f47df
24 +DIST harfbuzz-1.7.5.tar.bz2 2350389 BLAKE2B 735fc36dda153e50bd83ae5e64a18d872506f07dbecf04ca85fb96b2b3c4bba46245c2326c1414811ba5d312cc21ac21dd7efe595665f134812b719c24ee9e49 SHA512 c2c13fc97bb74f0f13092b07804f7087e948bce49793f48b62c2c24a5792523acc0002840bebf21829172bb2e7c3df9f9625250aec6c786a55489667dd04d6a0
25
26 diff --git a/media-libs/harfbuzz/harfbuzz-1.7.5.ebuild b/media-libs/harfbuzz/harfbuzz-1.7.5.ebuild
27 new file mode 100644
28 index 00000000000..3ba2f34c80b
29 --- /dev/null
30 +++ b/media-libs/harfbuzz/harfbuzz-1.7.5.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 ltprune 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 + # failing test, https://bugs.freedesktop.org/show_bug.cgi?id=89190
112 + sed -e 's#tests/arabic-fallback-shaping.tests##' -i test/shaping/Makefile.in || die "sed failed"
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 + prune_libtool_files --modules
140 +}