# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 MPV_REQ_USE="lua" USE_MPV="rdepend" inherit mpv-plugin DESCRIPTION="Reads ~/.netrc and sets up authorisation for URIs" HOMEPAGE="https://github.com/Tatsh/mpv-netrc" SRC_URI="https://github.com/Tatsh/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~ppc64" IUSE="test" RESTRICT="!test? ( test )" # The spec stubs out mpv's API. BDEPEND="test? ( dev-lua/busted )" MPV_PLUGIN_FILES=( "${PN:4}.lua" ) src_test() { # .busted turns on coverage, which would need luacov. busted --no-coverage || die }