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: Thu, 20 Jul 2017 12:06:50
Message-Id: 1500552399.1b8f827cd9dff3820aecef64037a792d4c84717c.polynomial-c@gentoo
1 commit: 1b8f827cd9dff3820aecef64037a792d4c84717c
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 20 12:05:47 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 20 12:06:39 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b8f827c
7
8 media-libs/harfbuzz: Bump to version 1.4.7
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 media-libs/harfbuzz/Manifest | 1 +
13 media-libs/harfbuzz/harfbuzz-1.4.7.ebuild | 104 ++++++++++++++++++++++++++++++
14 2 files changed, 105 insertions(+)
15
16 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
17 index ee6a89b2438..7b0dc484ebf 100644
18 --- a/media-libs/harfbuzz/Manifest
19 +++ b/media-libs/harfbuzz/Manifest
20 @@ -1,2 +1,3 @@
21 DIST harfbuzz-1.4.5.tar.bz2 1474461 SHA256 d0e05438165884f21658154c709075feaf98c93ee5c694b951533ac425a9a711 SHA512 dd505ef950ef1d702a820987d8e93097e4c4fd9f725d18e69dd756ea21d4d5624eb2edfc8563f89947e3913bf5efa1834092e06ea02821744b0b588ce2ceb00e WHIRLPOOL a81252744980fb53816df7ce7ed810e0202551976a90493da4e382dc19947bd715d83fcdbc31f39312d9e91b53443667faabe178ad59edb5d06df2ed1569ce06
22 DIST harfbuzz-1.4.6.tar.bz2 1475086 SHA256 21a78b81cd20cbffdb04b59ac7edfb410e42141869f637ae1d6778e74928d293 SHA512 aade3902adadf3a8339ba1d05279e639da7cb53981adc64e2a2d32a5d49335a6a9782a62cdf80beca569ec8a639792bf0368c0b6ecad08f35bc85878678aa096 WHIRLPOOL 0ac9d9856f1ff145eaf993a01834198b5b7a07666b7cf995d60c10ee36715cf0055c42b9b0484091a6c89dfa561f674c0ec721d35ed382548d06011b30ee7877
23 +DIST harfbuzz-1.4.7.tar.bz2 1592693 SHA256 b85f6627425d54f32118308e053b939c63a388de9bf455b3830f68cad406bc6d SHA512 18fcd50c72ee4e9409ebb396b05508b8e03d2c8be47905d0d6e40b68c0978dbba71894f9bfb6fed834ce5a95e8dadd83db307a8ff9dafc0905cef519173e7eb4 WHIRLPOOL 827898f6e3d764dd3fb2b0cf9250c1a13035ed4ca0b39070044e990a38167491b45c32aa5b0cceafc140655d675fa6763d2e1c41fe19dbbaf835a279131535f6
24
25 diff --git a/media-libs/harfbuzz/harfbuzz-1.4.7.ebuild b/media-libs/harfbuzz/harfbuzz-1.4.7.ebuild
26 new file mode 100644
27 index 00000000000..da388e5fba7
28 --- /dev/null
29 +++ b/media-libs/harfbuzz/harfbuzz-1.4.7.ebuild
30 @@ -0,0 +1,104 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +EGIT_REPO_URI="git://anongit.freedesktop.org/harfbuzz"
37 +[[ ${PV} == 9999 ]] && inherit git-r3 autotools
38 +
39 +PYTHON_COMPAT=( python2_7 )
40 +
41 +inherit eutils flag-o-matic libtool multilib-minimal python-any-r1 xdg-utils
42 +
43 +DESCRIPTION="An OpenType text shaping engine"
44 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz"
45 +[[ ${PV} == 9999 ]] || SRC_URI="https://www.freedesktop.org/software/${PN}/release/${P}.tar.bz2"
46 +
47 +LICENSE="Old-MIT ISC icu"
48 +SLOT="0/0.9.18" # 0.9.18 introduced the harfbuzz-icu split; bug #472416
49 +[[ ${PV} == 9999 ]] || \
50 +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"
51 +
52 +IUSE="+cairo debug fontconfig +glib +graphite icu +introspection static-libs test +truetype"
53 +REQUIRED_USE="introspection? ( glib )"
54 +
55 +RDEPEND="
56 + cairo? ( x11-libs/cairo:= )
57 + fontconfig? ( media-libs/fontconfig:1.0[${MULTILIB_USEDEP}] )
58 + glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
59 + graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
60 + icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
61 + introspection? ( >=dev-libs/gobject-introspection-1.34:= )
62 + truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
63 +"
64 +DEPEND="${RDEPEND}
65 + dev-util/gtk-doc-am
66 + virtual/pkgconfig
67 + test? ( ${PYTHON_DEPS} )
68 +"
69 +# eautoreconf requires gobject-introspection-common
70 +# ragel needed if regenerating *.hh files from *.rl
71 +[[ ${PV} = 9999 ]] && DEPEND="${DEPEND}
72 + >=dev-libs/gobject-introspection-common-1.34
73 + dev-util/ragel
74 +"
75 +
76 +pkg_setup() {
77 + use test && python-any-r1_pkg_setup
78 + if ! use debug ; then
79 + append-cppflags -DHB_NDEBUG
80 + fi
81 +}
82 +
83 +src_prepare() {
84 + default
85 +
86 + xdg_environment_reset
87 +
88 + if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
89 + # on Darwin/Solaris we need to link with g++, like automake defaults
90 + # to, but overridden by upstream because on Linux this is not
91 + # necessary, bug #449126
92 + sed -i \
93 + -e 's/\<LINK\>/CXXLINK/' \
94 + src/Makefile.am || die
95 + sed -i \
96 + -e '/libharfbuzz_la_LINK = /s/\<LINK\>/CXXLINK/' \
97 + src/Makefile.in || die
98 + sed -i \
99 + -e '/AM_V_CCLD/s/\<LINK\>/CXXLINK/' \
100 + test/api/Makefile.in || die
101 + fi
102 +
103 + [[ ${PV} == 9999 ]] && eautoreconf
104 + elibtoolize # for Solaris
105 +
106 + # failing test, https://bugs.freedesktop.org/show_bug.cgi?id=89190
107 + sed -e 's#tests/arabic-fallback-shaping.tests##' -i test/shaping/Makefile.in || die "sed failed"
108 +}
109 +
110 +multilib_src_configure() {
111 + ECONF_SOURCE="${S}" \
112 + # harfbuzz-gobject only used for instrospection, bug #535852
113 + econf \
114 + --without-coretext \
115 + --without-uniscribe \
116 + $(use_enable static-libs static) \
117 + $(multilib_native_use_with cairo) \
118 + $(use_with fontconfig) \
119 + $(use_with glib) \
120 + $(use_with introspection gobject) \
121 + $(use_with graphite graphite2) \
122 + $(use_with icu) \
123 + $(multilib_native_use_enable introspection) \
124 + $(use_with truetype freetype)
125 +
126 + if multilib_is_native_abi; then
127 + ln -s "${S}"/docs/html docs/html || die
128 + fi
129 +}
130 +
131 +multilib_src_install_all() {
132 + einstalldocs
133 + prune_libtool_files --modules
134 +}