commit:     821ef63e1bc4b51601c0155856c477f7df193231
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 23 13:10:22 2018 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Mon Jul 23 13:15:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=821ef63e

media-libs/libsixel: add static-libs USE flag

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 media-libs/libsixel/libsixel-1.8.1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-libs/libsixel/libsixel-1.8.1.ebuild 
b/media-libs/libsixel/libsixel-1.8.1.ebuild
index 12cd9a6cec3..c05386adb4e 100644
--- a/media-libs/libsixel/libsixel-1.8.1.ebuild
+++ b/media-libs/libsixel/libsixel-1.8.1.ebuild
@@ -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

Reply via email to