From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3FE29139694 for ; Tue, 23 May 2017 08:03:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 498FDE0D26; Tue, 23 May 2017 08:03:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 14D30E0D26 for ; Tue, 23 May 2017 08:03:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6843534172C for ; Tue, 23 May 2017 08:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B3137455 for ; Tue, 23 May 2017 08:03:34 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1495526608.adf8d0f5bfd5ecefe69fcaa92449bd3a5d786a66.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/mgba/, games-emulation/mgba/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/mgba/files/mgba-0.5.2-imagemagick7.patch games-emulation/mgba/mgba-0.5.2.ebuild X-VCS-Directories: games-emulation/mgba/files/ games-emulation/mgba/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: adf8d0f5bfd5ecefe69fcaa92449bd3a5d786a66 X-VCS-Branch: master Date: Tue, 23 May 2017 08:03:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f0e58001-892a-49be-b8ac-27e877a12f12 X-Archives-Hash: 6d72c133eda3b093363989f2729ab476 commit: adf8d0f5bfd5ecefe69fcaa92449bd3a5d786a66 Author: Lars Wendler gentoo org> AuthorDate: Tue May 23 08:02:52 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Tue May 23 08:03:28 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adf8d0f5 games-emulation/mgba: Fixed compilation with imagemagick-7 (bug #610578) Package-Manager: Portage-2.3.6, Repoman-2.3.2 .../mgba/files/mgba-0.5.2-imagemagick7.patch | 59 ++++++++++++++++++++++ games-emulation/mgba/mgba-0.5.2.ebuild | 4 ++ 2 files changed, 63 insertions(+) diff --git a/games-emulation/mgba/files/mgba-0.5.2-imagemagick7.patch b/games-emulation/mgba/files/mgba-0.5.2-imagemagick7.patch new file mode 100644 index 00000000000..965e66466e5 --- /dev/null +++ b/games-emulation/mgba/files/mgba-0.5.2-imagemagick7.patch @@ -0,0 +1,59 @@ +From 2e3daaedc208824c9b8a54480bd614160cdda9e7 Mon Sep 17 00:00:00 2001 +From: Vicki Pfau +Date: Wed, 18 Jan 2017 12:51:05 -0800 +Subject: [PATCH] Feature: Support ImageMagick 7 + +--- +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 38120827e..6be159915 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -322,6 +322,7 @@ if(HAVE_UMASK) + endif() + + # Feature dependencies ++set(FEATURE_DEFINES) + set(FEATURES) + if(CMAKE_SYSTEM_NAME MATCHES .*BSD) + set(LIBEDIT_LIBRARIES -ledit) +@@ -431,11 +432,16 @@ if(USE_MAGICK) + list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/imagemagick/imagemagick-gif-encoder.c") + list(APPEND DEPENDENCY_LIB ${MAGICKWAND_LIBRARIES}) + string(REGEX MATCH "^[0-9]+\\.[0-9]+" MAGICKWAND_VERSION_PARTIAL ${MagickWand_VERSION}) ++ string(REGEX MATCH "^[0-9]+" MAGICKWAND_VERSION_MAJOR ${MagickWand_VERSION}) + if(${MAGICKWAND_VERSION_PARTIAL} EQUAL "6.7") + set(MAGICKWAND_DEB_VERSION "5") ++ elseif(${MagickWand_VERSION} EQUAL "6.9.7") ++ set(MAGICKWAND_DEB_VERSION "-6.q16-3") + else() + set(MAGICKWAND_DEB_VERSION "-6.q16-2") + endif() ++ list(APPEND FEATURE_DEFINES MAGICKWAND_VERSION_MAJOR=${MAGICKWAND_VERSION_MAJOR}) ++ + set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libmagickwand${MAGICKWAND_DEB_VERSION}") + endif() + +@@ -595,7 +601,6 @@ if(USE_DEBUGGERS) + list(APPEND FEATURES DEBUGGERS) + endif() + +-set(FEATURE_DEFINES) + foreach(FEATURE IN LISTS FEATURES) + list(APPEND FEATURE_DEFINES "USE_${FEATURE}") + endforeach() +diff --git a/src/feature/imagemagick/imagemagick-gif-encoder.h b/src/feature/imagemagick/imagemagick-gif-encoder.h +index 13505e6db..842cad942 100644 +--- a/src/feature/imagemagick/imagemagick-gif-encoder.h ++++ b/src/feature/imagemagick/imagemagick-gif-encoder.h +@@ -15,7 +15,11 @@ CXX_GUARD_START + #define MAGICKCORE_HDRI_ENABLE 0 + #define MAGICKCORE_QUANTUM_DEPTH 8 + ++#if MAGICKWAND_VERSION_MAJOR >= 7 ++#include ++#else + #include ++#endif + + struct ImageMagickGIFEncoder { + struct mAVStream d; diff --git a/games-emulation/mgba/mgba-0.5.2.ebuild b/games-emulation/mgba/mgba-0.5.2.ebuild index d44cab6ea95..d70be6e1062 100644 --- a/games-emulation/mgba/mgba-0.5.2.ebuild +++ b/games-emulation/mgba/mgba-0.5.2.ebuild @@ -33,6 +33,10 @@ RDEPEND=" DEPEND="${RDEPEND} >=dev-util/cmake-3.2.2" +PATCHES=( + "${FILESDIR}/${P}-imagemagick7.patch" +) + src_prepare() { default