Gentoo Archives: gentoo-commits

From: Ryan Fox <flewkey@××××.party>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/fcft/
Date: Thu, 24 Jun 2021 07:07:44
Message-Id: 1624518413.15d82654daf12e54a2fbdae4adc95bb73d080b38.flewkey@gentoo
1 commit: 15d82654daf12e54a2fbdae4adc95bb73d080b38
2 Author: Ryan Fox <flewkey <AT> 2a03 <DOT> party>
3 AuthorDate: Thu Jun 24 07:06:53 2021 +0000
4 Commit: Ryan Fox <flewkey <AT> 2a03 <DOT> party>
5 CommitDate: Thu Jun 24 07:06:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=15d82654
7
8 media-libs/fcft: Bump to 2.4.1
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Ryan Fox <flewkey <AT> 2a03.party>
12
13 media-libs/fcft/Manifest | 1 +
14 media-libs/fcft/fcft-2.4.1.ebuild | 77 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 78 insertions(+)
16
17 diff --git a/media-libs/fcft/Manifest b/media-libs/fcft/Manifest
18 index bcfffde7d..f6bfbeb44 100644
19 --- a/media-libs/fcft/Manifest
20 +++ b/media-libs/fcft/Manifest
21 @@ -1,2 +1,3 @@
22 DIST fcft-2.3.3.tar.gz 313168 BLAKE2B b3dbc3af511e8a8007a17400fe6880a08a62ca0cb69795438ab7c6a86f856b25a3bd26cdef8031f1c8d66f4527d191a72ce87852f001e05b8f37285dea4befb5 SHA512 91f3c1292889c2fd1cdce439e0168a37a932d3a05ea78fff93ce69ea7b1adc33424e67a0b2c36931d26128e1169e6f784f16445475c94690dedf608f92278009
23 DIST fcft-2.4.0.tar.gz 323605 BLAKE2B 1926d26b633cf768257340f093de734513678f3b5e62cb2fa89fd08496d06b36de89fe797a5328c35a5b467d3ea48214d5a3e76660d2effaea0f28fddbc7bd48 SHA512 0904344cf69875e5ed2b0543911cfcbd7fddafcc19ef611ff6abb30004515eb61a69f5add25f9576132dcd60bc0c2cc7f6461fade9124a32c4026154e56d8e64
24 +DIST fcft-2.4.1.tar.gz 323792 BLAKE2B d33c087ec4bf6f0b2bba6da0110abe50de5f232beac970e657416e73f1d02fd54d342686d954e67eca86e5f676d793d94edae52f64a85ea62e662a8552289ae4 SHA512 2cce6db53010262eec36a8ef8ba146e296513b89d6a9358868c49acce1db75e058c66ef43b66433d9644460d85c6cbcdb8d755f14ca3b5a58912cd8e0e83f120
25
26 diff --git a/media-libs/fcft/fcft-2.4.1.ebuild b/media-libs/fcft/fcft-2.4.1.ebuild
27 new file mode 100644
28 index 000000000..979d903ad
29 --- /dev/null
30 +++ b/media-libs/fcft/fcft-2.4.1.ebuild
31 @@ -0,0 +1,77 @@
32 +# Copyright 2020-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit meson
38 +
39 +if [[ ${PV} != *9999* ]]; then
40 + SRC_URI="https://codeberg.org/dnkl/fcft/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 + KEYWORDS="~amd64"
42 + S="${WORKDIR}/${PN}"
43 +else
44 + inherit git-r3
45 + EGIT_REPO_URI="https://codeberg.org/dnkl/fcft.git"
46 +fi
47 +
48 +DESCRIPTION="A simple library for font loading and glyph rasterization"
49 +HOMEPAGE="https://codeberg.org/dnkl/fcft"
50 +LICENSE="MIT"
51 +SLOT="0/3"
52 +IUSE="examples +text-shaping test"
53 +RESTRICT="!test? ( test )"
54 +
55 +DEPEND="
56 + dev-libs/tllist
57 + media-libs/fontconfig
58 + media-libs/freetype
59 + x11-libs/pixman
60 + text-shaping? ( media-libs/harfbuzz )
61 + examples? (
62 + dev-libs/libutf8proc:=
63 + dev-libs/wayland
64 + )
65 +"
66 +DEPEND="
67 + ${RDEPEND}
68 + test? (
69 + text-shaping? ( media-fonts/noto-emoji )
70 + )
71 +"
72 +BDEPEND="
73 + app-text/scdoc
74 + app-i18n/unicode-data
75 + examples? (
76 + dev-libs/wayland-protocols
77 + dev-util/wayland-scanner
78 + )
79 +"
80 +
81 +src_prepare() {
82 + default
83 +
84 + rm -r "unicode" || die "Failed removing vendored unicode-data"
85 +
86 + sed -i "s;unicode/UnicodeData.txt;${EPREFIX}/usr/share/unicode-data/UnicodeData.txt;" \
87 + meson.build || die "Failed changing UnicodeData.txt to system's copy"
88 +}
89 +
90 +src_configure() {
91 + local emesonargs=(
92 + $(meson_feature text-shaping)
93 + $(meson_use examples)
94 + "-Dwerror=false"
95 + )
96 +
97 + use test && emesonargs+=(
98 + $(meson_use text-shaping test-text-shaping)
99 + )
100 +
101 + meson_src_configure
102 +}
103 +
104 +src_install() {
105 + meson_src_install
106 + use examples && newbin "${BUILD_DIR}/example/example" fcft-example
107 + mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}"
108 +}