diff options
author | Adel KARA SLIMANE <adel.ks@zegrapher.com> | 2023-08-22 18:06:15 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-10-06 15:46:49 +0300 |
commit | a60f5c7ddca19d3168420ec4370b760408906ae5 (patch) | |
tree | 5a66660ffca511d4e76794d9696f2188a3d5e56f /media-libs/libvmaf | |
parent | media-libs/libvmaf: add 2.3.1, drop 2.3.0-r2 (diff) | |
download | gentoo-a60f5c7ddca19d3168420ec4370b760408906ae5.tar.gz gentoo-a60f5c7ddca19d3168420ec4370b760408906ae5.tar.bz2 gentoo-a60f5c7ddca19d3168420ec4370b760408906ae5.zip |
media-libs/libvmaf: add 9999
Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
Closes: https://github.com/gentoo/gentoo/pull/32412
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-libs/libvmaf')
-rw-r--r-- | media-libs/libvmaf/libvmaf-2.3.1.ebuild | 2 | ||||
-rw-r--r-- | media-libs/libvmaf/libvmaf-9999.ebuild | 69 |
2 files changed, 70 insertions, 1 deletions
diff --git a/media-libs/libvmaf/libvmaf-2.3.1.ebuild b/media-libs/libvmaf/libvmaf-2.3.1.ebuild index c1900850a167..751393e00c9f 100644 --- a/media-libs/libvmaf/libvmaf-2.3.1.ebuild +++ b/media-libs/libvmaf/libvmaf-2.3.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/media-libs/libvmaf/libvmaf-9999.ebuild b/media-libs/libvmaf/libvmaf-9999.ebuild new file mode 100644 index 000000000000..a5fc3721b828 --- /dev/null +++ b/media-libs/libvmaf/libvmaf-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib flag-o-matic + +DESCRIPTION="C libary for Netflix's Perceptual video quality assessment" +HOMEPAGE="https://github.com/Netflix/vmaf" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Netflix/vmaf.git" +else + SRC_URI=" + https://github.com/Netflix/vmaf/archive/v${PV}.tar.gz -> ${P}.tar.gz + " + KEYWORDS="~amd64 ~loong ~riscv ~x86" +fi + +LICENSE="BSD-2-with-patent" +SLOT="0" +IUSE="+embed-models test" + +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-lang/nasm + embed-models? ( app-editors/vim-core ) +" + +RDEPEND="${BDEPEND}" + +if [[ ${PV} == "9999" ]]; then + S="${WORKDIR}/libvmaf-${PV}" +else + S="${WORKDIR}/vmaf-${PV}" +fi + +src_prepare() { + default + + # Workaround for https://bugs.gentoo.org/837221 + # The paths in the tests are hard coded to look for the model folder as "../../model" + sed -i "s|\"../../model|\"../vmaf-${PV}/model|g" "${S}"/libvmaf/test/* || die +} + +multilib_src_configure() { + local emesonargs=( + $(meson_use embed-models built_in_models) + $(meson_use test enable_tests) + ) + + EMESON_SOURCE="${S}/libvmaf" + filter-lto + meson_src_configure +} + +multilib_src_install() { + meson_src_install + find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die +} + +multilib_src_install_all() { + einstalldocs + + insinto "/usr/share/vmaf" + doins -r "${S}/model" +} |