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, 31 Jan 2019 20:22:52
Message-Id: 1548966164.4c8670bf15bda0e3adb69b8eca4cd3b0769e15c7.polynomial-c@gentoo
1 commit: 4c8670bf15bda0e3adb69b8eca4cd3b0769e15c7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 31 20:21:30 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 31 20:22:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c8670bf
7
8 media-libs/harfbuzz: Bump to version 2.3.1
9
10 Package-Manager: Portage-2.3.59, 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.3.1.ebuild | 110 ++++++++++++++++++++++++++++++
15 2 files changed, 111 insertions(+)
16
17 diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
18 index 69ad73c6bd4..935518c7608 100644
19 --- a/media-libs/harfbuzz/Manifest
20 +++ b/media-libs/harfbuzz/Manifest
21 @@ -2,3 +2,4 @@ DIST harfbuzz-2.0.2.tar.bz2 4322171 BLAKE2B c844a623de5c2be7b6fb4a2cf0d38e689a6e
22 DIST harfbuzz-2.1.3.tar.bz2 4429069 BLAKE2B d00b5e4f83e9e4b8032cd4f0a8c00d3f88176118458026de69a68f1932bf437358dcd0ecea89f40a4f610816b1709f3b0784c9a619141fa459297754d934f42d SHA512 9bf5f7b857424037a3b3ea5c286e6ba8440c265fa663cf6b6c22cc08d36d84badfed8bdc46816ad982fc810677ebecccdb669ea98a021207e1858c8c355dbf19
23 DIST harfbuzz-2.2.0.tar.bz2 4506619 BLAKE2B e2ff32f4490e408a7f67b4e1dd12f266e31a8b58f4960643be45ac9574ce20da8f26e0d7261a9710114621b7f6928df030fa30c3a7672ab5e2b9d1b5c0369d2d SHA512 5e8f35c0d7634afc6f623a91d56bfde46b2a1030d439e5dec196001d49a58e409a1bf66c7f9c15a04e030dab4fe2fe2c928061839b1e985459d4f8379b8a0818
24 DIST harfbuzz-2.3.0.tar.bz2 17909479 BLAKE2B 32ea08ac60ca3c6b91a41b17d857bcabfd6f13785b674ceaf7006cd0616e1799d1d5f390f5b8d37e2bb22ac5506f00a6fc5c9a6a5263c23760ffe0e0677fe44e SHA512 830c5b96384554fb6d2502713e9b2eff384dbe6aa3feb08830226944bcb07c8fb55237f389e1e6416d0942e3efba8b1ed54a49ff8c4762fec230f2404095e85a
25 +DIST harfbuzz-2.3.1.tar.bz2 17942960 BLAKE2B b1a29144b608463fa668bb66572c1530e90338ac1968b0747011637a91bed4030d77e8fa22e5a229374a0bc1976922e2e8de452e9017917f7c09ae94c3a52570 SHA512 78a8f05bfcc95cfe3fc0f1a595bdc7298c9c1456db6c7ef70914051fda43f37aaff15eac75aa6922eca82d2291baeb8385e02e6aacb44ca05b4873c311a662ac
26
27 diff --git a/media-libs/harfbuzz/harfbuzz-2.3.1.ebuild b/media-libs/harfbuzz/harfbuzz-2.3.1.ebuild
28 new file mode 100644
29 index 00000000000..08348f2ec48
30 --- /dev/null
31 +++ b/media-libs/harfbuzz/harfbuzz-2.3.1.ebuild
32 @@ -0,0 +1,110 @@
33 +# Copyright 1999-2019 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 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-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 +glib +graphite icu +introspection static-libs test +truetype"
57 +REQUIRED_USE="introspection? ( glib )"
58 +
59 +RDEPEND="
60 + cairo? ( x11-libs/cairo:= )
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 + test? ( ${PYTHON_DEPS} )
70 +"
71 +BDEPEND="
72 + virtual/pkgconfig
73 +"
74 +# eautoreconf requires gobject-introspection-common
75 +# ragel needed if regenerating *.hh files from *.rl
76 +if [[ ${PV} = 9999 ]] ; then
77 + DEPEND+="
78 + >=dev-libs/gobject-introspection-common-1.34
79 + dev-util/ragel
80 + "
81 +fi
82 +
83 +pkg_setup() {
84 + use test && python-any-r1_pkg_setup
85 + if ! use debug ; then
86 + append-cppflags -DHB_NDEBUG
87 + fi
88 +}
89 +
90 +src_prepare() {
91 + default
92 +
93 + xdg_environment_reset
94 +
95 + if [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] ; then
96 + # on Darwin/Solaris we need to link with g++, like automake defaults
97 + # to, but overridden by upstream because on Linux this is not
98 + # necessary, bug #449126
99 + sed -i \
100 + -e 's/\<LINK\>/CXXLINK/' \
101 + src/Makefile.am || die
102 + sed -i \
103 + -e '/libharfbuzz_la_LINK = /s/\<LINK\>/CXXLINK/' \
104 + src/Makefile.in || die
105 + sed -i \
106 + -e '/AM_V_CCLD/s/\<LINK\>/CXXLINK/' \
107 + test/api/Makefile.in || die
108 + fi
109 +
110 + [[ ${PV} == 9999 ]] && eautoreconf
111 + elibtoolize # for Solaris
112 +
113 + # bug 618772
114 + append-cxxflags -std=c++14
115 +}
116 +
117 +multilib_src_configure() {
118 + # harfbuzz-gobject only used for instrospection, bug #535852
119 + local myeconfargs=(
120 + --without-coretext
121 + --without-fontconfig #609300
122 + --without-uniscribe
123 + $(use_enable static-libs static)
124 + $(multilib_native_use_with cairo)
125 + $(use_with glib)
126 + $(use_with introspection gobject)
127 + $(use_with graphite graphite2)
128 + $(use_with icu)
129 + $(multilib_native_use_enable introspection)
130 + $(use_with truetype freetype)
131 + )
132 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
133 +
134 + if multilib_is_native_abi; then
135 + ln -s "${S}"/docs/html docs/html || die
136 + fi
137 +}
138 +
139 +multilib_src_install_all() {
140 + einstalldocs
141 + find "${ED}" -name "*.la" -delete || die
142 +}