| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.18.1 | 8 | amd64 ~arm arm64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~sparc x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit libtool
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 ~arm arm64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~sparc x86"
IUSE="avif heif jpegxl svg +tools webp"
RDEPEND="
dev-libs/glib:2
tools? (
media-libs/freetype:2
media-libs/libjpeg-turbo:=
media-libs/tiff:=
avif? ( media-libs/libavif:= )
heif? ( media-libs/libheif:= )
jpegxl? ( media-libs/libjxl:= )
svg? (
gnome-base/librsvg:2
x11-libs/cairo
)
webp? ( media-libs/libwebp:= )
)
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
QA_CONFIG_IMPL_DECL_SKIP=(
# checking for intrinsics, will fail where not supported. bug #927102
_mm_popcnt_u64
)
src_prepare() {
default
elibtoolize
}
src_configure() {
if ! use tools; then
local i
for i in ${IUSE/+/}; do
use ${i} && ewarn "USE=${i} is ignored if USE=tools is not set"
done
fi
local myconf=(
--disable-man
$(use_with tools)
$(use_with avif)
$(use_with heif)
$(use_with jpegxl jxl)
$(use_with svg)
$(use_with tools jpeg)
$(use_with tools tiff)
$(use_with webp)
)
econf "${myconf[@]}"
}
src_install() {
default
use tools && doman docs/chafa.1
find "${ED}" -name '*.la' -delete || die
}
dev-libs/glib:2 tools? ( media-libs/freetype:2 media-libs/libjpeg-turbo:= media-libs/tiff:= avif? ( media-libs/libavif:= ) heif? ( media-libs/libheif:= ) jpegxl? ( media-libs/libjxl:= ) svg? ( gnome-base/librsvg:2 x11-libs/cairo ) webp? ( media-libs/libwebp:= ) )
dev-libs/glib:2 tools? ( media-libs/freetype:2 media-libs/libjpeg-turbo:= media-libs/tiff:= avif? ( media-libs/libavif:= ) heif? ( media-libs/libheif:= ) jpegxl? ( media-libs/libjxl:= ) svg? ( gnome-base/librsvg:2 x11-libs/cairo ) webp? ( media-libs/libwebp:= ) )
virtual/pkgconfig
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | chafa-1.18.1.tar.xz | 1061372 bytes | https://hpjansson.org/chafa/releases/chafa-1.18.1.tar.xz |