From 86174d3617018e6ab1dfa7fa50e0eeaf4fc11ab4 Mon Sep 17 00:00:00 2001 From: Alex Polvi Date: Fri, 23 Jan 2015 20:01:26 -0500 Subject: [PATCH] overlay: add rocket --- .../rocket/rocket-0.2.0-r1.ebuild | 1 + .../app-emulation/rocket/rocket-9999.ebuild | 46 +++++++++++++++++++ .../go-bindata/go-bindata-3.0.5-r1.ebuild | 24 ++++++++++ 3 files changed, 71 insertions(+) create mode 120000 sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-0.2.0-r1.ebuild create mode 100644 sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-9999.ebuild create mode 100644 sdk_container/src/third_party/coreos-overlay/dev-util/go-bindata/go-bindata-3.0.5-r1.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-0.2.0-r1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-0.2.0-r1.ebuild new file mode 120000 index 0000000000..028dd8e644 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-0.2.0-r1.ebuild @@ -0,0 +1 @@ +rocket-9999.ebuild \ No newline at end of file diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-9999.ebuild new file mode 100644 index 0000000000..7450444624 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/rocket/rocket-9999.ebuild @@ -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 +} diff --git a/sdk_container/src/third_party/coreos-overlay/dev-util/go-bindata/go-bindata-3.0.5-r1.ebuild b/sdk_container/src/third_party/coreos-overlay/dev-util/go-bindata/go-bindata-3.0.5-r1.ebuild new file mode 100644 index 0000000000..3b22ce2755 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/dev-util/go-bindata/go-bindata-3.0.5-r1.ebuild @@ -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 +}