app-admin/mayday: add mayday ebuild

This commit is contained in:
mischief 2015-03-27 15:54:14 -07:00
parent 160830f2fc
commit 3761b11cd0
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1 @@
mayday-9999.ebuild

View File

@ -0,0 +1,38 @@
#
# Copyright (c) 2015 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# $Header:$
#
EAPI=5
CROS_WORKON_PROJECT="coreos/mayday"
CROS_WORKON_LOCALNAME="mayday"
CROS_WORKON_REPO="git://github.com"
COREOS_GO_PACKAGE="github.com/coreos/mayday"
inherit coreos-go cros-workon
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64"
else
CROS_WORKON_COMMIT="eaff09119f3a5b911908e4d3200272034466fe5d" # v0.1.0
KEYWORDS="amd64"
fi
DESCRIPTION="mayday"
HOMEPAGE="https://github.com/coreos/mayday"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND=">=dev-lang/go-1.2"
src_compile() {
go_build "${COREOS_GO_PACKAGE}/cmd"
}
src_install() {
newbin ${WORKDIR}/gopath/bin/cmd mayday
}