1 |
commit: 273151668540b3fe89620f1fe4bb9d648f89dadb |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 12 21:54:56 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 12 22:06:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27315166 |
7 |
|
8 |
media-gfx/exiv2: Fix pkgconfig |
9 |
|
10 |
Closes: https://bugs.gentoo.org/675240 |
11 |
Thanks-to: Mike Auty <ikelos <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.55, Repoman-2.3.12 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
media-gfx/exiv2/exiv2-0.27.0-r2.ebuild | 109 +++++++++++++++++++++ |
16 |
.../exiv2/files/exiv2-0.27.0-fix-pkgconfig.patch | 24 +++++ |
17 |
2 files changed, 133 insertions(+) |
18 |
|
19 |
diff --git a/media-gfx/exiv2/exiv2-0.27.0-r2.ebuild b/media-gfx/exiv2/exiv2-0.27.0-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..4b30b442529 |
22 |
--- /dev/null |
23 |
+++ b/media-gfx/exiv2/exiv2-0.27.0-r2.ebuild |
24 |
@@ -0,0 +1,109 @@ |
25 |
+# Copyright 1999-2019 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+if [[ ${PV} = *9999 ]]; then |
31 |
+ EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git" |
32 |
+ inherit git-r3 |
33 |
+else |
34 |
+ SRC_URI="http://exiv2.dyndns.org/builds/${P}a-Source.tar.gz" |
35 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris" |
36 |
+fi |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
39 |
+inherit cmake-multilib python-any-r1 |
40 |
+ |
41 |
+DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility" |
42 |
+HOMEPAGE="http://www.exiv2.org/" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0/27" |
46 |
+IUSE="doc examples nls +png webready +xmp" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
50 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
51 |
+ png? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) |
52 |
+ webready? ( |
53 |
+ net-libs/libssh[${MULTILIB_USEDEP}] |
54 |
+ net-misc/curl[${MULTILIB_USEDEP}] |
55 |
+ ) |
56 |
+ xmp? ( dev-libs/expat[${MULTILIB_USEDEP}] ) |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ doc? ( |
60 |
+ ${PYTHON_DEPS} |
61 |
+ app-doc/doxygen |
62 |
+ dev-libs/libxslt |
63 |
+ media-gfx/graphviz |
64 |
+ virtual/pkgconfig |
65 |
+ ) |
66 |
+ nls? ( sys-devel/gettext ) |
67 |
+" |
68 |
+ |
69 |
+DOCS=( README.md doc/ChangeLog doc/cmd.txt ) |
70 |
+ |
71 |
+S="${S}-Source" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ # pending upstream |
75 |
+ "${FILESDIR}"/${P}-png-broken-icc-profile.patch |
76 |
+ # bug 675240 |
77 |
+ "${FILESDIR}"/${P}-fix-pkgconfig.patch |
78 |
+) |
79 |
+ |
80 |
+pkg_setup() { |
81 |
+ use doc && python-any-r1_pkg_setup |
82 |
+} |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ # FIXME @upstream: |
86 |
+ einfo "Converting doc/cmd.txt to UTF-8" |
87 |
+ iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die |
88 |
+ mv -f doc/cmd.txt.tmp doc/cmd.txt || die |
89 |
+ |
90 |
+ if use doc; then |
91 |
+ einfo "Updating doxygen config" |
92 |
+ doxygen &>/dev/null -u config/Doxyfile || die |
93 |
+ fi |
94 |
+ |
95 |
+ cmake-utils_src_prepare |
96 |
+} |
97 |
+ |
98 |
+multilib_src_configure() { |
99 |
+ local mycmakeargs=( |
100 |
+ -DEXIV2_BUILD_SAMPLES=NO |
101 |
+ -DEXIV2_BUILD_PO=$(usex nls) |
102 |
+ -DEXIV2_ENABLE_NLS=$(usex nls) |
103 |
+ -DEXIV2_ENABLE_PNG=$(usex png) |
104 |
+ -DEXIV2_ENABLE_CURL=$(usex webready) |
105 |
+ -DEXIV2_ENABLE_SSH=$(usex webready) |
106 |
+ -DEXIV2_ENABLE_WEBREADY=$(usex webready) |
107 |
+ -DEXIV2_ENABLE_XMP=$(usex xmp) |
108 |
+ $(multilib_is_native_abi || echo -DEXIV2_BUILD_EXIV2_COMMAND=NO) |
109 |
+ ) |
110 |
+ |
111 |
+ cmake-utils_src_configure |
112 |
+} |
113 |
+ |
114 |
+multilib_src_compile() { |
115 |
+ cmake-utils_src_compile |
116 |
+ |
117 |
+ if multilib_is_native_abi; then |
118 |
+ use doc && emake -j1 doc |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+multilib_src_install_all() { |
123 |
+ use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} ) |
124 |
+ use doc && HTML_DOCS=( "${S}"/doc/html/. ) |
125 |
+ |
126 |
+ einstalldocs |
127 |
+ find "${D}" -name '*.la' -delete || die |
128 |
+ |
129 |
+ if use examples; then |
130 |
+ docinto examples |
131 |
+ dodoc samples/*.cpp |
132 |
+ fi |
133 |
+} |
134 |
|
135 |
diff --git a/media-gfx/exiv2/files/exiv2-0.27.0-fix-pkgconfig.patch b/media-gfx/exiv2/files/exiv2-0.27.0-fix-pkgconfig.patch |
136 |
new file mode 100644 |
137 |
index 00000000000..5fc430e915d |
138 |
--- /dev/null |
139 |
+++ b/media-gfx/exiv2/files/exiv2-0.27.0-fix-pkgconfig.patch |
140 |
@@ -0,0 +1,24 @@ |
141 |
+From e706cca19027dbdf53aeac2041ecce9ccb313c17 Mon Sep 17 00:00:00 2001 |
142 |
+From: Luis Diaz Mas <piponazo@×××××.com> |
143 |
+Date: Sat, 12 Jan 2019 13:39:12 +0100 |
144 |
+Subject: [PATCH] Fixes in .pc file for being compatible with more |
145 |
+ distributions |
146 |
+ |
147 |
+--- |
148 |
+ cmake/exiv2.pc.in | 4 ++-- |
149 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
150 |
+ |
151 |
+diff --git a/cmake/exiv2.pc.in b/cmake/exiv2.pc.in |
152 |
+index e477696d5..9018472be 100644 |
153 |
+--- a/cmake/exiv2.pc.in |
154 |
++++ b/cmake/exiv2.pc.in |
155 |
+@@ -1,7 +1,7 @@ |
156 |
+ prefix=@CMAKE_INSTALL_PREFIX@ |
157 |
+ exec_prefix=${prefix} |
158 |
+-libdir=${prefix}/lib |
159 |
+-includedir=${prefix}/include |
160 |
++libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ |
161 |
++includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ |
162 |
+ |
163 |
+ Name: exiv2 |
164 |
+ Description: @PROJECT_DESCRIPTION@ |