overlay: add rocket

This commit is contained in:
Alex Polvi 2015-01-23 20:01:26 -05:00
parent eaf2d12d26
commit 86174d3617
3 changed files with 71 additions and 0 deletions

View File

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

View File

@ -0,0 +1,46 @@
#
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# $Header:$
#
EAPI=4
CROS_WORKON_PROJECT="coreos/rocket"
CROS_WORKON_LOCALNAME="rocket"
CROS_WORKON_REPO="git://github.com"
inherit cros-workon
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64"
else
CROS_WORKON_COMMIT="aa939201219427bbab24a64f738816e8386cccaa" # v0.2.0
KEYWORDS="amd64"
fi
DESCRIPTION="rocket"
HOMEPAGE="https://github.com/coreos/rocket"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND="
>=dev-lang/go-1.2
dev-util/go-bindata
"
src_unpack() {
cros-workon_src_unpack
${S}/stage1/rootfs/usr/cache.sh
mv cache ${S}/stage1/rootfs/usr/
GOPATH=${S}/gopath go get github.com/appc/spec/...
}
src_compile() {
./build
}
src_install() {
dobin ${S}/bin/rkt
}

View File

@ -0,0 +1,24 @@
# Copyright 2014 CoreOS, Inc
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit coreos-go git
DESCRIPTION="A small utility which generates Go code from any file. Useful for
embedding binary data in a Go program."
HOMEPAGE="https://github.com/jteeuwen/go-bindata"
COREOS_GO_PACKAGE="github.com/jteeuwen/go-bindata"
EGIT_REPO_URI="https://github.com/jteeuwen/go-bindata"
EGIT_COMMIT="4a8e91e5cd96381a2d96bfa7541e63a81f7a3784"
LICENSE="CC0 1.0 Universal"
SLOT="0"
KEYWORDS="amd64 ~x86"
DEPEND="dev-lang/go"
src_compile() {
go_build "${COREOS_GO_PACKAGE}"/go-bindata
}