commit:     954ac8189027048023fb01e319d81ddf0533b7a9
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 17:20:35 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 17:20:35 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=954ac818

media-gfx/exact-image: fix calling g++ directly

Closes: https://bugs.gentoo.org/730778
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 media-gfx/exact-image/exact-image-1.0.2.ebuild     |  1 +
 .../exact-image/files/exact-image-1.0.2-g++.patch  | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/media-gfx/exact-image/exact-image-1.0.2.ebuild 
b/media-gfx/exact-image/exact-image-1.0.2.ebuild
index 7e5d51787a4..0cea0d26cf5 100644
--- a/media-gfx/exact-image/exact-image-1.0.2.ebuild
+++ b/media-gfx/exact-image/exact-image-1.0.2.ebuild
@@ -38,6 +38,7 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}"/${P}-gcc6.patch
+       "${FILESDIR}"/${P}-g++.patch
 )
 
 src_prepare() {

diff --git a/media-gfx/exact-image/files/exact-image-1.0.2-g++.patch 
b/media-gfx/exact-image/files/exact-image-1.0.2-g++.patch
new file mode 100644
index 00000000000..29370eaa9ab
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-1.0.2-g++.patch
@@ -0,0 +1,22 @@
+--- a/configure        2020-07-23 19:16:47.199283125 +0200
++++ b/configure        2020-07-23 19:17:01.229075367 +0200
+@@ -19,19 +19,6 @@
+ 
+ parse_options $*
+ 
+-compile c++ available.c ||
+-      status_error "A C++ compiler is not installed or does not work 
correctly.
+-A C++ compiler is vital for exact-image - so you need to install it first."
+-
+-compile c++ stl.c template.c template-specialization.c \
+-        partial-template-specialization.c function-template.c \
+-        || status_error \
+-      "At least one of the advanced ANSI C++ tests failed. Since these
+-features are vital for exact-image you need to update to a more recent 
compiler first."
+-
+-headercheck c++ iostream string iostream sstream fstream ||
+-      status_error "Not all tested STL headers are present - please install 
them."
+-
+ pkgcheck x11 compile X11 atleast 11.0
+ pkgcheck libagg pkg-config LIBAGG atleast 2.3 ||
+       status_error "Anti-Grain Geometry was not found, since it is vital

Reply via email to