commit:     75076124133dcc2823b99ed46273665c56fb1479
Author:     Niccolò Belli <niccolo.belli <AT> linuxsystems <DOT> it>
AuthorDate: Wed Feb 15 09:00:44 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 05:10:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75076124

media-libs/dav1d: add 1.1.0

Signed-off-by: Niccolò Belli <niccolo.belli <AT> linuxsystems.it>
Closes: https://bugs.gentoo.org/880989
Closes: https://github.com/gentoo/gentoo/pull/29590
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/dav1d/Manifest           |  1 +
 media-libs/dav1d/dav1d-1.1.0.ebuild | 59 +++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/media-libs/dav1d/Manifest b/media-libs/dav1d/Manifest
index ac63c1cc47f6..e86337963637 100644
--- a/media-libs/dav1d/Manifest
+++ b/media-libs/dav1d/Manifest
@@ -1,2 +1,3 @@
 DIST dav1d-0.9.2.tar.bz2 833722 BLAKE2B 
b05edd1ca627906e57923be08f1ecd73469f9a8e2ed585edf81f1fe1ffc173f1e4ba52eb766b82d9ea1349a6c1cf2a5a48cc9a5bcf2debeb9d640d9842e266f4
 SHA512 
adfb822734a3fc8b73e9cf5f757bfd78fb144b00d95f1e942254c5caf1d801b05438d39571486ef37a94d2226166937fc56160a862e8d6d45c4f6d790531dc3f
 DIST dav1d-1.0.0.tar.bz2 960470 BLAKE2B 
79355eeceea37df81e30be49dfea3dee9747fbbb82c0a08be3bbda525881112a8eb847afe3c3ccd0447fd6ee67ae540c5120ea00d4f891ac422850c611850c97
 SHA512 
86c6481e787fb6b8c28521e1efb1876d1be99f5fa5332cddab1111059b44775e05203cfc5c80a1b404ee00f35a1f5e1099e21b1f0851d77fb0101567e8b1a892
+DIST dav1d-1.1.0.tar.bz2 994368 BLAKE2B 
877fd315fb00cb37c80f128c871641b8dbc4a7c9edb3d81afe00e65cb907ed88bcc10e2f92855d1eef51e196a7ae6d189db16dcf0e151f7ca9db715451bd28f5
 SHA512 
2eb177b415d1ac7bd08d54b16375afedec61f0771a5181fa93e5e6215856fc26504a7cb47de08abbea5bf18fac5ff91ca31044e7054681c380e0ab152e53aabc

diff --git a/media-libs/dav1d/dav1d-1.1.0.ebuild 
b/media-libs/dav1d/dav1d-1.1.0.ebuild
new file mode 100644
index 000000000000..9db50e7b2ff7
--- /dev/null
+++ b/media-libs/dav1d/dav1d-1.1.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://code.videolan.org/videolan/dav1d";
+       inherit git-r3
+else
+       
SRC_URI="https://code.videolan.org/videolan/dav1d/-/archive/${PV}/${P}.tar.bz2";
+       KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+fi
+
+inherit meson-multilib
+
+DESCRIPTION="dav1d is an AV1 Decoder :)"
+HOMEPAGE="https://code.videolan.org/videolan/dav1d";
+
+LICENSE="BSD-2"
+# Check SONAME on version bumps!
+SLOT="0/6"
+IUSE="+8bit +10bit +asm test xxhash"
+RESTRICT="!test? ( test )"
+
+ASM_DEPEND=">=dev-lang/nasm-2.15.05"
+BDEPEND="asm? (
+               abi_x86_32? ( ${ASM_DEPEND} )
+               abi_x86_64? ( ${ASM_DEPEND} )
+       )
+       xxhash? ( dev-libs/xxhash )"
+
+DOCS=( README.md doc/PATENTS THANKS.md )
+
+multilib_src_configure() {
+       local -a bits=()
+       use 8bit  && bits+=( 8 )
+       use 10bit && bits+=( 16 )
+
+       local enable_asm
+       if [[ ${MULTILIB_ABI_FLAG} == abi_x86_x32 ]]; then
+               enable_asm=false
+       else
+               enable_asm=$(usex asm true false)
+       fi
+
+       local emesonargs=(
+               -Dbitdepths=$(IFS=,; echo "${bits[*]}")
+               -Denable_asm=${enable_asm}
+               $(meson_use test enable_tests)
+               $(meson_feature xxhash xxhash_muxer)
+       )
+       meson_src_configure
+}
+
+multilib_src_test() {
+       if multilib_is_native_abi ; then
+               meson_src_test
+       fi
+}

Reply via email to