commit: 130b69973a7d864c3665acd017c681786dcf1693 Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Sun Feb 8 19:44:08 2026 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Sun Feb 8 19:45:04 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=130b6997
media-gfx/chafa: add 1.18.1 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> media-gfx/chafa/Manifest | 1 + media-gfx/chafa/chafa-1.18.1.ebuild | 75 +++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/media-gfx/chafa/Manifest b/media-gfx/chafa/Manifest index 097834ada357..353153047095 100644 --- a/media-gfx/chafa/Manifest +++ b/media-gfx/chafa/Manifest @@ -1 +1,2 @@ DIST chafa-1.18.0.tar.xz 1049888 BLAKE2B 6f98557dd39611d1705131b442e136716f4d0cb4e3bdb8c846eaf1d81a1bad74a6ff87e7a52eea2d2352ce937d0e6a46fd683364f96ed4e9e2b1604ec72fd311 SHA512 a2af39df185b59bb23b03823c1b4e95901b6e7f2e16bbe8fd6d81c6cb1041f8b0b13028b0c09758235169a54d35361ddfa4fd300877960737e68d1602f17867c +DIST chafa-1.18.1.tar.xz 1061372 BLAKE2B 3ac716a1248380380873022a349dac4373e8bcfab0e6b63e98d70cf7b7decbbc9956d3062fe4cc46d7aff88881b05e5a3cca6c772ea90d66327e019c26ebea1d SHA512 158280bedf4ae2aa044d9e2664a2e204648d66637f2ee69f70fd95135188ec41a5727639c3ba80af57aff801bb905da8d3ce575fbcf98d25b5d66ab0b6b0dd79 diff --git a/media-gfx/chafa/chafa-1.18.1.ebuild b/media-gfx/chafa/chafa-1.18.1.ebuild new file mode 100644 index 000000000000..95c83cf8faa7 --- /dev/null +++ b/media-gfx/chafa/chafa-1.18.1.ebuild @@ -0,0 +1,75 @@ +# 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 +}
