1 |
commit: 89c8686008ffb58453f927de03693b6b13bc2eef |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 29 08:35:45 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 29 08:50:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89c86860 |
7 |
|
8 |
media-plugins/gimp-lensfun: EAPI-7 bump, fix build w/ exiv2-0.27.1 |
9 |
|
10 |
Restrict to <media-gfx/gimp-2.10.0 as it is broken with latest GIMP. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/686138 |
13 |
Package-Manager: Portage-2.3.67, Repoman-2.3.16 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
.../files/gimp-lensfun-0.2.4-exiv2-0.27.1.patch | 12 ++++++ |
17 |
.../gimp-lensfun/gimp-lensfun-0.2.4-r1.ebuild | 50 ++++++++++++++++++++++ |
18 |
2 files changed, 62 insertions(+) |
19 |
|
20 |
diff --git a/media-plugins/gimp-lensfun/files/gimp-lensfun-0.2.4-exiv2-0.27.1.patch b/media-plugins/gimp-lensfun/files/gimp-lensfun-0.2.4-exiv2-0.27.1.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..d62f1790d5d |
23 |
--- /dev/null |
24 |
+++ b/media-plugins/gimp-lensfun/files/gimp-lensfun-0.2.4-exiv2-0.27.1.patch |
25 |
@@ -0,0 +1,12 @@ |
26 |
+--- a/src/gimplensfun.cpp |
27 |
++++ b/src/gimplensfun.cpp |
28 |
+@@ -31,8 +31,7 @@ |
29 |
+ #include <libgimp/gimp.h> |
30 |
+ #include <libgimp/gimpui.h> |
31 |
+ |
32 |
+-#include <exiv2/image.hpp> |
33 |
+-#include <exiv2/exif.hpp> |
34 |
++#include <exiv2/exiv2.hpp> |
35 |
+ |
36 |
+ #define VERSIONSTR "0.2.4" |
37 |
+ |
38 |
|
39 |
diff --git a/media-plugins/gimp-lensfun/gimp-lensfun-0.2.4-r1.ebuild b/media-plugins/gimp-lensfun/gimp-lensfun-0.2.4-r1.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..2756553cbcf |
42 |
--- /dev/null |
43 |
+++ b/media-plugins/gimp-lensfun/gimp-lensfun-0.2.4-r1.ebuild |
44 |
@@ -0,0 +1,50 @@ |
45 |
+# Copyright 1999-2019 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=7 |
49 |
+ |
50 |
+inherit toolchain-funcs |
51 |
+ |
52 |
+DESCRIPTION="Gimp plugin to correct lens distortions" |
53 |
+HOMEPAGE="https://seebk.github.io/GIMP-Lensfun/" |
54 |
+SRC_URI="https://github.com/seebk/GIMP-Lensfun/archive/${PV}.tar.gz -> ${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="GPL-3" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~x86" |
59 |
+IUSE="openmp" |
60 |
+ |
61 |
+BDEPEND=" |
62 |
+ virtual/pkgconfig |
63 |
+" |
64 |
+DEPEND=" |
65 |
+ media-gfx/exiv2 |
66 |
+ <media-gfx/gimp-2.10.0 |
67 |
+ >=media-libs/lensfun-0.3.2 |
68 |
+" |
69 |
+RDEPEND="${DEPEND}" |
70 |
+ |
71 |
+PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.1.patch" ) |
72 |
+ |
73 |
+S=${WORKDIR}/GIMP-Lensfun-${PV} |
74 |
+ |
75 |
+pkg_setup() { |
76 |
+ if use openmp && [[ ${MERGE_TYPE} != binary ]]; then |
77 |
+ tc-has-openmp || die "Please switch to an openmp compatible compiler" |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ if ! use openmp; then |
85 |
+ sed -i "s/-fopenmp//g" Makefile || die |
86 |
+ fi |
87 |
+ |
88 |
+ tc-export CXX |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins |
93 |
+ doexe ${PN} |
94 |
+} |