Install this version:
emerge -a =dev-util/bats-file-0.4.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/bats-file-0.4.0
Or alternatively:
emerge --autounmask-write -a =dev-util/bats-file-0.4.0
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
DESCRIPTION="Common filesystem assertions for Bats"
HOMEPAGE="https://github.com/bats-core/bats-file"
SRC_URI="https://github.com/bats-core/bats-file/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="CC0-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-util/bats
dev-util/bats-support"
DEPEND="${RDEPEND}"
DOCS=( {CHANGELOG,README}.md )
src_prepare() {
default
# these tests require privileged mknod or chown operations, unavailable in the Portage sandbox
edo rm test/54-assert-{10-assert_character_exists,11-assert_character_not_exists}.bats \
test/55-assert-{10-assert_block_exists,11-assert_block_not_exists}.bats \
test/59-assert-{10-assert_file_owner,11-assert_not_file_owner}.bats
}
src_test() {
BATS_LIB_PATH=/usr/share edo bats test
}
src_install() {
einstalldocs
insinto /usr/share/bats-file
doins -r src load.bash
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | bats-file-0.4.0.tar.gz | 22770 bytes | https://github.com/bats-core/bats-file/archive/v0.4.0.tar.gz |