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/files/, media-gfx/exiv2/
Date: Mon, 27 Feb 2023 18:43:04
Message-Id: 1677523353.076c0de0e5b6263423cea844bcfd3e5562ef85e7.asturm@gentoo
1 commit: 076c0de0e5b6263423cea844bcfd3e5562ef85e7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 18:36:36 2023 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 18:42:33 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=076c0de0
7
8 media-gfx/exiv2: drop 0.27.5-r1
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 media-gfx/exiv2/Manifest | 1 -
13 media-gfx/exiv2/exiv2-0.27.5-r1.ebuild | 115 ---------------------
14 .../exiv2/files/exiv2-0.27.5-musl-tests.patch | 56 ----------
15 3 files changed, 172 deletions(-)
16
17 diff --git a/media-gfx/exiv2/Manifest b/media-gfx/exiv2/Manifest
18 index 5a905dcc84d7..30159e1ec4d9 100644
19 --- a/media-gfx/exiv2/Manifest
20 +++ b/media-gfx/exiv2/Manifest
21 @@ -1,2 +1 @@
22 -DIST exiv2-0.27.5-Source.tar.gz 32720608 BLAKE2B 803cb853fd049b28d309952c2332589a8544ff90c16fc1a588b6f1a2d4ae5e96da7ae746cf2247954ac54e155b84e0ad1f4f2d89f22d07e7bbd34038f0e292a5 SHA512 0f2d2dfbc976052a428dfeb597225d3ea3c725f584d05b99316bd4aa9cbf0ba5e1e37bcde71f9041975cf003b4fdb578c559adb144268d784bfd64494f451491
23 DIST exiv2-0.27.6-Source.tar.gz 32280263 BLAKE2B a025452b7e70aef109a2f7831ba5c0528b0cb8fda92e5959a5927abd442d650f8d40cc47f56d8f87508e5f37e8378728f99e3a4fa96e7a0319cb4542659d9a60 SHA512 045d7fb391202b53897336094812600680141a292367a9194e9529bccb8ab54465190ea0f0636970114402a38840b33b2fcf2edf7b6c616f3e585fa295a887a4
24
25 diff --git a/media-gfx/exiv2/exiv2-0.27.5-r1.ebuild b/media-gfx/exiv2/exiv2-0.27.5-r1.ebuild
26 deleted file mode 100644
27 index e6e220a5330b..000000000000
28 --- a/media-gfx/exiv2/exiv2-0.27.5-r1.ebuild
29 +++ /dev/null
30 @@ -1,115 +0,0 @@
31 -# Copyright 1999-2023 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=8
35 -
36 -if [[ ${PV} = *9999* ]]; then
37 - EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git"
38 - inherit git-r3
39 -else
40 - SRC_URI="https://exiv2.org/builds/${P}-Source.tar.gz"
41 - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
42 - S="${WORKDIR}/${P}-Source"
43 -fi
44 -
45 -PYTHON_COMPAT=( python3_{9..11} )
46 -inherit cmake-multilib python-any-r1
47 -
48 -DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
49 -HOMEPAGE="https://exiv2.org/"
50 -
51 -LICENSE="GPL-2"
52 -# In 0.27.5, ABI seemed to be broken for bmff functions
53 -SLOT="0/27.5"
54 -IUSE="+bmff doc examples nls +png test webready +xmp"
55 -RESTRICT="!test? ( test )"
56 -
57 -RDEPEND="
58 - >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
59 - nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
60 - png? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
61 - webready? (
62 - >net-libs/libssh-0.9.1[sftp,${MULTILIB_USEDEP}]
63 - net-misc/curl[${MULTILIB_USEDEP}]
64 - )
65 - xmp? ( dev-libs/expat[${MULTILIB_USEDEP}] )
66 -"
67 -DEPEND="${DEPEND}
68 - test? ( dev-cpp/gtest )
69 -"
70 -BDEPEND="
71 - doc? (
72 - ${PYTHON_DEPS}
73 - app-doc/doxygen
74 - dev-libs/libxslt
75 - media-gfx/graphviz
76 - virtual/pkgconfig
77 - )
78 - nls? ( sys-devel/gettext )
79 -"
80 -
81 -DOCS=( README.md doc/ChangeLog doc/cmd.txt )
82 -
83 -PATCHES=( "${FILESDIR}"/${PN}-0.27.5-musl-tests.patch )
84 -
85 -pkg_setup() {
86 - use doc && python-any-r1_pkg_setup
87 -}
88 -
89 -src_prepare() {
90 - # FIXME @upstream:
91 - einfo "Converting doc/cmd.txt to UTF-8"
92 - iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
93 - mv -f doc/cmd.txt.tmp doc/cmd.txt || die
94 -
95 - cmake_src_prepare
96 -
97 - sed -e "/^include.*compilerFlags/s/^/#DONT /" -i CMakeLists.txt || die
98 -}
99 -
100 -multilib_src_configure() {
101 - local mycmakeargs=(
102 - -DCMAKE_CXX_STANDARD=14
103 - -DEXIV2_BUILD_SAMPLES=NO
104 - -DEXIV2_ENABLE_NLS=$(usex nls)
105 - -DEXIV2_ENABLE_PNG=$(usex png)
106 - -DEXIV2_ENABLE_CURL=$(usex webready)
107 - -DEXIV2_ENABLE_SSH=$(usex webready)
108 - -DEXIV2_ENABLE_WEBREADY=$(usex webready)
109 - -DEXIV2_ENABLE_XMP=$(usex xmp)
110 - -DEXIV2_ENABLE_BMFF=$(usex bmff)
111 - $(multilib_is_native_abi || echo -DEXIV2_BUILD_EXIV2_COMMAND=NO)
112 - $(multilib_is_native_abi && echo -DEXIV2_BUILD_DOC=$(usex doc))
113 - $(multilib_is_native_abi && echo -DEXIV2_BUILD_UNIT_TESTS=$(usex test))
114 - -DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html
115 - )
116 -
117 - cmake_src_configure
118 -}
119 -
120 -multilib_src_compile() {
121 - cmake_src_compile
122 -
123 - if multilib_is_native_abi; then
124 - use doc && eninja doc
125 - fi
126 -}
127 -
128 -multilib_src_test() {
129 - if multilib_is_native_abi; then
130 - cd "${BUILD_DIR}"/bin || die
131 - ./unit_tests || die "Failed to run tests"
132 - fi
133 -}
134 -
135 -multilib_src_install_all() {
136 - use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
137 -
138 - einstalldocs
139 - find "${D}" -name '*.la' -delete || die
140 -
141 - if use examples; then
142 - docinto examples
143 - dodoc samples/*.cpp
144 - fi
145 -}
146
147 diff --git a/media-gfx/exiv2/files/exiv2-0.27.5-musl-tests.patch b/media-gfx/exiv2/files/exiv2-0.27.5-musl-tests.patch
148 deleted file mode 100644
149 index 3fa70d739f4a..000000000000
150 --- a/media-gfx/exiv2/files/exiv2-0.27.5-musl-tests.patch
151 +++ /dev/null
152 @@ -1,56 +0,0 @@
153 -https://github.com/Exiv2/exiv2/commit/82adcb1f86def0555b25713a8b84dba84944b275 (1)
154 -https://github.com/Exiv2/exiv2/commit/7d8cd00778c3eee9f32af04b009d8a5651eb53e7 (2)
155 -
156 -This is basically just commit (1). Though it wasn't directly applicable so I just merged it with (2).
157 -Easier and it makes the file same as upstream.
158 -
159 -diff -u b/unitTests/test_futils.cpp b/unitTests/test_futils.cpp
160 ---- b/unitTests/test_futils.cpp
161 -+++ b/unitTests/test_futils.cpp
162 -@@ -42,21 +42,8 @@
163 - std::string tmpFile("tmp.dat");
164 - std::ofstream auxFile(tmpFile.c_str());
165 - auxFile.close();
166 --#if defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW__) || defined(__MSYS__)
167 -- const char * expectedString = "No error (errno = 0)";
168 --#elif defined(__APPLE__)
169 -- const char * expectedString = "Undefined error: 0 (errno = 0)";
170 --#elif defined(__sun__)
171 -- const char * expectedString = "Error 0 (errno = 0)";
172 --#elif defined(__FreeBSD__)
173 -- const char * expectedString = "No error: 0 (errno = 0)";
174 --#elif defined(__NetBSD__)
175 -- const char * expectedString = "Undefined error: 0 (errno = 0)";
176 --#else
177 -- const char * expectedString = "Success (errno = 0)";
178 --#endif
179 - std::remove(tmpFile.c_str());
180 -- ASSERT_STREQ(expectedString, strError().c_str());
181 -+ ASSERT_TRUE(strError().find("(errno = 0)") != std::string::npos);
182 - }
183 -
184 - TEST(strError, returnNoSuchFileOrDirectoryWhenTryingToOpenNonExistingFile)
185 -@@ -68,22 +55,7 @@
186 - TEST(strError, doNotRecognizeUnknownError)
187 - {
188 - errno = 9999;
189 --#if defined(__MINGW__) || defined(__MSYS__) || defined(__CYGWIN__)
190 -- const char * expectedString = "Unknown error 9999 (errno = 9999)";
191 --#elif defined(_WIN32)
192 -- const char * expectedString = "Unknown error (errno = 9999)";
193 --#elif defined(__APPLE__)
194 -- const char * expectedString = "Unknown error: 9999 (errno = 9999)";
195 --#elif defined(__sun__)
196 -- const char * expectedString = "Unknown error (errno = 9999)";
197 --#elif defined(__FreeBSD__)
198 -- const char * expectedString = "Unknown error: 9999 (errno = 9999)";
199 --#elif defined(__NetBSD__)
200 -- const char * expectedString = "Unknown error: 9999 (errno = 9999)";
201 --#else
202 -- const char * expectedString = "Unknown error 9999 (errno = 9999)";
203 --#endif
204 -- ASSERT_STREQ(expectedString, strError().c_str());
205 -+ ASSERT_TRUE(strError().find("(errno = 9999)") != std::string::npos);
206 - }
207 -
208 - TEST(getEnv, getsDefaultValueWhenExpectedEnvVariableDoesNotExist)