commit:     563856c2c9e2f122dd6344931906a2c16461217a
Author:     Ryan Fox <flewkey <AT> 2a03 <DOT> party>
AuthorDate: Thu Jul  8 06:18:08 2021 +0000
Commit:     Ryan Fox <flewkey <AT> 2a03 <DOT> party>
CommitDate: Thu Jul  8 06:18:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=563856c2

media-libs/fcft: Bump to 2.4.2

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Ryan Fox <flewkey <AT> 2a03.party>

 media-libs/fcft/Manifest          |  1 +
 media-libs/fcft/fcft-2.4.2.ebuild | 77 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/media-libs/fcft/Manifest b/media-libs/fcft/Manifest
index f6bfbeb44..36212e59d 100644
--- a/media-libs/fcft/Manifest
+++ b/media-libs/fcft/Manifest
@@ -1,3 +1,4 @@
 DIST fcft-2.3.3.tar.gz 313168 BLAKE2B 
b3dbc3af511e8a8007a17400fe6880a08a62ca0cb69795438ab7c6a86f856b25a3bd26cdef8031f1c8d66f4527d191a72ce87852f001e05b8f37285dea4befb5
 SHA512 
91f3c1292889c2fd1cdce439e0168a37a932d3a05ea78fff93ce69ea7b1adc33424e67a0b2c36931d26128e1169e6f784f16445475c94690dedf608f92278009
 DIST fcft-2.4.0.tar.gz 323605 BLAKE2B 
1926d26b633cf768257340f093de734513678f3b5e62cb2fa89fd08496d06b36de89fe797a5328c35a5b467d3ea48214d5a3e76660d2effaea0f28fddbc7bd48
 SHA512 
0904344cf69875e5ed2b0543911cfcbd7fddafcc19ef611ff6abb30004515eb61a69f5add25f9576132dcd60bc0c2cc7f6461fade9124a32c4026154e56d8e64
 DIST fcft-2.4.1.tar.gz 323792 BLAKE2B 
d33c087ec4bf6f0b2bba6da0110abe50de5f232beac970e657416e73f1d02fd54d342686d954e67eca86e5f676d793d94edae52f64a85ea62e662a8552289ae4
 SHA512 
2cce6db53010262eec36a8ef8ba146e296513b89d6a9358868c49acce1db75e058c66ef43b66433d9644460d85c6cbcdb8d755f14ca3b5a58912cd8e0e83f120
+DIST fcft-2.4.2.tar.gz 323827 BLAKE2B 
ae19997f3ad1ccd4170332978b83dd00547be1fff5908be84d7811357821f7606fa6da1bfaf51f94f8fd6dd68609eea6098079336cc606ea831ffe97b1ce6f28
 SHA512 
667a2adabca4538e8b8db5ea9f7dba5eb703aa675c3aa869769ee927c8a29860294811756746e9f308a3ded9e8ef259f8c078d528b9fecd19536e6f5926cf558

diff --git a/media-libs/fcft/fcft-2.4.2.ebuild 
b/media-libs/fcft/fcft-2.4.2.ebuild
new file mode 100644
index 000000000..979d903ad
--- /dev/null
+++ b/media-libs/fcft/fcft-2.4.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson
+
+if [[ ${PV} != *9999* ]]; then
+       SRC_URI="https://codeberg.org/dnkl/fcft/archive/${PV}.tar.gz  -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/${PN}"
+else
+       inherit git-r3
+       EGIT_REPO_URI="https://codeberg.org/dnkl/fcft.git";
+fi
+
+DESCRIPTION="A simple library for font loading and glyph rasterization"
+HOMEPAGE="https://codeberg.org/dnkl/fcft";
+LICENSE="MIT"
+SLOT="0/3"
+IUSE="examples +text-shaping test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       dev-libs/tllist
+       media-libs/fontconfig
+       media-libs/freetype
+       x11-libs/pixman
+       text-shaping? ( media-libs/harfbuzz )
+       examples? (
+               dev-libs/libutf8proc:=
+               dev-libs/wayland
+       )
+"
+DEPEND="
+       ${RDEPEND}
+       test? (
+               text-shaping? ( media-fonts/noto-emoji )
+       )
+"
+BDEPEND="
+       app-text/scdoc
+       app-i18n/unicode-data
+       examples? (
+               dev-libs/wayland-protocols
+               dev-util/wayland-scanner
+       )
+"
+
+src_prepare() {
+       default
+
+       rm -r "unicode" || die "Failed removing vendored unicode-data"
+
+       sed -i 
"s;unicode/UnicodeData.txt;${EPREFIX}/usr/share/unicode-data/UnicodeData.txt;" \
+               meson.build || die "Failed changing UnicodeData.txt to system's 
copy"
+}
+
+src_configure() {
+       local emesonargs=(
+               $(meson_feature text-shaping)
+               $(meson_use examples)
+               "-Dwerror=false"
+       )
+
+       use test && emesonargs+=(
+               $(meson_use text-shaping test-text-shaping)
+       )
+
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+       use examples && newbin "${BUILD_DIR}/example/example" fcft-example
+       mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}"
+}

Reply via email to