1 |
commit: f485f2efa7e7c461da643f59b98295d1f02b916f |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 29 22:43:28 2017 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 29 22:44:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f485f2ef |
7 |
|
8 |
media-libs/gexiv2: Fix compilation (bug #613778) |
9 |
|
10 |
Thanks to Markus Moll for the patch! |
11 |
|
12 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
13 |
|
14 |
.../gexiv2/files/gexiv2-0.10.5-stdexcept.patch | 11 ++++ |
15 |
media-libs/gexiv2/gexiv2-0.10.5-r1.ebuild | 60 ++++++++++++++++++++++ |
16 |
2 files changed, 71 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/gexiv2/files/gexiv2-0.10.5-stdexcept.patch b/media-libs/gexiv2/files/gexiv2-0.10.5-stdexcept.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..dc9c5825b90 |
21 |
--- /dev/null |
22 |
+++ b/media-libs/gexiv2/files/gexiv2-0.10.5-stdexcept.patch |
23 |
@@ -0,0 +1,11 @@ |
24 |
+diff -Naur gexiv2-0.10.5/gexiv2/gexiv2-metadata-gps.cpp gexiv2-0.10.5b/gexiv2/gexiv2-metadata-gps.cpp |
25 |
+--- gexiv2-0.10.5/gexiv2/gexiv2-metadata-gps.cpp 2017-03-19 18:00:55.000000000 +0100 |
26 |
++++ gexiv2-0.10.5b/gexiv2/gexiv2-metadata-gps.cpp 2017-03-26 09:45:44.638692802 +0200 |
27 |
+@@ -12,6 +12,7 @@ |
28 |
+ #include "gexiv2-metadata-private.h" |
29 |
+ #include <string> |
30 |
+ #include <cmath> |
31 |
++#include <stdexcept> |
32 |
+ #include <stdio.h> |
33 |
+ #include <glib-object.h> |
34 |
+ #include <exiv2/exif.hpp> |
35 |
|
36 |
diff --git a/media-libs/gexiv2/gexiv2-0.10.5-r1.ebuild b/media-libs/gexiv2/gexiv2-0.10.5-r1.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..8ba9a36dfba |
39 |
--- /dev/null |
40 |
+++ b/media-libs/gexiv2/gexiv2-0.10.5-r1.ebuild |
41 |
@@ -0,0 +1,60 @@ |
42 |
+# Copyright 1999-2017 Gentoo Foundation |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=6 |
46 |
+ |
47 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
48 |
+ |
49 |
+inherit autotools eutils multilib python-r1 toolchain-funcs versionator xdg-utils |
50 |
+ |
51 |
+MY_PV=$(get_version_component_range 1-2) |
52 |
+ |
53 |
+DESCRIPTION="GObject-based wrapper around the Exiv2 library" |
54 |
+HOMEPAGE="https://wiki.gnome.org/Projects/gexiv2" |
55 |
+SRC_URI="mirror://gnome/sources/${PN}/${MY_PV}/${P}.tar.xz" |
56 |
+ |
57 |
+LICENSE="LGPL-2.1" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
60 |
+IUSE="introspection python static-libs test" |
61 |
+ |
62 |
+REQUIRED_USE=" |
63 |
+ python? ( introspection ${PYTHON_REQUIRED_USE} ) |
64 |
+ test? ( python ) |
65 |
+" |
66 |
+ |
67 |
+RDEPEND="${PYTHON_DEPS} |
68 |
+ >=dev-libs/glib-2.26.1:2 |
69 |
+ >=media-gfx/exiv2-0.21:0= |
70 |
+ introspection? ( dev-libs/gobject-introspection:= )" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ virtual/pkgconfig" |
73 |
+ |
74 |
+PATCHES=( |
75 |
+ "${FILESDIR}"/${PN}-0.10.5-stdexcept.patch |
76 |
+) |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ xdg_environment_reset |
80 |
+ tc-export CXX |
81 |
+ default |
82 |
+ eautoreconf |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ econf \ |
87 |
+ $(use_enable introspection) \ |
88 |
+ $(use_enable static-libs static) |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ emake DESTDIR="${D}" LIB="$(get_libdir)" install |
93 |
+ dodoc AUTHORS NEWS README THANKS |
94 |
+ |
95 |
+ if use python ; then |
96 |
+ python_moduleinto gi/overrides/ |
97 |
+ python_foreach_impl python_domodule GExiv2.py |
98 |
+ fi |
99 |
+ |
100 |
+ use static-libs || prune_libtool_files --modules |
101 |
+} |