Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/fcft/
Date: Sun, 06 Feb 2022 20:53:26
Message-Id: 1644180783.d67dad8c9c874292d99aae9cd13c3a49677add77.ionen@gentoo
1 commit: d67dad8c9c874292d99aae9cd13c3a49677add77
2 Author: Arsen Arsenović <arsen <AT> aarsen <DOT> me>
3 AuthorDate: Sun Feb 6 20:46:41 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 20:53:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d67dad8c
7
8 media-libs/fcft: bump to 3.0.1
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me>
12 Closes: https://github.com/gentoo/gentoo/pull/24099
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 media-libs/fcft/Manifest | 1 +
16 media-libs/fcft/fcft-3.0.1.ebuild | 90 +++++++++++++++++++++++++++++++++++++++
17 2 files changed, 91 insertions(+)
18
19 diff --git a/media-libs/fcft/Manifest b/media-libs/fcft/Manifest
20 index 698c8a5767e4..24f4c080f86f 100644
21 --- a/media-libs/fcft/Manifest
22 +++ b/media-libs/fcft/Manifest
23 @@ -1 +1,2 @@
24 DIST fcft-3.0.0.tar.gz 441458 BLAKE2B 9ff83691435953285f1b3f8b51dac7b17453a457eeb910f035e39c6fa3bb39098d3adbb7179f734261a4034e9ea8b034dd03a20ba0c364b7de2efe9b781dfdaa SHA512 fbf7ac7d777bdb530b90b79a0bd8b90d3f7ae8b099c2733304dbe89fbcc1a1a3493d1eac0478bcdee291d8c804da21461737fc3e34164637e86ff737023622b1
25 +DIST fcft-3.0.1.tar.gz 441493 BLAKE2B 79fe864edf04b21fe88fa167e3390836e5c7254710082312068ff4c39624508e086f4eed2ea5706b52421b2276a6f2d1f2211ff0b256112d989764e667c44fe2 SHA512 856bec504a253678a2962c0a7c5029e5fd3d26e305ca3fcae8d9df398bcc84a03e9d67522673d1f1bb0ec91606c0627d6ab4bf2780cbb5965a01c91e6f0aac89
26
27 diff --git a/media-libs/fcft/fcft-3.0.1.ebuild b/media-libs/fcft/fcft-3.0.1.ebuild
28 new file mode 100644
29 index 000000000000..27380210cb01
30 --- /dev/null
31 +++ b/media-libs/fcft/fcft-3.0.1.ebuild
32 @@ -0,0 +1,90 @@
33 +# Copyright 2020-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +inherit meson python-any-r1
40 +
41 +DESCRIPTION="Simple library for font loading and glyph rasterization"
42 +HOMEPAGE="https://codeberg.org/dnkl/fcft"
43 +SRC_URI="https://codeberg.org/dnkl/fcft/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +S="${WORKDIR}/${PN}"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE="examples +harfbuzz +libutf8proc test"
50 +REQUIRED_USE="
51 + libutf8proc? ( harfbuzz )
52 + examples? ( libutf8proc )
53 +"
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND="
57 + media-libs/fontconfig
58 + media-libs/freetype
59 + x11-libs/pixman
60 + examples? (
61 + dev-libs/libutf8proc:=
62 + dev-libs/wayland
63 + )
64 + harfbuzz? (
65 + media-libs/harfbuzz:=
66 + )
67 + libutf8proc? (
68 + dev-libs/libutf8proc:=
69 + )
70 +"
71 +DEPEND="
72 + ${RDEPEND}
73 + app-i18n/unicode-data
74 + dev-libs/tllist
75 + examples? (
76 + dev-libs/wayland-protocols
77 + )
78 + test? (
79 + dev-libs/check
80 + harfbuzz? ( media-fonts/noto-emoji )
81 + )
82 +"
83 +BDEPEND="
84 + ${PYTHON_DEPS}
85 + app-text/scdoc
86 + examples? (
87 + dev-util/wayland-scanner
88 + )
89 +"
90 +
91 +src_prepare() {
92 + default
93 +
94 + rm -r unicode || die "Failed removing vendored unicode-data"
95 +
96 + sed -i "s;unicode/UnicodeData.txt;${EPREFIX}/usr/share/unicode-data/UnicodeData.txt;" \
97 + meson.build || die "Failed changing UnicodeData.txt to system's copy"
98 + sed -i "s;unicode/emoji-data.txt;${EPREFIX}/usr/share/unicode-data/emoji/emoji-data.txt;" \
99 + meson.build || die "Failed changing emoji-data.txt to system's copy"
100 +}
101 +
102 +src_configure() {
103 + local emesonargs=(
104 + $(meson_feature harfbuzz grapheme-shaping)
105 + $(meson_feature libutf8proc run-shaping)
106 + $(meson_use examples)
107 + $(use test && meson_use harfbuzz test-text-shaping)
108 + -Ddocs=enabled
109 + -Dwerror=false
110 + )
111 +
112 + meson_src_configure
113 +}
114 +
115 +src_install() {
116 + local DOCS=( CHANGELOG.md README.md )
117 + meson_src_install
118 +
119 + rm -r "${ED}"/usr/share/doc/${PN} || die
120 +
121 + use examples && newbin "${BUILD_DIR}/example/example" fcft-example
122 +}