media-libs/libsixel: add static-libs USE flag
authorAkinori Hattori <hattya@gentoo.org>
Mon, 23 Jul 2018 13:10:22 +0000 (22:10 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Mon, 23 Jul 2018 13:15:32 +0000 (22:15 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

media-libs/libsixel/libsixel-1.8.1.ebuild

index 12cd9a6cec32a8a5d48533ac4e61e941d77b2ffe..c05386adb4e307efd4d73dfa00a92ab6d2a21b1f 100644 (file)
@@ -7,12 +7,12 @@ 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/libsixel/releases/download/v${PV}/${P}.tar.gz"
+SRC_URI="https://github.com/saitoha/${PN}/releases/download/v${PV}/${P}.tar.gz"
 
 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
+       use static-libs || find "${ED}" -name '*.la' -delete || die
 
        cd images
        docompress -x /usr/share/doc/${PF}/images