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: Sun, 05 Nov 2017 13:23:36
Message-Id: 1509888198.7e35d9a3c41e4a2559751cce039434994636aa84.asturm@gentoo
1 commit: 7e35d9a3c41e4a2559751cce039434994636aa84
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 5 13:17:01 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 5 13:23:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e35d9a3
7
8 media-gfx/exiv2: Add 0.26_p20171104 snapshot
9
10 0.26 branch now contains all of my downstream backports.
11
12 Package-Manager: Portage-2.3.13, Repoman-2.3.4
13
14 media-gfx/exiv2/Manifest | 1 +
15 media-gfx/exiv2/exiv2-0.26_p20171104.ebuild | 128 ++++++++++++++++++++++++++++
16 2 files changed, 129 insertions(+)
17
18 diff --git a/media-gfx/exiv2/Manifest b/media-gfx/exiv2/Manifest
19 index db32671e88e..b2098ec3ff2 100644
20 --- a/media-gfx/exiv2/Manifest
21 +++ b/media-gfx/exiv2/Manifest
22 @@ -1,2 +1,3 @@
23 DIST exiv2-0.25.tar.gz 5434325 SHA256 c80bfc778a15fdb06f71265db2c3d49d8493c382e516cb99b8c9f9cbde36efa4 SHA512 08d4e655ffdde715e0214f4bef01d55aba9b8ba517456a60e254a0f8541c20479e407545db28ca90a69dee8def6941fdd88f9a557fb382ebebe49e363aca8e8e WHIRLPOOL f9e7a6947dac5870e0574253b8c1cb1e7d31a916a9e1c4417c73168046c0b4bed90b9c77253444604163bcf6dca204dab92a52cb03bdcb0f85c807327623f8ac
24 DIST exiv2-0.26_p20171018.tar.gz 28370645 SHA256 7dea665ff7e58a7a858b1aa624d75f27f8b8b154cce645ef970344982c9de449 SHA512 fb4c867a5879ab46f31a1a8a7f8d24395620d6ff2a1088bc9d8d589ca110fad063e19266f4e2b75ad7bebc5b87141ed95db8e214220670a4d11092dfe654558c WHIRLPOOL b2c5060fbbb177479ffd8fbf68957d2329c0383da673b3555f602e574ee90672f55dd6105dcb25e47c9efde97dd4721d05596b22ab9f954bf9e502ffac0ee45c
25 +DIST exiv2-0.26_p20171104.tar.gz 28368697 SHA256 f7a46c0b1d3d3c30518202e62dbe086029f584a064bbb531a0ab11270a454007 SHA512 6f6a884d7978e54dceb9ce45248cd0425ff469887c85ef52b0e38cb755970f69fce96b4b5317c8e8070b833f72ca214696042aac71292a6f9c3440f6a369d474 WHIRLPOOL 7baf5fcde327b2e1decde48f44b616f98fab7c65d22ee5e94e0b356fad4d7950c116db17a94b3c91954ac1565c3fe2853b83262c0a4597744dea708b304dce09
26
27 diff --git a/media-gfx/exiv2/exiv2-0.26_p20171104.ebuild b/media-gfx/exiv2/exiv2-0.26_p20171104.ebuild
28 new file mode 100644
29 index 00000000000..c0bc75ce027
30 --- /dev/null
31 +++ b/media-gfx/exiv2/exiv2-0.26_p20171104.ebuild
32 @@ -0,0 +1,128 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +LINGUAS="bs de es fi fr gl ms pl pt ru sk sv ug uk vi"
39 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
40 +if [[ ${PV} = *9999 ]]; then
41 + EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git"
42 + EGIT_BRANCH="0.26"
43 + GIT_ECLASS=git-r3
44 +else
45 + COMMIT=900d2417dbeb46e14cbf65fc2798ed1d043ab76d
46 + SRC_URI="https://github.com/Exiv2/${PN}/tarball/${COMMIT} -> ${P}.tar.gz"
47 + 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"
48 +fi
49 +inherit cmake-multilib python-any-r1 vcs-snapshot
50 +
51 +DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
52 +HOMEPAGE="http://www.exiv2.org/"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0/26"
56 +IUSE="doc examples nls png webready xmp $(printf 'linguas_%s ' ${LINGUAS})"
57 +
58 +RDEPEND="
59 + >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
60 + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
61 + png? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
62 + webready? (
63 + net-libs/libssh[${MULTILIB_USEDEP}]
64 + net-misc/curl[${MULTILIB_USEDEP}]
65 + )
66 + xmp? ( >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] )
67 +"
68 +DEPEND="${RDEPEND}
69 + doc? (
70 + ${PYTHON_DEPS}
71 + app-doc/doxygen
72 + dev-libs/libxslt
73 + media-gfx/graphviz
74 + virtual/pkgconfig
75 + )
76 + nls? ( sys-devel/gettext )
77 +"
78 +
79 +DOCS=( README doc/ChangeLog doc/cmd.txt )
80 +
81 +PATCHES=(
82 + # TODO: Take to upstream
83 + "${FILESDIR}"/${PN}-0.26-fix-docs.patch
84 + "${FILESDIR}"/${PN}-0.26-tools-optional.patch
85 +)
86 +
87 +pkg_setup() {
88 + use doc && python-any-r1_pkg_setup
89 +}
90 +
91 +src_prepare() {
92 + if [[ ${PV} != *9999 ]] ; then
93 + if [[ -d po ]] ; then
94 + pushd po > /dev/null || die
95 + local lang
96 + for lang in *.po; do
97 + if [[ -e ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then
98 + case ${lang} in
99 + CMakeLists.txt | \
100 + ${PN}.pot) ;;
101 + *) rm -r ${lang} || die ;;
102 + esac
103 + fi
104 + done
105 + popd > /dev/null || die
106 + else
107 + die "Failed to prepare LINGUAS - po directory moved?"
108 + fi
109 + fi
110 +
111 + # FIXME @upstream:
112 + einfo "Converting doc/cmd.txt to UTF-8"
113 + iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
114 + mv -f doc/cmd.txt.tmp doc/cmd.txt || die
115 +
116 + if use doc; then
117 + einfo "Updating doxygen config"
118 + doxygen &>/dev/null -u config/Doxyfile || die
119 + fi
120 +
121 + cmake-utils_src_prepare
122 +}
123 +
124 +multilib_src_configure() {
125 + local mycmakeargs=(
126 + -DEXIV2_ENABLE_BUILD_SAMPLES=NO
127 + -DEXIV2_ENABLE_BUILD_PO=$(usex nls)
128 + -DEXIV2_ENABLE_NLS=$(usex nls)
129 + -DEXIV2_ENABLE_PNG=$(usex png)
130 + -DEXIV2_ENABLE_CURL=$(usex webready)
131 + -DEXIV2_ENABLE_SSH=$(usex webready)
132 + -DEXIV2_ENABLE_WEBREADY=$(usex webready)
133 + -DEXIV2_ENABLE_XMP=$(usex xmp)
134 + -DEXIV2_ENABLE_LIBXMP=NO
135 + $(multilib_is_native_abi || echo -DEXIV2_ENABLE_TOOLS=NO)
136 + )
137 +
138 + cmake-utils_src_configure
139 +}
140 +
141 +multilib_src_compile() {
142 + cmake-utils_src_compile
143 +
144 + if multilib_is_native_abi; then
145 + use doc && emake -j1 doc
146 + fi
147 +}
148 +
149 +multilib_src_install_all() {
150 + use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
151 + use doc && HTML_DOCS=( "${S}"/doc/html/. )
152 +
153 + einstalldocs
154 + find "${D}" -name '*.la' -delete || die
155 +
156 + if use examples; then
157 + docinto examples
158 + dodoc samples/*.cpp
159 + fi
160 +}