media-libs/imlib2: add fix from upstream #563732
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Dec 2015 20:16:24 +0000 (15:16 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Dec 2015 20:16:40 +0000 (15:16 -0500)
media-libs/imlib2/files/imlib2-1.4.7-headers.patch [new file with mode: 0644]
media-libs/imlib2/imlib2-1.4.7.ebuild

diff --git a/media-libs/imlib2/files/imlib2-1.4.7-headers.patch b/media-libs/imlib2/files/imlib2-1.4.7-headers.patch
new file mode 100644 (file)
index 0000000..d2fba06
--- /dev/null
@@ -0,0 +1,26 @@
+https://bugs.gentoo.org/563732
+
+From 521573be219f27c7bfebb57d5b0b994fdb316721 Mon Sep 17 00:00:00 2001
+From: Chloe Kudryavtsev <chloe.kudryavtsev@gmail.com>
+Date: Sat, 24 Oct 2015 23:38:53 -0400
+Subject: [PATCH] add time.h include to common.h for time_t
+
+---
+ src/lib/common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/lib/common.h b/src/lib/common.h
+index 798965f..9053826 100644
+--- a/src/lib/common.h
++++ b/src/lib/common.h
+@@ -9,6 +9,7 @@
+ #include <config.h>
+ #include <string.h>
+ #include <math.h>
++#include <time.h>
+ #ifdef WITH_DMALLOC
+ #include <dmalloc.h>
+ #endif
+-- 
+2.6.2
+
index 4af11591bead590f943603638f69b3808e47a9d6..f2b3f29ecf3ed7894b1192ca3e2fcfebfabe4256 100644 (file)
@@ -11,7 +11,7 @@ if [[ ${PV} != "9999" ]] ; then
        EKEY_STATE="snap"
 fi
 
-inherit enlightenment toolchain-funcs multilib-minimal
+inherit enlightenment toolchain-funcs multilib-minimal eutils
 
 DESCRIPTION="Version 2 of an advanced replacement library for libraries like libXpm"
 HOMEPAGE="https://www.enlightenment.org/"
@@ -37,6 +37,11 @@ DEPEND="${RDEPEND}
                >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}]
        )"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-headers.patch #563732
+       enlightenment_src_prepare
+}
+
 multilib_src_configure() {
        # imlib2 has diff configure options for x86/amd64 mmx
        if [[ $(tc-arch) == amd64 ]]; then