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.
50 lines
1.1 KiB
50 lines
1.1 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI="6"
|
||
9 years ago
|
|
||
6 years ago
|
inherit bash-completion-r1
|
||
9 years ago
|
|
||
|
DESCRIPTION="A lightweight, fast implementation of DEC SIXEL graphics codec"
|
||
|
HOMEPAGE="https://github.com/saitoha/libsixel"
|
||
6 years ago
|
SRC_URI="https://github.com/saitoha/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||
9 years ago
|
|
||
|
LICENSE="MIT public-domain"
|
||
|
SLOT="0"
|
||
6 years ago
|
KEYWORDS="~amd64 ~ia64 ~x86"
|
||
7 years ago
|
IUSE="curl gd gtk jpeg png static-libs"
|
||
9 years ago
|
|
||
|
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) \
|
||
8 years ago
|
$(use_with png) \
|
||
7 years ago
|
$(use_enable static-libs static) \
|
||
7 years ago
|
--with-bashcompletiondir=$(get_bashcompdir) \
|
||
|
--disable-python
|
||
9 years ago
|
}
|
||
|
|
||
|
src_test() {
|
||
|
emake test
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
6 years ago
|
use static-libs || find "${ED}" -name '*.la' -delete || die
|
||
9 years ago
|
|
||
8 years ago
|
cd images
|
||
9 years ago
|
docompress -x /usr/share/doc/${PF}/images
|
||
8 years ago
|
docinto images
|
||
|
dodoc egret.jpg map{8,16}.png snake.jpg vimperator3.png
|
||
9 years ago
|
}
|