Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/svt-av1/
Date: Mon, 04 Oct 2021 12:21:29
Message-Id: 1633349947.45bd649d6dd83916126e9d484b679bfa087ab441.ionen@gentoo
1 commit: 45bd649d6dd83916126e9d484b679bfa087ab441
2 Author: James Beddek <telans <AT> posteo <DOT> de>
3 AuthorDate: Mon Oct 4 06:59:34 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 12:19:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45bd649d
7
8 media-libs/svt-av1: sync live, EAPI 8
9
10 Signed-off-by: James Beddek <telans <AT> posteo.de>
11 Closes: https://github.com/gentoo/gentoo/pull/21340
12 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
13
14 media-libs/svt-av1/svt-av1-9999.ebuild | 26 +++++++++++++++++++-------
15 1 file changed, 19 insertions(+), 7 deletions(-)
16
17 diff --git a/media-libs/svt-av1/svt-av1-9999.ebuild b/media-libs/svt-av1/svt-av1-9999.ebuild
18 index 9c3996507ab..77664dd90a3 100644
19 --- a/media-libs/svt-av1/svt-av1-9999.ebuild
20 +++ b/media-libs/svt-av1/svt-av1-9999.ebuild
21 @@ -1,30 +1,42 @@
22 # Copyright 2020-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=7
26 +EAPI=8
27
28 inherit cmake flag-o-matic
29
30 DESCRIPTION="Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder)"
31 -HOMEPAGE="https://github.com/AOMediaCodec/SVT-AV1"
32 +HOMEPAGE="https://gitlab.com/AOMediaCodec/SVT-AV1"
33
34 if [[ ${PV} = 9999 ]]; then
35 inherit git-r3
36 - EGIT_REPO_URI="https://github.com/AOMediaCodec/SVT-AV1.git"
37 + EGIT_REPO_URI="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
38 else
39 - SRC_URI="https://github.com/AOMediaCodec/SVT-AV1/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 - KEYWORDS="~amd64 -x86" # -x86: https://github.com/AOMediaCodec/SVT-AV1/issues/1231
41 - S="${WORKDIR}/SVT-AV1-${PV}"
42 + SRC_URI="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${PV}/SVT-AV1-v${PV}.tar.gz -> ${P}.tar.gz"
43 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc -x86" # -x86: https://github.com/AOMediaCodec/SVT-AV1/issues/1231
44 + S="${WORKDIR}/SVT-AV1-v${PV}"
45 fi
46
47 # Also see "Alliance for Open Media Patent License 1.0"
48 LICENSE="BSD-2 Apache-2.0 BSD ISC LGPL-2.1+ MIT"
49 SLOT="0"
50
51 -DEPEND="amd64? ( dev-lang/yasm )"
52 +BDEPEND="amd64? ( dev-lang/yasm )"
53 +
54 +src_prepare() {
55 + if ! use amd64 ; then
56 + # This _should_ be possible on amd64 too, but breaks with -O3
57 + # without AVX.
58 + # bug #785556
59 + eapply "${FILESDIR}"/${PN}-0.8.6-no-force-avx.patch
60 + fi
61 +
62 + cmake_src_prepare
63 +}
64
65 src_configure() {
66 append-ldflags -Wl,-z,noexecstack
67 +
68 local mycmakeargs=(
69 # Tests require linking against https://github.com/Cidana-Developers/aom/tree/av1-normative ?
70 # undefined reference to `ifd_inspect'