mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
media-libs/libavif: drop keyword
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Daniel Novomesky <dnovomesky@gmail.com>
This commit is contained in:
@@ -7,32 +7,34 @@ inherit cmake
|
||||
|
||||
DESCRIPTION="Library for encoding and decoding .avif files"
|
||||
HOMEPAGE="https://github.com/AOMediaCodec/libavif"
|
||||
SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git"
|
||||
else
|
||||
SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
#IUSE="dav1d +libaom rav1e"
|
||||
IUSE="dav1d"
|
||||
IUSE="dav1d +libaom rav1e"
|
||||
|
||||
#REQUIRED_USE="|| ( dav1d libaom )"
|
||||
REQUIRED_USE="dav1d"
|
||||
REQUIRED_USE="|| ( dav1d libaom )"
|
||||
|
||||
#unavailable dependencies
|
||||
# libaom? ( >=media-libs/libaom-1.1 )
|
||||
# rav1e? ( media-video/rav1e[capi] )
|
||||
DEPEND="
|
||||
dav1d? ( media-libs/dav1d )
|
||||
DEPEND="dav1d? ( media-libs/dav1d )
|
||||
libaom? ( >=media-libs/libaom-1.1 )
|
||||
rav1e? ( media-video/rav1e[capi] )
|
||||
media-libs/libpng
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_configure() {
|
||||
# -DAVIF_CODEC_AOM=$(usex libaom ON OFF)
|
||||
# -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
|
||||
local mycmakeargs=(
|
||||
-DAVIF_CODEC_DAV1D=$(usex dav1d ON OFF)
|
||||
-DAVIF_CODEC_AOM=$(usex libaom ON OFF)
|
||||
-DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DAVIF_BUILD_APPS=ON
|
||||
)
|
||||
@@ -40,23 +42,21 @@ src_configure() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# if ! use libaom && ! use rav1e ; then
|
||||
if ! use libaom && ! use rav1e ; then
|
||||
ewarn "libaom and rav1e flags are not set,"
|
||||
ewarn "libavif will work in read-only mode."
|
||||
ewarn "Enable libaom or rav1e flag if you want to save .AVIF files."
|
||||
# fi
|
||||
fi
|
||||
|
||||
#instead of writing this below, use the := dependency
|
||||
if use libaom ; then
|
||||
elog "When you upgrade libaom in the future,"
|
||||
elog " you may need to re-emerge libavif again"
|
||||
elog " to ensure correct AVIF import/export functions."
|
||||
fi
|
||||
|
||||
# if use libaom ; then
|
||||
# elog "When you upgrade libaom in the future,"
|
||||
# elog " you may need to re-emerge libavif again"
|
||||
# elog " to ensure correct AVIF import/export functions."
|
||||
# fi
|
||||
|
||||
# if use rav1e ; then
|
||||
# elog "When you upgrade rav1e in the future,"
|
||||
# elog " you may need to re-emerge libavif again"
|
||||
# elog " to ensure correct AVIF export function."
|
||||
# fi
|
||||
if use rav1e ; then
|
||||
elog "When you upgrade rav1e in the future,"
|
||||
elog " you may need to re-emerge libavif again"
|
||||
elog " to ensure correct AVIF export function."
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git"
|
||||
else
|
||||
SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
LICENSE="BSD-2"
|
||||
|
||||
Reference in New Issue
Block a user