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: Tue, 20 Sep 2022 19:30:13
Message-Id: 1663702184.a857e6211613d536b161c07dc6ca4c9f11ed88de.sam@gentoo
1 commit: a857e6211613d536b161c07dc6ca4c9f11ed88de
2 Author: Arsen Arsenović <arsen <AT> aarsen <DOT> me>
3 AuthorDate: Tue Sep 20 17:24:41 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 20 19:29:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a857e621
7
8 media-libs/fcft: add 3.1.5
9
10 Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me>
11 Closes: https://github.com/gentoo/gentoo/pull/27369
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 media-libs/fcft/Manifest | 1 +
15 media-libs/fcft/fcft-3.1.5.ebuild | 94 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 95 insertions(+)
17
18 diff --git a/media-libs/fcft/Manifest b/media-libs/fcft/Manifest
19 index f940c1100522..ed5aa6143e33 100644
20 --- a/media-libs/fcft/Manifest
21 +++ b/media-libs/fcft/Manifest
22 @@ -1,2 +1,3 @@
23 DIST fcft-3.1.2.tar.gz 741659 BLAKE2B d4c3b9ef444771f255b7b19e9645d53558caed2022a59759418fe0b9961f74833da2b760c0c961ce5fbbf91f3e0291dd87590fe00ab300ee194a497accba392e SHA512 b3874819ef90a4f1d1975cae72b925c928bc9758629e63b2083dab807166133bc68308ba4f9481c34c9e0b5262a1d2558e47cccf6ce9d34516583e48d03a5bf9
24 DIST fcft-3.1.3.tar.gz 741726 BLAKE2B 00792d3bb3848e271b28be7d9afe81e917f547558663b7cc3ce08a3b36cc2d56f3e69b1e06bf16cf73f1a08c8b20696906d6eaa07b59e113846820dd57e22419 SHA512 7275f4807b72b5125242dfba9499647d6c1e80ac9a7df8adde4e8ad082744472d3efa6b8c608c07a2107a7df3005ccad69d574cfb06f35991ccf676df6f1b407
25 +DIST fcft-3.1.5.tar.gz 742014 BLAKE2B 39266ab2a7ea422671414d97c21a90b0eeabe9ed7480c54e44e33ff6d39ab903ac3df154b6733bb4de1e69401480d313f067e6f73f13748bf7fd54aa617cd5e6 SHA512 e223d7e825d8f81f05d2f7ec1b945b28311386dc6ccf55eefaeff2231d64483fdf18a2468f942586ecc0bb4ef75ed9ef0a8a490162b0f8bf7a8619e46742c564
26
27 diff --git a/media-libs/fcft/fcft-3.1.5.ebuild b/media-libs/fcft/fcft-3.1.5.ebuild
28 new file mode 100644
29 index 000000000000..9ecda1e5c4a3
30 --- /dev/null
31 +++ b/media-libs/fcft/fcft-3.1.5.ebuild
32 @@ -0,0 +1,94 @@
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..11} )
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 +# MIT for fcft
47 +# ZLIB for nanosvg
48 +LICENSE="MIT ZLIB"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm64"
51 +IUSE="examples +harfbuzz +libutf8proc test"
52 +REQUIRED_USE="
53 + libutf8proc? ( harfbuzz )
54 + examples? ( libutf8proc )
55 +"
56 +RESTRICT="!test? ( test )"
57 +
58 +RDEPEND="
59 + media-libs/fontconfig
60 + media-libs/freetype
61 + x11-libs/pixman
62 + examples? (
63 + dev-libs/libutf8proc:=
64 + dev-libs/wayland
65 + )
66 + harfbuzz? (
67 + media-libs/harfbuzz:=[truetype]
68 + )
69 + libutf8proc? (
70 + dev-libs/libutf8proc:=
71 + )
72 +"
73 +DEPEND="
74 + ${RDEPEND}
75 + app-i18n/unicode-data
76 + dev-libs/tllist
77 + examples? (
78 + dev-libs/wayland-protocols
79 + )
80 + test? (
81 + dev-libs/check
82 + harfbuzz? ( media-fonts/noto-emoji )
83 + )
84 +"
85 +BDEPEND="
86 + ${PYTHON_DEPS}
87 + app-text/scdoc
88 + virtual/pkgconfig
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 + )
115 +
116 + meson_src_configure
117 +}
118 +
119 +src_install() {
120 + local DOCS=( CHANGELOG.md README.md )
121 + meson_src_install
122 +
123 + rm -r "${ED}"/usr/share/doc/${PN} || die
124 +
125 + use examples && newbin "${BUILD_DIR}/example/example" fcft-example
126 +}