1 |
commit: f837ed3ce652c1ddb9e5ced54af6377f3a142f57 |
2 |
Author: Arsen Arsenović <arsen <AT> aarsen <DOT> me> |
3 |
AuthorDate: Sun May 1 17:56:12 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 06:45:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f837ed3c |
7 |
|
8 |
media-libs/fcft: add 3.1.1 |
9 |
|
10 |
Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/25278 |
12 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
13 |
|
14 |
media-libs/fcft/Manifest | 1 + |
15 |
media-libs/fcft/fcft-3.1.1.ebuild | 94 +++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 95 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/fcft/Manifest b/media-libs/fcft/Manifest |
19 |
index 24f4c080f86f..66bc4c5c4128 100644 |
20 |
--- a/media-libs/fcft/Manifest |
21 |
+++ b/media-libs/fcft/Manifest |
22 |
@@ -1,2 +1,3 @@ |
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 |
|
27 |
diff --git a/media-libs/fcft/fcft-3.1.1.ebuild b/media-libs/fcft/fcft-3.1.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..efecb5e0640c |
30 |
--- /dev/null |
31 |
+++ b/media-libs/fcft/fcft-3.1.1.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..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 |
+# 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:= |
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 |
+ examples? ( |
89 |
+ dev-util/wayland-scanner |
90 |
+ ) |
91 |
+" |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ |
96 |
+ rm -r unicode || die "Failed removing vendored unicode-data" |
97 |
+ |
98 |
+ sed -i "s;unicode/UnicodeData.txt;${EPREFIX}/usr/share/unicode-data/UnicodeData.txt;" \ |
99 |
+ meson.build || die "Failed changing UnicodeData.txt to system's copy" |
100 |
+ sed -i "s;unicode/emoji-data.txt;${EPREFIX}/usr/share/unicode-data/emoji/emoji-data.txt;" \ |
101 |
+ meson.build || die "Failed changing emoji-data.txt to system's copy" |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ local emesonargs=( |
106 |
+ $(meson_feature harfbuzz grapheme-shaping) |
107 |
+ $(meson_feature libutf8proc run-shaping) |
108 |
+ $(meson_use examples) |
109 |
+ $(use test && meson_use harfbuzz test-text-shaping) |
110 |
+ # bundled, tiny, I believe this means we should always include it |
111 |
+ -Dsvg-backend=nanosvg |
112 |
+ -Ddocs=enabled |
113 |
+ -Dwerror=false |
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 |
+} |