blob: a9ad4996052435dfe0c6bf04a5441f0de16e1e22 [file] [log] [blame]
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="bcf721d62d6a4c4c162c63714371fa4349df53bc"
CROS_WORKON_TREE="5a65d0cff3a631ac473770555f1f5322f7e41582"
CROS_WORKON_PROJECT="chromiumos/third_party/whining"
CROS_WORKON_LOCALNAME=../third_party/whining
inherit cros-workon cros-constants
DESCRIPTION="Whining matrix"
HOMEPAGE="http://dev.chromium.org/chromium-os/testing"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
RDEPEND="
dev-python/bottle
"
DEPEND=""
WHINING_WORK="${WORKDIR}/whining-work"
WHINING_BASE="/whining"
src_prepare() {
mkdir -p "${WHINING_WORK}"
cp -fpru "${S}"/* "${WHINING_WORK}/" &>/dev/null
find "${WHINING_WORK}" -name '*.pyc' -delete
}
src_install() {
insinto "${WHINING_BASE}"
doins -r "${WHINING_WORK}"/*
doins "${FILESDIR}"/apache-conf
doins "${FILESDIR}"/config.ini
insinto /etc/init
doins "${FILESDIR}"/whining_setup.conf
}