public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/greycstoration/, media-gfx/greycstoration/files/
@ 2017-04-04 12:18 Pacho Ramos
  0 siblings, 0 replies; only message in thread
From: Pacho Ramos @ 2017-04-04 12:18 UTC (permalink / raw
  To: gentoo-commits

commit:     096cba611287ea75dac3046d8545fea46816831f
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  4 12:14:49 2017 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Apr  4 12:18:28 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=096cba61

media-gfx/greycstoration: Fix gcc6 support, bug #594140 by Peter Levine

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 .../files/greycstoration-2.9-gcc6.patch            | 11 ++++++++
 .../files/greycstoration-2.9-libpng14.patch        |  4 +--
 ...-2.9-r1.ebuild => greycstoration-2.9-r2.ebuild} | 31 +++++++++++++---------
 3 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/media-gfx/greycstoration/files/greycstoration-2.9-gcc6.patch b/media-gfx/greycstoration/files/greycstoration-2.9-gcc6.patch
new file mode 100644
index 00000000000..5b957c6ece9
--- /dev/null
+++ b/media-gfx/greycstoration/files/greycstoration-2.9-gcc6.patch
@@ -0,0 +1,11 @@
+--- 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;

diff --git a/media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch b/media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch
index e8c0276f891..087f20fb875 100644
--- a/media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch
+++ b/media-gfx/greycstoration/files/greycstoration-2.9-libpng14.patch
@@ -1,7 +1,7 @@
 http://repos.archlinux.org/wsvn/community/greycstoration/trunk/libpng14.patch
 
---- CImg.h
-+++ CImg.h
+--- a/CImg.h
++++ b/CImg.h
 @@ -25671,7 +25671,7 @@
        png_read_info(png_ptr,info_ptr);
        png_uint_32 W, H;

diff --git a/media-gfx/greycstoration/greycstoration-2.9-r1.ebuild b/media-gfx/greycstoration/greycstoration-2.9-r2.ebuild
similarity index 77%
rename from media-gfx/greycstoration/greycstoration-2.9-r1.ebuild
rename to media-gfx/greycstoration/greycstoration-2.9-r2.ebuild
index dac64f5350c..393b930c5b2 100644
--- a/media-gfx/greycstoration/greycstoration-2.9-r1.ebuild
+++ b/media-gfx/greycstoration/greycstoration-2.9-r2.ebuild
@@ -1,9 +1,8 @@
-# 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/"
@@ -18,23 +17,29 @@ RDEPEND="
 	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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-04 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-04 12:18 [gentoo-commits] repo/gentoo:master commit in: media-gfx/greycstoration/, media-gfx/greycstoration/files/ Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox