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: Tue, 18 Sep 2018 20:54:22
Message-Id: 1537304030.f33aacc28aa4a62c2123dbbecfbdb911dd4ba470.asturm@gentoo
1 commit: f33aacc28aa4a62c2123dbbecfbdb911dd4ba470
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 18 20:45:33 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 18 20:53:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f33aacc2
7
8 media-gfx/exiv2: Add 0.26_p20180811 snapshot
9
10 Custom packed tarball based on upstream 0.26 branch as of 2018-08-11,
11 fixing CVE-2018-12264, CVE-2018-12265,
12 with downstream updated config.{guess,sub} and fixed CVE-2017-17723.
13
14 Bug: https://bugs.gentoo.org/647812
15 Bug: https://bugs.gentoo.org/658236
16 Closes: https://bugs.gentoo.org/663870
17 Package-Manager: Portage-2.3.49, Repoman-2.3.10
18
19 media-gfx/exiv2/Manifest | 1 +
20 media-gfx/exiv2/exiv2-0.26_p20180811.ebuild | 123 ++++++++++++++++++++++++++++
21 2 files changed, 124 insertions(+)
22
23 diff --git a/media-gfx/exiv2/Manifest b/media-gfx/exiv2/Manifest
24 index 7bb21efe1f5..bcec16778f6 100644
25 --- a/media-gfx/exiv2/Manifest
26 +++ b/media-gfx/exiv2/Manifest
27 @@ -1 +1,2 @@
28 DIST exiv2-0.26_p20180319.tar.gz 28383543 BLAKE2B 753a2ebdb2033490c0f66cb1fb2574f02125f17813f6cbaf5eca66e053af9a2cdbc1266f0a033f0706ec22b31acd6e87271e426a335a58ee947757b52d283489 SHA512 852ce2cffcc0a2d902a939933127fdf5fa0b50020e1faf3ab0a375b129b9f61c7b97b76d4f39e376e7288d7cc045867bd1a96ae15dd0b7c0bcd1ba15259628e1
29 +DIST exiv2-0.26_p20180811.tar.xz 1746120 BLAKE2B 55d8719fd3726f2ead772b9b330dd9d452a6ddfd06df14d4d51a4139792de054bd891b7006f9813d5fa75cfd0a9dea1d0d254d8c978ef20cb9a14a9d294ab2cf SHA512 5f48b8e6cc22520059da388d184797090582df688bc04a32dd9ae6b80bacea4a2cbc81709c7274ba7ff1d8c5c318dd6428f027bdc63f590cedc83025cf0e5d51
30
31 diff --git a/media-gfx/exiv2/exiv2-0.26_p20180811.ebuild b/media-gfx/exiv2/exiv2-0.26_p20180811.ebuild
32 new file mode 100644
33 index 00000000000..3facf72d450
34 --- /dev/null
35 +++ b/media-gfx/exiv2/exiv2-0.26_p20180811.ebuild
36 @@ -0,0 +1,123 @@
37 +# Copyright 1999-2018 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
43 +inherit cmake-multilib python-any-r1
44 +
45 +DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
46 +HOMEPAGE="http://www.exiv2.org/"
47 +SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0/26"
51 +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"
52 +IUSE="doc examples nls png webready xmp"
53 +
54 +RDEPEND="
55 + >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
56 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
57 + png? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
58 + webready? (
59 + net-libs/libssh[${MULTILIB_USEDEP}]
60 + net-misc/curl[${MULTILIB_USEDEP}]
61 + )
62 + xmp? ( >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] )
63 +"
64 +DEPEND="${RDEPEND}
65 + doc? (
66 + ${PYTHON_DEPS}
67 + app-doc/doxygen
68 + dev-libs/libxslt
69 + media-gfx/graphviz
70 + virtual/pkgconfig
71 + )
72 + nls? ( sys-devel/gettext )
73 +"
74 +
75 +DOCS=( README doc/ChangeLog doc/cmd.txt )
76 +
77 +PATCHES=(
78 + # TODO: Take to upstream
79 + "${FILESDIR}"/${PN}-0.26-fix-docs.patch
80 + "${FILESDIR}"/${PN}-0.26-tools-optional.patch
81 +)
82 +
83 +pkg_setup() {
84 + use doc && python-any-r1_pkg_setup
85 +}
86 +
87 +src_prepare() {
88 + if [[ ${PV} != *9999 ]] ; then
89 + if [[ -d po ]] ; then
90 + pushd po > /dev/null || die
91 + local lang
92 + for lang in *.po; do
93 + if [[ -e ${lang} ]] \
94 + && ! has ${lang/.po/} ${LINGUAS-${lang/.po/}} ; then
95 + case ${lang} in
96 + CMakeLists.txt | \
97 + ${PN}.pot) ;;
98 + *) rm -r ${lang} || die ;;
99 + esac
100 + fi
101 + done
102 + popd > /dev/null || die
103 + else
104 + die "Failed to prepare LINGUAS - po directory moved?"
105 + fi
106 + fi
107 +
108 + # FIXME @upstream:
109 + einfo "Converting doc/cmd.txt to UTF-8"
110 + iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
111 + mv -f doc/cmd.txt.tmp doc/cmd.txt || die
112 +
113 + if use doc; then
114 + einfo "Updating doxygen config"
115 + doxygen &>/dev/null -u config/Doxyfile || die
116 + fi
117 +
118 + edos2unix samples/exiv2json.cpp # workaround for CVE-2017-18005 patch
119 +
120 + cmake-utils_src_prepare
121 +}
122 +
123 +multilib_src_configure() {
124 + local mycmakeargs=(
125 + -DEXIV2_ENABLE_BUILD_SAMPLES=NO
126 + -DEXIV2_ENABLE_BUILD_PO=$(usex nls)
127 + -DEXIV2_ENABLE_NLS=$(usex nls)
128 + -DEXIV2_ENABLE_PNG=$(usex png)
129 + -DEXIV2_ENABLE_CURL=$(usex webready)
130 + -DEXIV2_ENABLE_SSH=$(usex webready)
131 + -DEXIV2_ENABLE_WEBREADY=$(usex webready)
132 + -DEXIV2_ENABLE_XMP=$(usex xmp)
133 + -DEXIV2_ENABLE_LIBXMP=NO
134 + $(multilib_is_native_abi || echo -DEXIV2_ENABLE_TOOLS=NO)
135 + )
136 +
137 + cmake-utils_src_configure
138 +}
139 +
140 +multilib_src_compile() {
141 + cmake-utils_src_compile
142 +
143 + if multilib_is_native_abi; then
144 + use doc && emake -j1 doc
145 + fi
146 +}
147 +
148 +multilib_src_install_all() {
149 + use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
150 + use doc && HTML_DOCS=( "${S}"/doc/html/. )
151 +
152 + einstalldocs
153 + find "${D}" -name '*.la' -delete || die
154 +
155 + if use examples; then
156 + docinto examples
157 + dodoc samples/*.cpp
158 + fi
159 +}