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-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI="7"
|
|
|
|
|
|
|
|
inherit bash-completion-r1
|
|
|
|
|
|
|
|
DESCRIPTION="A lightweight, fast implementation of DEC SIXEL graphics codec"
|
|
|
|
HOMEPAGE="https://github.com/saitoha/libsixel"
|
|
|
|
SRC_URI="https://github.com/saitoha/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT public-domain"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 ~ia64 x86"
|
|
|
|
IUSE="curl gd gtk jpeg png static-libs"
|
|
|
|
|
|
|
|
RDEPEND="curl? ( net-misc/curl )
|
|
|
|
gd? ( media-libs/gd )
|
|
|
|
gtk? ( x11-libs/gdk-pixbuf:2 )
|
|
|
|
jpeg? ( virtual/jpeg:0 )
|
|
|
|
png? ( media-libs/libpng:0 )"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
$(use_with curl libcurl) \
|
|
|
|
$(use_with gd) \
|
|
|
|
$(use_with gtk gdk-pixbuf2) \
|
|
|
|
$(use_with jpeg) \
|
|
|
|
$(use_with png) \
|
|
|
|
$(use_enable static-libs static) \
|
|
|
|
--with-bashcompletiondir=$(get_bashcompdir) \
|
|
|
|
--disable-python
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
emake test
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
use static-libs || find "${ED}" -name '*.la' -delete || die
|
|
|
|
|
|
|
|
cd images
|
|
|
|
docompress -x /usr/share/doc/${PF}/images
|
|
|
|
docinto images
|
|
|
|
dodoc egret.jpg map{8,16}.png snake.jpg vimperator3.png
|
|
|
|
}
|