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: Fri, 22 May 2020 10:52:04
Message-Id: 1590144707.ff4e0908abed89d11aa2ec79996752ea58132715.asturm@gentoo
1 commit: ff4e0908abed89d11aa2ec79996752ea58132715
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 22 10:46:38 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 22 10:51:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff4e0908
7
8 media-gfx/exiv2: 0.27.3_rc1 version bump w/o KEYWORDS
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-gfx/exiv2/Manifest | 1 +
14 media-gfx/exiv2/exiv2-0.27.3_rc1.ebuild | 103 ++++++++++++++++++++++++++++++++
15 2 files changed, 104 insertions(+)
16
17 diff --git a/media-gfx/exiv2/Manifest b/media-gfx/exiv2/Manifest
18 index 7f1104c26aa..99cb5ff7f89 100644
19 --- a/media-gfx/exiv2/Manifest
20 +++ b/media-gfx/exiv2/Manifest
21 @@ -1 +1,2 @@
22 DIST exiv2-0.27.2-Source.tar.gz 27591236 BLAKE2B bd10d71356e4c8a465b71f8ceac07fbf2fd6cfb287cb22774568ad35eb38200be504e297224920af50a15ab4e9da98384ff4da7c33713f5346b33738380698b0 SHA512 39eb7d920dce18b275ac66f4766c7c73f7c72ee10e3e1e43d84c611b24f48ce20a70eac6d53948914e93242a25b8b52cc4bc760ee611ddcd77481306c1f9e721
23 +DIST exiv2-0.27.3_rc1.tar.gz 27577726 BLAKE2B bb78b33419bf94e49a437e4d4b3820a9d178550cdcf4ebca52a3feab68e7d1a31881412edfff64ab80036b4912de2e1df57130ffdc308c3b585e378438580fb0 SHA512 1650f20c8572516c92fbb2af4ee18ce6dc9aa07db8c6ebf7e3bec3e7a02e1a13b1b60da88a11eba864bb805ce4d78c8acd4a0264fb842ab39dcfa6983b314328
24
25 diff --git a/media-gfx/exiv2/exiv2-0.27.3_rc1.ebuild b/media-gfx/exiv2/exiv2-0.27.3_rc1.ebuild
26 new file mode 100644
27 index 00000000000..c7b63dfb015
28 --- /dev/null
29 +++ b/media-gfx/exiv2/exiv2-0.27.3_rc1.ebuild
30 @@ -0,0 +1,103 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +if [[ ${PV} = *9999 ]]; then
37 + EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git"
38 + inherit git-r3
39 +else
40 + MY_PV="${PV/_/-}"
41 + SRC_URI="https://github.com/Exiv2/exiv2/archive/v${MY_PV^^}.tar.gz -> ${P}.tar.gz"
42 +# KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
43 +fi
44 +
45 +CMAKE_ECLASS=cmake
46 +PYTHON_COMPAT=( python3_{6,7,8} )
47 +inherit cmake-multilib python-any-r1
48 +
49 +DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
50 +HOMEPAGE="https://www.exiv2.org/"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0/27"
54 +IUSE="doc examples nls +png webready +xmp"
55 +
56 +BDEPEND="
57 + doc? (
58 + ${PYTHON_DEPS}
59 + app-doc/doxygen
60 + dev-libs/libxslt
61 + media-gfx/graphviz
62 + virtual/pkgconfig
63 + )
64 + nls? ( sys-devel/gettext )
65 +"
66 +DEPEND="
67 + >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
68 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
69 + png? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
70 + webready? (
71 + >net-libs/libssh-0.9.1[${MULTILIB_USEDEP}]
72 + net-misc/curl[${MULTILIB_USEDEP}]
73 + )
74 + xmp? ( dev-libs/expat[${MULTILIB_USEDEP}] )
75 +"
76 +RDEPEND="${DEPEND}"
77 +
78 +DOCS=( README.md doc/ChangeLog doc/cmd.txt )
79 +
80 +S="${WORKDIR}/${PN}-${MY_PV^^}"
81 +
82 +pkg_setup() {
83 + use doc && python-any-r1_pkg_setup
84 +}
85 +
86 +src_prepare() {
87 + # FIXME @upstream:
88 + einfo "Converting doc/cmd.txt to UTF-8"
89 + iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
90 + mv -f doc/cmd.txt.tmp doc/cmd.txt || die
91 +
92 + cmake_src_prepare
93 +
94 + sed -e "/^include.*compilerFlags/s/^/#DONT /" -i CMakeLists.txt || die
95 +}
96 +
97 +multilib_src_configure() {
98 + local mycmakeargs=(
99 + -DEXIV2_BUILD_SAMPLES=NO
100 + -DEXIV2_BUILD_PO=$(usex nls)
101 + -DEXIV2_ENABLE_NLS=$(usex nls)
102 + -DEXIV2_ENABLE_PNG=$(usex png)
103 + -DEXIV2_ENABLE_CURL=$(usex webready)
104 + -DEXIV2_ENABLE_SSH=$(usex webready)
105 + -DEXIV2_ENABLE_WEBREADY=$(usex webready)
106 + -DEXIV2_ENABLE_XMP=$(usex xmp)
107 + $(multilib_is_native_abi || echo -DEXIV2_BUILD_EXIV2_COMMAND=NO)
108 + $(multilib_is_native_abi && echo -DEXIV2_BUILD_DOC=$(usex doc))
109 + -DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html
110 + )
111 +
112 + cmake_src_configure
113 +}
114 +
115 +multilib_src_compile() {
116 + cmake_src_compile
117 +
118 + if multilib_is_native_abi; then
119 + use doc && eninja doc
120 + fi
121 +}
122 +
123 +multilib_src_install_all() {
124 + use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
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 +}