/[gentoo-x86]/app-emulation/runc/runc-0.0.2.ebuild
Gentoo

Contents of /app-emulation/runc/runc-0.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jul 23 20:29:32 2015 UTC (3 years, 11 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -4 lines
ebuild improvements suggested by William Hubbs <williamh@gentoo.org>

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A2BC03DC87ED1BD4!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/runc/runc-0.0.2.ebuild,v 1.1 2015/07/20 02:37:38 cardoe Exp $
4
5 EAPI=5
6
7 DESCRIPTION="runc container cli tools"
8 HOMEPAGE="http://runc.io"
9
10 GITHUB_URI="github.com/opencontainers/runc"
11
12 if [[ ${PV} == *9999* ]]; then
13 EGIT_REPO_URI="git://${GITHUB_URI}.git"
14 inherit git-r3
15 else
16 SRC_URI="https://${GITHUB_URI}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64"
18 fi
19
20 inherit multilib
21
22 LICENSE="Apache-2.0"
23 SLOT="0"
24 IUSE=""
25
26 DEPEND=">=dev-lang/go-1.4:="
27 RDEPEND=""
28
29 src_prepare() {
30 epatch_user
31 }
32
33 src_compile() {
34 # Taken from app-emulation/docker-1.7.0-r1
35 export CGO_CFLAGS="-I${ROOT}/usr/include"
36 export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
37
38 # Setup GOPATH so things build
39 rm -rf .gopath
40 mkdir -p .gopath/src/"$(dirname "${GITHUB_URI}")"
41 ln -sf ../../../.. .gopath/src/"${GITHUB_URI}"
42 export GOPATH="${PWD}/.gopath:${PWD}/vendor"
43
44 make
45 }
46
47 src_install() {
48 dobin runc
49 }

  ViewVC Help
Powered by ViewVC 1.1.20