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: Fri, 30 Nov 2018 08:00:29
Message-Id: 1543564029.234e29c1acf0035d28334d10f64bec635eb9dbbd.polynomial-c@gentoo
1 commit: 234e29c1acf0035d28334d10f64bec635eb9dbbd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 30 07:47:09 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 30 07:47:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=234e29c1
7
8 media-libs/harfbuzz: Bump to version 2.2.0
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-libs/harfbuzz/Manifest | 1 +
14 media-libs/harfbuzz/harfbuzz-2.2.0.ebuild | 111 ++++++++++++++++++++++++++++++
15 2 files changed, 112 insertions(+)
16
17 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
18 index 49432748997..72a783752fb 100644
19 --- a/media-libs/harfbuzz/Manifest
20 +++ b/media-libs/harfbuzz/Manifest
21 @@ -4,3 +4,4 @@ DIST harfbuzz-1.9.0.tar.bz2 3870586 BLAKE2B 53aa631145662fc0fa1bb80e6b438de7d68d
22 DIST harfbuzz-2.0.2.tar.bz2 4322171 BLAKE2B c844a623de5c2be7b6fb4a2cf0d38e689a6e639e25ece971646963acbdb10be05b82c4faea33688b1a3edfda4c3fe45b97e5ef87d7ca6d9776268b43ef23a7ee SHA512 4cb605c47617dd06d4a2e8ae01e44969f5addacee47ef5212442645c6229298d5080f85b0aca6a2fbedfd2007c679acad6a4b3e9389df1b3a6232bf6ef961577
23 DIST harfbuzz-2.1.1.tar.bz2 4386396 BLAKE2B 9717a15fccc557b795cfd2462358b6659c57bd052976b2660b61d76a858b3df12b00ee8d824c30d4675261e2b30fb79ae3c14c98bfad3d5cfcc67fcd0b1ef44e SHA512 c3fc46eaeb8c02594e2430f853b6eebb762072638e3113e27ff9b5caefce2c06534e8056d57f35d87df6dbb1027cbc0c1a08f914dec7c6a715c3f0abc0a18933
24 DIST harfbuzz-2.1.3.tar.bz2 4429069 BLAKE2B d00b5e4f83e9e4b8032cd4f0a8c00d3f88176118458026de69a68f1932bf437358dcd0ecea89f40a4f610816b1709f3b0784c9a619141fa459297754d934f42d SHA512 9bf5f7b857424037a3b3ea5c286e6ba8440c265fa663cf6b6c22cc08d36d84badfed8bdc46816ad982fc810677ebecccdb669ea98a021207e1858c8c355dbf19
25 +DIST harfbuzz-2.2.0.tar.bz2 4506619 BLAKE2B e2ff32f4490e408a7f67b4e1dd12f266e31a8b58f4960643be45ac9574ce20da8f26e0d7261a9710114621b7f6928df030fa30c3a7672ab5e2b9d1b5c0369d2d SHA512 5e8f35c0d7634afc6f623a91d56bfde46b2a1030d439e5dec196001d49a58e409a1bf66c7f9c15a04e030dab4fe2fe2c928061839b1e985459d4f8379b8a0818
26
27 diff --git a/media-libs/harfbuzz/harfbuzz-2.2.0.ebuild b/media-libs/harfbuzz/harfbuzz-2.2.0.ebuild
28 new file mode 100644
29 index 00000000000..85491d783cd
30 --- /dev/null
31 +++ b/media-libs/harfbuzz/harfbuzz-2.2.0.ebuild
32 @@ -0,0 +1,111 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python2_7 )
39 +
40 +inherit flag-o-matic libtool multilib-minimal python-any-r1 xdg-utils
41 +
42 +DESCRIPTION="An OpenType text shaping engine"
43 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz"
44 +
45 +if [[ ${PV} = 9999 ]] ; then
46 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/harfbuzz.git"
47 + inherit git-r3 autotools
48 +else
49 + SRC_URI="https://www.freedesktop.org/software/${PN}/release/${P}.tar.bz2"
50 + 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"
51 +fi
52 +
53 +LICENSE="Old-MIT ISC icu"
54 +SLOT="0/0.9.18" # 0.9.18 introduced the harfbuzz-icu split; bug #472416
55 +
56 +IUSE="+cairo debug fontconfig +glib +graphite icu +introspection static-libs test +truetype"
57 +REQUIRED_USE="introspection? ( glib )"
58 +
59 +RDEPEND="
60 + cairo? ( x11-libs/cairo:= )
61 + fontconfig? ( media-libs/fontconfig:1.0[${MULTILIB_USEDEP}] )
62 + glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
63 + graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
64 + icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
65 + introspection? ( >=dev-libs/gobject-introspection-1.34:= )
66 + truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
67 +"
68 +DEPEND="${RDEPEND}
69 + dev-util/gtk-doc-am
70 + test? ( ${PYTHON_DEPS} )
71 +"
72 +BDEPEND="
73 + virtual/pkgconfig
74 +"
75 +# eautoreconf requires gobject-introspection-common
76 +# ragel needed if regenerating *.hh files from *.rl
77 +if [[ ${PV} = 9999 ]] ; then
78 + DEPEND+="
79 + >=dev-libs/gobject-introspection-common-1.34
80 + dev-util/ragel
81 + "
82 +fi
83 +
84 +pkg_setup() {
85 + use test && python-any-r1_pkg_setup
86 + if ! use debug ; then
87 + append-cppflags -DHB_NDEBUG
88 + fi
89 +}
90 +
91 +src_prepare() {
92 + default
93 +
94 + xdg_environment_reset
95 +
96 + if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
97 + # on Darwin/Solaris we need to link with g++, like automake defaults
98 + # to, but overridden by upstream because on Linux this is not
99 + # necessary, bug #449126
100 + sed -i \
101 + -e 's/\<LINK\>/CXXLINK/' \
102 + src/Makefile.am || die
103 + sed -i \
104 + -e '/libharfbuzz_la_LINK = /s/\<LINK\>/CXXLINK/' \
105 + src/Makefile.in || die
106 + sed -i \
107 + -e '/AM_V_CCLD/s/\<LINK\>/CXXLINK/' \
108 + test/api/Makefile.in || die
109 + fi
110 +
111 + [[ ${PV} == 9999 ]] && eautoreconf
112 + elibtoolize # for Solaris
113 +
114 + # bug 618772
115 + append-cxxflags -std=c++14
116 +}
117 +
118 +multilib_src_configure() {
119 + # harfbuzz-gobject only used for instrospection, bug #535852
120 + local myeconfargs=(
121 + --without-coretext
122 + --without-uniscribe
123 + $(use_enable static-libs static)
124 + $(multilib_native_use_with cairo)
125 + $(use_with fontconfig)
126 + $(use_with glib)
127 + $(use_with introspection gobject)
128 + $(use_with graphite graphite2)
129 + $(use_with icu)
130 + $(multilib_native_use_enable introspection)
131 + $(use_with truetype freetype)
132 + )
133 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
134 +
135 + if multilib_is_native_abi; then
136 + ln -s "${S}"/docs/html docs/html || die
137 + fi
138 +}
139 +
140 +multilib_src_install_all() {
141 + einstalldocs
142 + find "${ED}" -name "*.la" -delete || die
143 +}