gentoo-ebuilds/media-libs/libyuv/libyuv-1904-r1.ebuild
Alfred Wingate 045c57f5ec
media-libs/libyuv: rebuild on libjpeg-turbo subslot change
$ lddtree /usr/lib64/libyuv.so
/usr/lib64/libyuv.so (interpreter => None)
    libjpeg.so.62 => /usr/lib64/libjpeg.so.62
        ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
    libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/15/libstdc++.so.6
    libm.so.6 => /lib64/libm.so.6
    libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/15/libgcc_s.so.1
    libc.so.6 => /lib64/libc.so.6

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41849
Closes: https://github.com/gentoo/gentoo/pull/41849
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-29 20:02:49 +01:00

51 lines
1.3 KiB
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake edo
DESCRIPTION="Open source project that includes YUV scaling and conversion functionality."
HOMEPAGE="https://chromium.googlesource.com/libyuv/libyuv"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://chromium.googlesource.com/libyuv/libyuv.git"
inherit git-r3
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 ~arm ~arm64 ~hppa ~riscv ~x86"
fi
LICENSE="BSD"
SLOT="0/${PV}"
IUSE="test"
RESTRICT="!test? ( test )"
# !<net-libs/pjproject-2.15.1-r1[libyuv]: bug 955077
RDEPEND="
!<net-libs/pjproject-2.15.1-r1[libyuv]
>=media-libs/libjpeg-turbo-3.0.0:=
"
DEPEND="${RDEPEND}"
BDEPEND="test? ( dev-cpp/gtest )"
PATCHES=(
"${FILESDIR}/0001-fix-install-dirs.patch"
"${FILESDIR}/0002-disable-static-library.patch"
"${FILESDIR}/0003-disable-test-tools.patch"
)
src_configure() {
mycmakeargs=(
-DUNIT_TEST=$(usex test)
)
cmake_src_configure
}
src_test() {
edo "${BUILD_DIR}"/libyuv_unittest
}