blob: 0583013e9170110a2c8f8c62ced40b5c061e46b1 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2.
EAPI=5
CROS_GO_SOURCE="github.com/shirou/gopsutil v${PV}"
CROS_GO_PACKAGES=(
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/disk"
"github.com/shirou/gopsutil/host"
"github.com/shirou/gopsutil/internal/..."
"github.com/shirou/gopsutil/load"
"github.com/shirou/gopsutil/mem"
"github.com/shirou/gopsutil/net"
"github.com/shirou/gopsutil/process"
)
CROS_GO_TEST=(
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/disk"
# host fails due to missing /var/run/utmp in chroot.
"github.com/shirou/gopsutil/internal/..."
"github.com/shirou/gopsutil/load"
# mem, net, and process require github.com/stretchr/testify/assert.
)
inherit cros-go
DESCRIPTION="Cross-platform lib for process and system monitoring in Go"
HOMEPAGE="https://github.com/shirou/gopsutil"
SRC_URI="$(cros-go_src_uri)"
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE="test"
RESTRICT="binchecks strip"
DEPEND="test? ( dev-go/go-sys )"
RDEPEND="dev-go/go-sys"