1 |
commit: d5f4321a3d5c70767e5bcf795a3a6293ac9cec35 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 06:42:02 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 08:30:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5f4321a |
7 |
|
8 |
media-libs/harfbuzz: Bump to version 2.8.1 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
media-libs/harfbuzz/Manifest | 1 + |
13 |
media-libs/harfbuzz/harfbuzz-2.8.1.ebuild | 110 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 111 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest |
17 |
index 75b1a55f86a..befa9791e95 100644 |
18 |
--- a/media-libs/harfbuzz/Manifest |
19 |
+++ b/media-libs/harfbuzz/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST harfbuzz-2.7.4.tar.gz 16703694 BLAKE2B 9932c039bb27ee53179e500c80ae8bd24d4cb77d4fcd01c10b8b5f0fd55de6af3c265196aa80653835f464c5431f89a870a7112eaf2c715f05e1e084011fa240 SHA512 5b412e0f6d1c9142a0ef2713826cb8d6ebf348c5b64054a0676d3ce084bcff1de375dadf90e87dbbf6d0ec8e4a99339cb64b514d5464efb7e27037551e494099 |
22 |
DIST harfbuzz-2.8.0.tar.gz 17000989 BLAKE2B a2b29bccf394ad8836fb534af42aaa193addc02745ffe8a82294e571483b2eb1f7ece300dbae60a0c1b9e70235109e764ded16518ab2b17e4d3d319b43404faa SHA512 736e6829fd470d1647df2c7116b4e9e6186676bc33140b3913130a9f1818f7bef2415958cab8c6bf9c5b660f43e4924d3ca220970a5c48c0c1525f601e26fd48 |
23 |
+DIST harfbuzz-2.8.1.tar.gz 17939717 BLAKE2B 4e6eeb0beb45e88386d994eb219479a2ed68bd1b78af3becb4ef1c89152e21924319b415e194f57c7aa4acf8031ab4ae35725b873f36b6f816aaa33a7bbb86d9 SHA512 16e43b9182d3ebd2394c2c0e0df815ca9e715d55dc7e46de4eafcde49ddf59cccae69a5340e05c8aa2ee6bc2ba46d1cffae8252d1b2a004ffe9d70c62628cf73 |
24 |
|
25 |
diff --git a/media-libs/harfbuzz/harfbuzz-2.8.1.ebuild b/media-libs/harfbuzz/harfbuzz-2.8.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..dd5ebd99dc1 |
28 |
--- /dev/null |
29 |
+++ b/media-libs/harfbuzz/harfbuzz-2.8.1.ebuild |
30 |
@@ -0,0 +1,110 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+ |
38 |
+inherit flag-o-matic meson multilib-minimal python-any-r1 xdg-utils |
39 |
+ |
40 |
+DESCRIPTION="An OpenType text shaping engine" |
41 |
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/HarfBuzz" |
42 |
+ |
43 |
+if [[ ${PV} = 9999 ]] ; then |
44 |
+ EGIT_REPO_URI="https://github.com/harfbuzz/harfbuzz.git" |
45 |
+ inherit git-r3 |
46 |
+else |
47 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
+fi |
50 |
+ |
51 |
+LICENSE="Old-MIT ISC icu" |
52 |
+SLOT="0/0.9.18" # 0.9.18 introduced the harfbuzz-icu split; bug #472416 |
53 |
+ |
54 |
+IUSE="+cairo debug doc +glib +graphite icu +introspection static-libs test +truetype" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+REQUIRED_USE="introspection? ( glib )" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ cairo? ( x11-libs/cairo:= ) |
60 |
+ glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] ) |
61 |
+ graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] ) |
62 |
+ icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] ) |
63 |
+ introspection? ( >=dev-libs/gobject-introspection-1.34:= ) |
64 |
+ truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] ) |
65 |
+" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ >=dev-libs/gobject-introspection-common-1.34 |
68 |
+" |
69 |
+BDEPEND=" |
70 |
+ ${PYTHON_DEPS} |
71 |
+ virtual/pkgconfig |
72 |
+ doc? ( dev-util/gtk-doc ) |
73 |
+ introspection? ( dev-util/glib-utils ) |
74 |
+" |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ 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 |
+ sed -i \ |
89 |
+ -e 's:tests/macos.tests::' \ |
90 |
+ test/shaping/data/in-house/Makefile.sources \ |
91 |
+ || die # bug 726120 |
92 |
+ |
93 |
+ # bug 618772 |
94 |
+ append-cxxflags -std=c++14 |
95 |
+ |
96 |
+ # bug 762415 |
97 |
+ local pyscript |
98 |
+ for pyscript in $(find -type f -name "*.py") ; do |
99 |
+ python_fix_shebang -q "${pyscript}" |
100 |
+ done |
101 |
+} |
102 |
+ |
103 |
+meson_multilib_native_feature() { |
104 |
+ if multilib_is_native_abi && use "$1" ; then |
105 |
+ echo "enabled" |
106 |
+ else |
107 |
+ echo "disabled" |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+multilib_src_configure() { |
112 |
+ # harfbuzz-gobject only used for instrospection, bug #535852 |
113 |
+ local emesonargs=( |
114 |
+ -Dcairo="$(meson_multilib_native_feature cairo)" |
115 |
+ -Dcoretext="disabled" |
116 |
+ -Ddocs="$(meson_multilib_native_feature doc)" |
117 |
+ -Dfontconfig="disabled" #609300 |
118 |
+ -Dintrospection="$(meson_multilib_native_feature introspection)" |
119 |
+ -Dstatic="$(usex static-libs true false)" |
120 |
+ $(meson_feature glib) |
121 |
+ $(meson_feature graphite) |
122 |
+ $(meson_feature icu) |
123 |
+ $(meson_feature introspection gobject) |
124 |
+ $(meson_feature test tests) |
125 |
+ $(meson_feature truetype freetype) |
126 |
+ ) |
127 |
+ meson_src_configure |
128 |
+} |
129 |
+ |
130 |
+multilib_src_compile() { |
131 |
+ meson_src_compile |
132 |
+} |
133 |
+ |
134 |
+multilib_src_install() { |
135 |
+ meson_src_install |
136 |
+} |
137 |
+ |
138 |
+multilib_src_install_all() { |
139 |
+ einstalldocs |
140 |
+} |