blob: cd81894d5ff7a494a02ae7901be2329e8886779e [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
DESCRIPTION="Text file listing USE flags for Tast test dependencies"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
# NB: Flags listed here are off by default unless prefixed with a '+'.
IUSE="
arc
chromeless_tty
kvm_host
rialto
"
S=${WORKDIR}
src_install() {
# Install a file containing a list of currently-set USE flags.
local path="${WORKDIR}/tast_use_flags.txt"
cat <<EOF >"${path}"
# This file is used by the Tast integration testing system to
# determine which software features are present in the system image.
# Don't use it for anything else. Your code will break.
EOF
# If you need to inspect a new flag, add it to $IUSE at the top of the file.
local flags=( ${IUSE} )
local flag
for flag in ${flags[@]/#[-+]} ; do
usev ${flag}
done | sort -u >>"${path}"
insinto /etc
doins "${path}"
}