You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# 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 ~ppc64 ~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
|
|
|
|
}
|