From be0773f3e617af67a6f2111170540533baf05b4f Mon Sep 17 00:00:00 2001 From: odrling Date: Mon, 22 Jan 2024 07:54:28 +0100 Subject: [PATCH] media-plugins/bestsource: new package, add 9999 --- .../bestsource/bestsource-9999.ebuild | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 media-plugins/bestsource/bestsource-9999.ebuild diff --git a/media-plugins/bestsource/bestsource-9999.ebuild b/media-plugins/bestsource/bestsource-9999.ebuild new file mode 100644 index 0000000..5def6e4 --- /dev/null +++ b/media-plugins/bestsource/bestsource-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Sample/frame accurate access to audio and video source plugin for VaporSynth" +HOMEPAGE="https://github.com/vapoursynth/bestsource" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vapoursynth/bestsource.git https://github.com/sekrit-twc/libp2p" + KEYWORDS="" +else + inherit vcs-snapshot + SRC_URI="https://github.com/vapoursynth/bestsource/archive/R${PV}.tar.gz -> ${PN}-${PV}.tar.gz" + KEYWORDS="~x86 ~amd64" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="lto" +RESTRICT="mirror" + +RDEPEND+=" + dev-libs/jansson + media-libs/vapoursynth:0/4 + >=media-video/ffmpeg-5.1 +" +DEPEND="${RDEPEND} +" + +src_unpack() { + git-r3_fetch + git-r3_checkout + git-r3_fetch "https://github.com/sekrit-twc/libp2p.git" "5e65679ae54d0f9fa412ab36289eb2255e341625" + git-r3_checkout "https://github.com/sekrit-twc/libp2p.git" "${S}/libp2p" +} + +src_configure() { + local emesonargs=( + --libdir="/usr/$(get_libdir)/vapoursynth/" + -Db_lto=$(usex lto true false) + ) + meson_src_configure +}