commit:     740814e3d0b1c589d7c715e53132df733401ab2e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 21:30:08 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 14 21:30:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=740814e3

media-gfx/aaphoto: [QA] tc-has-openmp → tc-check-openmp

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../{aaphoto-0.45.ebuild => aaphoto-0.45-r1.ebuild}  | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/media-gfx/aaphoto/aaphoto-0.45.ebuild 
b/media-gfx/aaphoto/aaphoto-0.45-r1.ebuild
similarity index 50%
rename from media-gfx/aaphoto/aaphoto-0.45.ebuild
rename to media-gfx/aaphoto/aaphoto-0.45-r1.ebuild
index c9839cf9f3f4..f7310d13b0c0 100644
--- a/media-gfx/aaphoto/aaphoto-0.45.ebuild
+++ b/media-gfx/aaphoto/aaphoto-0.45-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit toolchain-funcs
 
@@ -14,16 +14,14 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 
 RDEPEND="
-       media-libs/libpng:0=
-       sys-libs/zlib
-       virtual/jpeg:0"
+       media-libs/libjpeg-turbo:=
+       media-libs/libpng:="
 DEPEND="${RDEPEND}"
 
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
 pkg_setup() {
-       if [[ ${MERGE_TYPE} != binary ]]; then
-               [[ $(gcc-major-version) -lt 4 ]] || \
-               ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 2 
]] ) \
-               && die "Sorry, but gcc 4.2 or higher is required"
-               tc-has-openmp || die "Please switch to an openmp compatible 
compiler"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
 }

Reply via email to