--- /dev/null
+--- a/plugins/greycstoration.h 2016-09-22 22:46:42.907946423 -0400
++++ b/plugins/greycstoration.h 2016-09-22 22:49:56.439530308 -0400
+@@ -454,7 +454,7 @@
+ p.temporary = 0;
+ p.counter = 0;
+ p.tile = p.tile_border = p.thread = p.nb_threads = 0;
+- p.stop_request = false;
++ p.stop_request = NULL;
+ greycstoration_mutex_destroy(p);
+ }
+ p.is_running = false;
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-
-inherit eutils toolchain-funcs
+EAPI=6
+inherit toolchain-funcs
DESCRIPTION="Image regularization algorithm for denoising, inpainting and resizing"
HOMEPAGE="http://www.greyc.ensicaen.fr/~dtschump/greycstoration/"
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrandr
- fftw? ( >=sci-libs/fftw-3 )
- imagemagick? ( media-gfx/imagemagick )
- jpeg? ( virtual/jpeg )
+ fftw? ( >=sci-libs/fftw-3:3.0= )
+ imagemagick? ( media-gfx/imagemagick:0= )
+ jpeg? ( virtual/jpeg:0 )
lapack? ( virtual/lapack )
- png? ( >=media-libs/libpng-1.4 )
- tiff? ( media-libs/tiff )"
+ png? ( >=media-libs/libpng-1.4:0= )
+ tiff? ( media-libs/tiff:0 )
+"
DEPEND="${RDEPEND}
app-arch/unzip
fftw? ( virtual/pkgconfig )
lapack? ( virtual/pkgconfig )
- png? ( virtual/pkgconfig )"
+ png? ( virtual/pkgconfig )
+"
-S=${WORKDIR}/GREYCstoration-${PV}/src
+S="${WORKDIR}/GREYCstoration-${PV}/src"
-src_prepare() {
- epatch "${FILESDIR}"/${P}-libpng14.patch
+PATCHES=(
+ "${FILESDIR}"/${P}-libpng14.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
+src_prepare() {
+ default
sed -i \
-e "s:../CImg.h:CImg.h:" \
greycstoration.cpp || die