media-libs/libsixel: add USE=static-libs support
authorMike Frysinger <vapier@chromium.org>
Tue, 2 Jan 2018 10:25:18 +0000 (05:25 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 2 Jan 2018 10:51:43 +0000 (05:51 -0500)
media-libs/libsixel/libsixel-1.7.3.ebuild

index 13adf5b403003297a44c8a8f3fd28ad867f5a9cf..3d8e5d2dbd83500b6cf22f98e1260d49932f82d4 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit bash-completion-r1
+inherit bash-completion-r1 ltprune
 
 DESCRIPTION="A lightweight, fast implementation of DEC SIXEL graphics codec"
 HOMEPAGE="https://github.com/saitoha/libsixel"
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/saitoha/libsixel/archive/v${PV}.tar.gz -> ${P}.tar.g
 LICENSE="MIT public-domain"
 SLOT="0"
 KEYWORDS="amd64 ia64 x86"
-IUSE="curl gd gtk jpeg png"
+IUSE="curl gd gtk jpeg png static-libs"
 
 RDEPEND="curl? ( net-misc/curl )
        gd? ( media-libs/gd )
@@ -29,6 +29,7 @@ src_configure() {
                $(use_with gtk gdk-pixbuf2) \
                $(use_with jpeg) \
                $(use_with png) \
+               $(use_enable static-libs static) \
                --with-bashcompletiondir=$(get_bashcompdir) \
                --disable-python
 }
@@ -39,6 +40,7 @@ src_test() {
 
 src_install() {
        default
+       prune_libtool_files
 
        cd images
        docompress -x /usr/share/doc/${PF}/images