# Copyright 1999-2023 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit toolchain-funcs COMMIT="71b18b636b9c7d1ae0c1d3730b85b3c127eb4511" DESCRIPTION="A tool for measuring perceived differences between images" HOMEPAGE="https://github.com/google/butteraugli" SRC_URI="https://github.com/google/${PN}/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="media-libs/libjpeg-turbo:= media-libs/libpng:0 sys-libs/zlib:=" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-${COMMIT}" src_compile() { cd "${S}"/"${PN}" || die "faild to change dir" emake CXX="$(tc-getCXX)" } src_install() { einstalldocs dobin "${PN}"/"${PN}" }