summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2023-07-12 10:37:01 +0200
committerJakov Smolić <jsmolic@gentoo.org>2023-07-12 10:37:47 +0200
commit19936fb7de562dc98cbe27723cd51797cbd26721 (patch)
tree4dd27cca706458c1cb6dfc31f18ca07a980319eb /media-gfx/chafa/chafa-1.12.5-r1.ebuild
parentwww-client/firefox: add REQUIRED_USE for !jumbo-build? ( clang ) (diff)
downloadgentoo-19936fb7de562dc98cbe27723cd51797cbd26721.tar.gz
gentoo-19936fb7de562dc98cbe27723cd51797cbd26721.tar.bz2
gentoo-19936fb7de562dc98cbe27723cd51797cbd26721.zip
media-gfx/chafa: Fix automagic libwebp dependency and linking error
Closes: https://bugs.gentoo.org/909429 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'media-gfx/chafa/chafa-1.12.5-r1.ebuild')
-rw-r--r--media-gfx/chafa/chafa-1.12.5-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/media-gfx/chafa/chafa-1.12.5-r1.ebuild b/media-gfx/chafa/chafa-1.12.5-r1.ebuild
new file mode 100644
index 000000000000..6151f335b407
--- /dev/null
+++ b/media-gfx/chafa/chafa-1.12.5-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic
+
+DESCRIPTION="versatile and fast Unicode/ASCII/ANSI graphics renderer"
+HOMEPAGE="https://hpjansson.org/chafa/ https://github.com/hpjansson/chafa"
+SRC_URI="https://hpjansson.org/chafa/releases/${P}.tar.xz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE="+tools webp"
+
+RDEPEND="
+ dev-libs/glib:2
+ media-gfx/imagemagick:0=
+ tools? ( >=media-libs/freetype-2.0.0 )
+ webp? ( media-libs/libwebp:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ # bug 909429
+ use webp && append-ldflags -lwebp
+
+ econf \
+ --disable-man \
+ $(use_with tools) \
+ $(use_with webp)
+}
+
+src_install() {
+ local DOCS=( AUTHORS NEWS README TODO )
+ default
+
+ use tools && doman docs/chafa.1
+
+ find "${ED}" -name '*.la' -delete || die
+}