Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/exiv2/
Date: Sat, 11 May 2019 09:23:33
Message-Id: 1557566577.302ecc56368877956d7c5ac852d7d2abe5feff68.asturm@gentoo
1 commit: 302ecc56368877956d7c5ac852d7d2abe5feff68
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 11 09:22:30 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 11 09:22:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=302ecc56
7
8 media-gfx/exiv2: 0.27.1 version bump
9
10 Closes: https://bugs.gentoo.org/685448
11 Package-Manager: Portage-2.3.66, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 media-gfx/exiv2/Manifest | 1 +
15 media-gfx/exiv2/exiv2-0.27.1.ebuild | 99 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 100 insertions(+)
17
18 diff --git a/media-gfx/exiv2/Manifest b/media-gfx/exiv2/Manifest
19 index 364b5bf76aa..3db54c1b6ec 100644
20 --- a/media-gfx/exiv2/Manifest
21 +++ b/media-gfx/exiv2/Manifest
22 @@ -1 +1,2 @@
23 DIST exiv2-0.27.0a-Source.tar.gz 27168207 BLAKE2B 3f5c4fbe4f41c1114c0a54433c810ed0fb28ae3fbe8258eb7a02da716b833d62a94725f839accf22600c420ace5cdbead599440d335ff694a4f123820613ecd9 SHA512 9873d6815c2a87b7cdc49e8863f72c713fe1054f2f46d2c9aaa7ca2cd42096a36c2970e6a396af9000faba32fa9ff054b9d2c5e22f3e2624669440e553239f9c
24 +DIST exiv2-0.27.1-Source.tar.gz 27210365 BLAKE2B 1ce9a0b26c0908b876e35b5488fc5680789eb864376b379d9bd57977d456a5c6dc5983c4a8ef3e3558ffc061c0b7cda1d1f89a1629af920de1747fd4afbdbb39 SHA512 038b51241f5bfb323eb298695b5397a7d88d5c7d7303828e5e20b3f82c3df2615cee3e7e3426ea17438ca05d5abea10984cfd41f0649ddab72df1d1415bf3529
25
26 diff --git a/media-gfx/exiv2/exiv2-0.27.1.ebuild b/media-gfx/exiv2/exiv2-0.27.1.ebuild
27 new file mode 100644
28 index 00000000000..c7e46b63a60
29 --- /dev/null
30 +++ b/media-gfx/exiv2/exiv2-0.27.1.ebuild
31 @@ -0,0 +1,99 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +if [[ ${PV} = *9999 ]]; then
38 + EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git"
39 + inherit git-r3
40 +else
41 + SRC_URI="https://exiv2.org/builds/${P}-Source.tar.gz"
42 + 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"
43 +fi
44 +
45 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
46 +inherit cmake-multilib python-any-r1
47 +
48 +DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
49 +HOMEPAGE="http://www.exiv2.org/"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0/27"
53 +IUSE="doc examples nls +png webready +xmp"
54 +
55 +BDEPEND="
56 + doc? (
57 + ${PYTHON_DEPS}
58 + app-doc/doxygen
59 + dev-libs/libxslt
60 + media-gfx/graphviz
61 + virtual/pkgconfig
62 + )
63 + nls? ( sys-devel/gettext )
64 +"
65 +DEPEND="
66 + >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
67 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
68 + png? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
69 + webready? (
70 + net-libs/libssh[${MULTILIB_USEDEP}]
71 + net-misc/curl[${MULTILIB_USEDEP}]
72 + )
73 + xmp? ( dev-libs/expat[${MULTILIB_USEDEP}] )
74 +"
75 +RDEPEND="${DEPEND}"
76 +
77 +DOCS=( README.md doc/ChangeLog doc/cmd.txt )
78 +
79 +S="${S}-Source"
80 +
81 +pkg_setup() {
82 + use doc && python-any-r1_pkg_setup
83 +}
84 +
85 +src_prepare() {
86 + # FIXME @upstream:
87 + einfo "Converting doc/cmd.txt to UTF-8"
88 + iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
89 + mv -f doc/cmd.txt.tmp doc/cmd.txt || die
90 +
91 + cmake-utils_src_prepare
92 +}
93 +
94 +multilib_src_configure() {
95 + local mycmakeargs=(
96 + -DEXIV2_BUILD_SAMPLES=NO
97 + -DEXIV2_BUILD_PO=$(usex nls)
98 + -DEXIV2_ENABLE_NLS=$(usex nls)
99 + -DEXIV2_ENABLE_PNG=$(usex png)
100 + -DEXIV2_ENABLE_CURL=$(usex webready)
101 + -DEXIV2_ENABLE_SSH=$(usex webready)
102 + -DEXIV2_ENABLE_WEBREADY=$(usex webready)
103 + -DEXIV2_ENABLE_XMP=$(usex xmp)
104 + $(multilib_is_native_abi || echo -DEXIV2_BUILD_EXIV2_COMMAND=NO)
105 + $(multilib_is_native_abi && echo -DEXIV2_BUILD_DOC=$(usex doc))
106 + -DCMAKE_INSTALL_DOCDIR=${EPREFIX}/usr/share/doc/${PF}/html
107 + )
108 +
109 + cmake-utils_src_configure
110 +}
111 +
112 +multilib_src_compile() {
113 + cmake-utils_src_compile
114 +
115 + if multilib_is_native_abi; then
116 + use doc && eninja doc
117 + fi
118 +}
119 +
120 +multilib_src_install_all() {
121 + use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
122 +
123 + einstalldocs
124 + find "${D}" -name '*.la' -delete || die
125 +
126 + if use examples; then
127 + docinto examples
128 + dodoc samples/*.cpp
129 + fi
130 +}