# Copyright 1999-2019 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=7 DESCRIPTION="Supporting library providing common functions to test helper libraries written for bats / bats-core" HOMEPAGE="https://github.com/ztombol/bats-support" SRC_URI="https://github.com/ztombol/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="CC0-1.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" RESTRICT="!test? ( test )" RDEPEND="|| ( dev-util/bats dev-util/bats-core )" DEPEND="test? ( || ( dev-util/bats dev-util/bats-core ) )" src_test() { /usr/bin/bats --tap test || die "Tests failed" } src_install() { einstalldocs insinto /usr/lib/"${PN}" doins load.bash insinto /usr/lib/"${PN}"/src doins src/* }