media-gfx/chafa: initial import
authorTim Harder <radhermit@gentoo.org>
Sat, 29 Dec 2018 18:48:28 +0000 (12:48 -0600)
committerTim Harder <radhermit@gentoo.org>
Sat, 29 Dec 2018 19:13:42 +0000 (13:13 -0600)
Signed-off-by: Tim Harder <radhermit@gentoo.org>
media-gfx/chafa/Manifest [new file with mode: 0644]
media-gfx/chafa/chafa-1.0.1.ebuild [new file with mode: 0644]
media-gfx/chafa/metadata.xml [new file with mode: 0644]

diff --git a/media-gfx/chafa/Manifest b/media-gfx/chafa/Manifest
new file mode 100644 (file)
index 0000000..5dafec7
--- /dev/null
@@ -0,0 +1 @@
+DIST chafa-1.0.1.tar.xz 311616 BLAKE2B c7060cf1b20f7c2eaa6eb8265422031dea1b3b80c106b08b11b431336044e154609ad73c7654a0085a8ca0b71bc01e06377ded638081bdfaeb96aac054577ed8 SHA512 fe0dc8ecec77c7b1b4c694d6dd3f4de895a07faf39519f47c2284d76261e2c6298943fa5309cdca6d41ef0a22fe0321a2ef890f319903596bdfaad10394e7ec2
diff --git a/media-gfx/chafa/chafa-1.0.1.ebuild b/media-gfx/chafa/chafa-1.0.1.ebuild
new file mode 100644 (file)
index 0000000..53d1b31
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~x86"
+IUSE="static-libs +tools"
+
+RDEPEND="
+       dev-libs/glib:2
+       media-gfx/imagemagick:0=
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+src_configure() {
+       local econfargs=(
+               $(use_enable static-libs static)
+               # install manpage manually
+               --disable-man
+               $(use_with tools)
+       )
+
+       econf "${econfargs[@]}"
+}
+
+src_install() {
+       local DOCS=( AUTHORS NEWS README TODO )
+       default
+
+       use tools && doman docs/chafa.1
+
+       find "${ED}"/usr/lib* -name '*.la' -delete || die
+}
diff --git a/media-gfx/chafa/metadata.xml b/media-gfx/chafa/metadata.xml
new file mode 100644 (file)
index 0000000..3f369d5
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>graphics@gentoo.org</email>
+               <name>Gentoo Graphics Project</name>
+       </maintainer>
+       <use>
+               <flag name="tools">Build command-line tools</flag>
+       </use>
+       <upstream>
+               <remote-id type="github">hpjansson/chafa</remote-id>
+       </upstream>
+</pkgmetadata>