# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" inherit cmake-multilib if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" inherit git-r3 else SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" KEYWORDS="~amd64 ~x86" fi DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" HOMEPAGE="https://github.com/strukturag/libheif" LICENSE="GPL-3" SLOT="0/1.5" IUSE="static-libs" BDEPEND="" DEPEND=" media-libs/libde265:=[${MULTILIB_USEDEP}] media-libs/libpng:0=[${MULTILIB_USEDEP}] media-libs/x265:=[${MULTILIB_USEDEP}] sys-libs/zlib:=[${MULTILIB_USEDEP}] virtual/jpeg:0=[${MULTILIB_USEDEP}] " RDEPEND="${DEPEND}" src_prepare() { default sed -i -e 's:add_definitions(-Werror)::' CMakeLists.txt || die cmake-utils_src_prepare } multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die if ! use static-libs ; then find "${ED}" -name "*.a" -delete || die fi }