1 |
commit: bde1f53104418c74c9d78fabd1c1df70982dd411 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 29 08:49:55 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=bde1f531 |
7 |
|
8 |
sci-geosciences/gpscorrelate: EAPI-7 bump, fix build w/ exiv2-0.27.1 |
9 |
|
10 |
Don't install cruft. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/685926 |
13 |
Package-Manager: Portage-2.3.67, Repoman-2.3.16 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
.../files/gpscorrelate-1.6.1-exiv2-0.27.1.patch | 27 +++++++++++ |
17 |
.../gpscorrelate/gpscorrelate-1.6.1-r1.ebuild | 55 ++++++++++++++++++++++ |
18 |
2 files changed, 82 insertions(+) |
19 |
|
20 |
diff --git a/sci-geosciences/gpscorrelate/files/gpscorrelate-1.6.1-exiv2-0.27.1.patch b/sci-geosciences/gpscorrelate/files/gpscorrelate-1.6.1-exiv2-0.27.1.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..16921b72a1f |
23 |
--- /dev/null |
24 |
+++ b/sci-geosciences/gpscorrelate/files/gpscorrelate-1.6.1-exiv2-0.27.1.patch |
25 |
@@ -0,0 +1,27 @@ |
26 |
+From c82aa1e76e3faeaec605df618c87223513efb3b9 Mon Sep 17 00:00:00 2001 |
27 |
+From: Andreas Sturmlechner <asturm@g.o> |
28 |
+Date: Sat, 29 Jun 2019 10:27:24 +0200 |
29 |
+Subject: [PATCH] Fix build with exiv2-0.27.1 |
30 |
+ |
31 |
+Use catchall header as recommended by exiv2 upstream. |
32 |
+--- |
33 |
+ exif-gps.cpp | 3 +-- |
34 |
+ 1 file changed, 1 insertion(+), 2 deletions(-) |
35 |
+ |
36 |
+diff --git a/exif-gps.cpp b/exif-gps.cpp |
37 |
+index fb9f2cb..61b4736 100644 |
38 |
+--- a/exif-gps.cpp |
39 |
++++ b/exif-gps.cpp |
40 |
+@@ -41,8 +41,7 @@ |
41 |
+ #include <unistd.h> |
42 |
+ |
43 |
+ |
44 |
+-#include "exiv2/image.hpp" |
45 |
+-#include "exiv2/exif.hpp" |
46 |
++#include "exiv2/exiv2.hpp" |
47 |
+ |
48 |
+ #include "gpsstructure.h" |
49 |
+ #include "exif-gps.h" |
50 |
+-- |
51 |
+2.22.0 |
52 |
+ |
53 |
|
54 |
diff --git a/sci-geosciences/gpscorrelate/gpscorrelate-1.6.1-r1.ebuild b/sci-geosciences/gpscorrelate/gpscorrelate-1.6.1-r1.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000000..859bf5a9d68 |
57 |
--- /dev/null |
58 |
+++ b/sci-geosciences/gpscorrelate/gpscorrelate-1.6.1-r1.ebuild |
59 |
@@ -0,0 +1,55 @@ |
60 |
+# Copyright 1999-2019 Gentoo Authors |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=7 |
64 |
+ |
65 |
+inherit desktop toolchain-funcs |
66 |
+ |
67 |
+DESCRIPTION="Tool for adjusting EXIF tags of your photos with a recorded GPS trace" |
68 |
+HOMEPAGE="https://github.com/freefoote/gpscorrelate" |
69 |
+SRC_URI="http://freefoote.dview.net/linux/${P}.tar.gz" |
70 |
+ |
71 |
+LICENSE="GPL-2" |
72 |
+SLOT="0" |
73 |
+KEYWORDS="~amd64 ~hppa ~x86" |
74 |
+IUSE="doc gtk" |
75 |
+ |
76 |
+BDEPEND=" |
77 |
+ app-text/docbook-xml-dtd:4.2 |
78 |
+ dev-libs/libxslt |
79 |
+ virtual/pkgconfig |
80 |
+" |
81 |
+DEPEND=" |
82 |
+ dev-libs/libxml2:2 |
83 |
+ media-gfx/exiv2:= |
84 |
+ gtk? ( x11-libs/gtk+:2 ) |
85 |
+" |
86 |
+DEPEND="${DEPEND}" |
87 |
+ |
88 |
+PATCHES=( |
89 |
+ "${FILESDIR}/${P}-makefile.patch" |
90 |
+ "${FILESDIR}/${P}-exiv2-0.27.1.patch" |
91 |
+) |
92 |
+ |
93 |
+src_compile() { |
94 |
+ tc-export CC CXX |
95 |
+ local opts="gpscorrelate gpscorrelate.1" |
96 |
+ use gtk && opts+=" gpscorrelate-gui BUILD_GUI=1" |
97 |
+ emake ${opts} |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ dobin ${PN} |
102 |
+ if use gtk; then |
103 |
+ dobin ${PN}-gui |
104 |
+ doicon ${PN}-gui.svg |
105 |
+ domenu ${PN}.desktop |
106 |
+ fi |
107 |
+ if use doc; then |
108 |
+ rm doc/gpscorrelate-manpage.xml* || die |
109 |
+ local DOCS=() |
110 |
+ local HTML_DOCS=( doc/. ) |
111 |
+ einstalldocs |
112 |
+ fi |
113 |
+ doman ${PN}.1 |
114 |
+} |