app-emulation/actool: create ebuild for actool and include in image

This commit is contained in:
mischief 2015-04-24 14:58:49 -07:00
parent 47cd160e0e
commit a2f827e0ca
3 changed files with 37 additions and 0 deletions

View File

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

View File

@ -0,0 +1,35 @@
# Copyright (c) 2015 CoreOS, Inc.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_PROJECT="appc/spec"
CROS_WORKON_REPO="git://github.com"
# name of directory git repo is checked out into by manifest
CROS_WORKON_LOCALNAME="appc-spec"
COREOS_GO_PACKAGE="github.com/appc/spec"
inherit coreos-go cros-workon
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64"
else
CROS_WORKON_COMMIT="9a448f73b7fa765a60eade4bcca41e18bfe613aa" # v0.5.1
KEYWORDS="amd64"
fi
DESCRIPTION="App Container builder and validator"
HOMEPAGE="https://github.com/appc/spec"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND=">=dev-lang/go-1.3"
src_compile() {
go_build "${COREOS_GO_PACKAGE}/actool"
}
src_install() {
dobin "${WORKDIR}/gopath/bin/actool"
}

View File

@ -88,6 +88,7 @@ RDEPEND="${RDEPEND}
" "
RDEPEND="${RDEPEND} RDEPEND="${RDEPEND}
app-emulation/actool
app-emulation/rkt app-emulation/rkt
app-emulation/xenstore app-emulation/xenstore
app-emulation/xenserver-pv-version app-emulation/xenserver-pv-version