summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-08-22 14:46:04 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-08-22 16:15:37 +0200
commit95c14433ba569fcc4dba0279e7a1e71b8eff676c (patch)
treefd9e174b7cf07101daf44972711d148dd422b2f7 /media-gfx
parentmedia-libs/phonon: Drop unused DEPEND, obsolete cmake option (diff)
downloadgentoo-95c14433ba569fcc4dba0279e7a1e71b8eff676c.tar.gz
gentoo-95c14433ba569fcc4dba0279e7a1e71b8eff676c.tar.bz2
gentoo-95c14433ba569fcc4dba0279e7a1e71b8eff676c.zip
media-gfx/digikam: Fix build with ImageMagick-7.0.8.60
Thanks-to: David Haller <gentoo@dhaller.de> Closes: https://bugs.gentoo.org/692326 Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/digikam/digikam-6.2.0.ebuild1
-rw-r--r--media-gfx/digikam/files/digikam-6.2.0-imagemagick-7.0.8.60.patch14
2 files changed, 15 insertions, 0 deletions
diff --git a/media-gfx/digikam/digikam-6.2.0.ebuild b/media-gfx/digikam/digikam-6.2.0.ebuild
index 4478b85ae239..d28773546dc8 100644
--- a/media-gfx/digikam/digikam-6.2.0.ebuild
+++ b/media-gfx/digikam/digikam-6.2.0.ebuild
@@ -109,6 +109,7 @@ RESTRICT+=" test"
PATCHES=(
"${FILESDIR}/${P}-googlephoto-upload.patch"
"${FILESDIR}/${P}-cmake.patch"
+ "${FILESDIR}/${P}-imagemagick-7.0.8.60.patch"
)
pkg_pretend() {
diff --git a/media-gfx/digikam/files/digikam-6.2.0-imagemagick-7.0.8.60.patch b/media-gfx/digikam/files/digikam-6.2.0-imagemagick-7.0.8.60.patch
new file mode 100644
index 000000000000..264da2c34f29
--- /dev/null
+++ b/media-gfx/digikam/files/digikam-6.2.0-imagemagick-7.0.8.60.patch
@@ -0,0 +1,14 @@
+--- a/core/tests/dimg/magickloader.cpp
++++ a/core/tests/dimg/magickloader.cpp
+@@ -139,7 +139,11 @@ int main(int argc, char** argv)
+ if (inf->encoder) mode.append(QLatin1Char('W'));
+ else mode.append(QLatin1Char('-'));
+
++#if( (MagickLibVersion >= 0x708) && defined(magick_module) ) /* defined since 7.0.8.60 */
++ QString module = QLatin1String(inf->magick_module);
++#else
+ QString module = QLatin1String(inf->module);
++#endif
+ QString mime = QMimeDatabase().mimeTypeForFile(QFileInfo(QString::fromLatin1("foo.%1").arg(module))).name();
+
+ if (module != QLatin1String("DNG") && \ No newline at end of file