commit:     2947c44e67e81a55aa085cbdf516310d91448e22
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 27 06:01:59 2016 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat Feb 27 06:01:59 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2947c44e

media-libs/libsixel: fix build

Gentoo-Bug: 570068

Package-Manager: portage-2.2.26

 media-libs/libsixel/files/libsixel-gd.patch | 11 +++++++++++
 media-libs/libsixel/libsixel-1.5.2.ebuild   |  9 +++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/media-libs/libsixel/files/libsixel-gd.patch 
b/media-libs/libsixel/files/libsixel-gd.patch
new file mode 100644
index 0000000..6c94749
--- /dev/null
+++ b/media-libs/libsixel/files/libsixel-gd.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -354,7 +354,7 @@
+                      [gdImageCreateFromGifPtr],
+                      [AC_CHECK_DECLS([gdImageCreateFromGifPtr],   [], [], [ 
#include <gd.h> ])])
+         AC_CHECK_LIB([gd],
+-                     [gdImageCreateFromBmpPtr],
++                     [gdImageCreateFromPngPtr],
+                      [AC_CHECK_DECLS([gdImageCreateFromPngPtr],   [], [], [ 
#include <gd.h> ])])
+         AC_CHECK_LIB([gd],
+                      [gdImageCreateFromBmpPtr],

diff --git a/media-libs/libsixel/libsixel-1.5.2.ebuild 
b/media-libs/libsixel/libsixel-1.5.2.ebuild
index ef878d2..076be8b 100644
--- a/media-libs/libsixel/libsixel-1.5.2.ebuild
+++ b/media-libs/libsixel/libsixel-1.5.2.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI="5"
 
-inherit bash-completion-r1
+inherit autotools bash-completion-r1 eutils
 
 DESCRIPTION="A lightweight, fast implementation of DEC SIXEL graphics codec"
 HOMEPAGE="https://github.com/saitoha/libsixel";
@@ -23,6 +23,11 @@ RDEPEND="curl? ( net-misc/curl )
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-gd.patch
+       eautoreconf
+}
+
 src_configure() {
        econf \
                --disable-python \

Reply via email to