summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-22 01:21:29 +0000
committerSam James <sam@gentoo.org>2022-03-22 01:22:53 +0000
commit0cfb515e32e7ae4dc587d7b04c5463de11c85810 (patch)
tree3c39ad8fd4a8a3b4a8ba1205cd8221a29b83fd0c /media-libs/dav1d
parentdev-ruby/puppetdb-termini: 7.9.2 bump (diff)
downloadgentoo-0cfb515e32e7ae4dc587d7b04c5463de11c85810.tar.gz
gentoo-0cfb515e32e7ae4dc587d7b04c5463de11c85810.tar.bz2
gentoo-0cfb515e32e7ae4dc587d7b04c5463de11c85810.zip
media-libs/dav1d: add 1.0.0
Closes: https://bugs.gentoo.org/811585 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/dav1d')
-rw-r--r--media-libs/dav1d/Manifest1
-rw-r--r--media-libs/dav1d/dav1d-1.0.0.ebuild59
-rw-r--r--media-libs/dav1d/dav1d-9999.ebuild25
3 files changed, 72 insertions, 13 deletions
diff --git a/media-libs/dav1d/Manifest b/media-libs/dav1d/Manifest
index 7176ecbc364f..d0d8637649a6 100644
--- a/media-libs/dav1d/Manifest
+++ b/media-libs/dav1d/Manifest
@@ -3,3 +3,4 @@ DIST dav1d-0.8.2.tar.bz2 695931 BLAKE2B cfe7667e583e05f8fd84b226a26ea23a901336fd
DIST dav1d-0.9.0.tar.bz2 771739 BLAKE2B 9cf24b142a1148200766a1a20010ff14d1baec507a7ecb477117826784b668178ba753049abf316aacbe1b957340c157f960f748ab8e6f74caf567edba2be3a9 SHA512 cfbfa4cb4508e1b975d7247bf0fa09d3b7adfd224adcf181153365677237b98a6d53b0b7bb91055a26e5668d58b3dcda5f675f68aceb1b020d14b53c4488575e
DIST dav1d-0.9.1.tar.bz2 810641 BLAKE2B 6ad40f6a339a71bc2bf79c508bc7a8a58cda98c6814981d252a3a40ae8df1cc5ad120c42fc881cb560c84e01186ca3daa09cbb5f6152d7da475d9479aa306f2c SHA512 b688f4743106ceed5f450978a9c265391c0ee906dd5adb8632e563378b316ffb3a7098fb6ea2ef4b160ca880fc03c16e3e3b9d8aa3c90ee7341dd0cbfccecc46
DIST dav1d-0.9.2.tar.bz2 833722 BLAKE2B b05edd1ca627906e57923be08f1ecd73469f9a8e2ed585edf81f1fe1ffc173f1e4ba52eb766b82d9ea1349a6c1cf2a5a48cc9a5bcf2debeb9d640d9842e266f4 SHA512 adfb822734a3fc8b73e9cf5f757bfd78fb144b00d95f1e942254c5caf1d801b05438d39571486ef37a94d2226166937fc56160a862e8d6d45c4f6d790531dc3f
+DIST dav1d-1.0.0.tar.bz2 960470 BLAKE2B 79355eeceea37df81e30be49dfea3dee9747fbbb82c0a08be3bbda525881112a8eb847afe3c3ccd0447fd6ee67ae540c5120ea00d4f891ac422850c611850c97 SHA512 86c6481e787fb6b8c28521e1efb1876d1be99f5fa5332cddab1111059b44775e05203cfc5c80a1b404ee00f35a1f5e1099e21b1f0851d77fb0101567e8b1a892
diff --git a/media-libs/dav1d/dav1d-1.0.0.ebuild b/media-libs/dav1d/dav1d-1.0.0.ebuild
new file mode 100644
index 000000000000..bffdc9405eb9
--- /dev/null
+++ b/media-libs/dav1d/dav1d-1.0.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 ~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
+}
diff --git a/media-libs/dav1d/dav1d-9999.ebuild b/media-libs/dav1d/dav1d-9999.ebuild
index c0d92e63904d..bffdc9405eb9 100644
--- a/media-libs/dav1d/dav1d-9999.ebuild
+++ b/media-libs/dav1d/dav1d-9999.ebuild
@@ -1,24 +1,24 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-SCM=""
-if [[ "${PV}" == "9999" ]]; then
- SCM="git-r3"
+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 ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi
-inherit ${SCM} meson-multilib
+inherit meson-multilib
DESCRIPTION="dav1d is an AV1 Decoder :)"
HOMEPAGE="https://code.videolan.org/videolan/dav1d"
LICENSE="BSD-2"
-SLOT="0/5"
+# Check SONAME on version bumps!
+SLOT="0/6"
IUSE="+8bit +10bit +asm test xxhash"
RESTRICT="!test? ( test )"
@@ -27,8 +27,7 @@ BDEPEND="asm? (
abi_x86_32? ( ${ASM_DEPEND} )
abi_x86_64? ( ${ASM_DEPEND} )
)
- xxhash? ( dev-libs/xxhash )
- "
+ xxhash? ( dev-libs/xxhash )"
DOCS=( README.md doc/PATENTS THANKS.md )
@@ -45,10 +44,10 @@ multilib_src_configure() {
fi
local emesonargs=(
- -D bitdepths=$(IFS=,; echo "${bits[*]}")
- -D enable_asm=${enable_asm}
- -D enable_tests=$(usex test true false)
- -D xxhash_muxer=$(usex xxhash enabled disabled)
+ -Dbitdepths=$(IFS=,; echo "${bits[*]}")
+ -Denable_asm=${enable_asm}
+ $(meson_use test enable_tests)
+ $(meson_feature xxhash xxhash_muxer)
)
meson_src_configure
}