Gentoo Archives: gentoo-commits

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