commit:     e9afa70b6c512242ddf75fdb3374600e27bfd4b5
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Thu May  1 07:29:38 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 11 00:21:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9afa70b

media-libs/libyuv: update 9999

Signed-off-by: NRK <nrk <AT> disroot.org>
Part-of: https://github.com/gentoo/gentoo/pull/41875
Closes: https://github.com/gentoo/gentoo/pull/41875
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libyuv/libyuv-9999.ebuild | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/media-libs/libyuv/libyuv-9999.ebuild 
b/media-libs/libyuv/libyuv-9999.ebuild
index cc9e80c46208..bc9a5a4290d5 100644
--- a/media-libs/libyuv/libyuv-9999.ebuild
+++ b/media-libs/libyuv/libyuv-9999.ebuild
@@ -14,10 +14,8 @@ if [[ ${PV} == "9999" ]] ; then
 else
        # to diff against upstream (apparently not stable):
        # 
https://chromium.googlesource.com/libyuv/libyuv.git/+archive/${commit}.tar.gz
-       MYTAG="0.0.1904.20250204"
-       
SRC_URI="https://salsa.debian.org/debian/libyuv/-/archive/upstream/${MYTAG}/libyuv-upstream-${MYTAG}.tar.bz2
 -> ${P}.tar.bz2"
-       S="${WORKDIR}/libyuv-upstream-${MYTAG}"
-       KEYWORDS="~amd64"
+       
SRC_URI="https://github.com/N-R-K/stable-tarball-host/releases/download/0/libyuv-${PV}.tar.bz2";
+       KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~riscv ~x86"
 fi
 
 LICENSE="BSD"
@@ -34,11 +32,23 @@ DEPEND="${RDEPEND}"
 BDEPEND="test? ( dev-cpp/gtest )"
 
 PATCHES=(
-       "${FILESDIR}/0001-fix-install-dirs.patch"
+       "${FILESDIR}/0001-fix-install-dirs-1909.patch"
        "${FILESDIR}/0002-disable-static-library.patch"
        "${FILESDIR}/0003-disable-test-tools.patch"
 )
 
+src_unpack() {
+       if [[ ${PV} == "9999" ]] ; then
+               git-r3_src_unpack
+       else
+               # S=${WORKDIR} is deprecated in cmake eclass
+               mkdir "${P}" || die
+               pushd "${P}" || die
+               unpack ${A}
+               popd || die
+       fi
+}
+
 src_configure() {
        mycmakeargs=(
                -DUNIT_TEST=$(usex test)

Reply via email to