Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/atomicparsley/
Date: Mon, 31 Jan 2022 01:44:01
Message-Id: 1643593428.34b20a2a80202eb26b8146fd84e57d25890d6aa1.sam@gentoo
1 commit: 34b20a2a80202eb26b8146fd84e57d25890d6aa1
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 31 01:43:16 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 31 01:43:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b20a2a
7
8 media-video/atomicparsley: add 0.9.6_p20210715_p151551 (fork)
9
10 Switch to fork with some CVE patches and build system fixes (changed
11 to CMake from homebrew build script which e.g. didn't notice errors).
12
13 Closes: https://bugs.gentoo.org/832361
14 Bug: https://bugs.gentoo.org/713696
15 Bug: https://bugs.gentoo.org/806845
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 media-video/atomicparsley/Manifest | 1 +
19 .../atomicparsley-0.9.6_p20210715_p151551.ebuild | 32 ++++++++++++++++++++++
20 2 files changed, 33 insertions(+)
21
22 diff --git a/media-video/atomicparsley/Manifest b/media-video/atomicparsley/Manifest
23 index 928a889fce2d..d7149321a8bb 100644
24 --- a/media-video/atomicparsley/Manifest
25 +++ b/media-video/atomicparsley/Manifest
26 @@ -1 +1,2 @@
27 DIST AtomicParsley-source-0.9.0.zip 172616 BLAKE2B 6e2fa904cde622524ec51e3d084d89dd86c04db9942a27fae67b0d12db0542705d28e723c26db94d234f26c7249c6b8d4fd01a2bce891d2310a3a912667e1d84 SHA512 a4733893bb0d8bf824ee46d7da7f8c2ab9338ae56ea89810db1ac40282554e7e095b3e88631786b248a66aba878f166b9ac403769c66ef3ad45ac8ff7d411982
28 +DIST atomicparsley-0.9.6_p20210715_p151551.tar.gz 230214 BLAKE2B 986058a8e80b84f30df03f5dfc6e2019ef6949469d8554a5a06ecc75716463b3047820265fd22556f9087a64498e07e994fa2162660f440086eab276be496a9d SHA512 9f58fe7426c9728f8e5624250ff57d7707a4b040365135fa5149909d84c536ecbddaa3820dae85ca8a4c31fc8009685bf56875f1d4ff6f5c854f05a30da6974a
29
30 diff --git a/media-video/atomicparsley/atomicparsley-0.9.6_p20210715_p151551.ebuild b/media-video/atomicparsley/atomicparsley-0.9.6_p20210715_p151551.ebuild
31 new file mode 100644
32 index 000000000000..c7c7cea6bd6c
33 --- /dev/null
34 +++ b/media-video/atomicparsley/atomicparsley-0.9.6_p20210715_p151551.ebuild
35 @@ -0,0 +1,32 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +# The fork at https://github.com/wez/atomicparsley uses unusual versioning, so
42 +# we sadly need to hardcode the hash and update it per-release.
43 +MY_COMMIT_HASH="e7ad03a"
44 +MY_PV="$(ver_cut 5).$(ver_cut 7).${MY_COMMIT_HASH}"
45 +inherit cmake flag-o-matic
46 +
47 +DESCRIPTION="Command line program for manipulating iTunes-style metadata in MPEG4 files"
48 +HOMEPAGE="https://github.com/wez/atomicparsley http://atomicparsley.sourceforge.net"
49 +SRC_URI="https://github.com/wez/atomicparsley/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
50 +S="${WORKDIR}"/${PN}-${MY_PV}
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
55 +
56 +src_configure() {
57 + # APar_sha1.cpp:116:47 and 117:43: warning: dereferencing type-punned
58 + # pointer will break strict-aliasing rules
59 + append-flags -fno-strict-aliasing
60 +
61 + cmake_src_configure
62 +}
63 +
64 +src_test() {
65 + ln -s "${BUILD_DIR}"/AtomicParsley || die
66 + tests/test.sh || die
67 +}