# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit eutils if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/coreos/${PN}.git" EGIT_BRANCH="master" KEYWORDS="" else SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" fi DESCRIPTION="flannel is an etcd backed network fabric for containers" HOMEPAGE="https://github.com/coreos/flannel" LICENSE="Apache-2.0" SLOT="0" IUSE="" DEPEND=">=dev-lang/go-1.4.1" RDEPEND="" src_compile() { ./build || die 'Build failed' } #RESTRICT="test" # Tests fail due to Gentoo bug #500452 src_test() { ./test || die 'Tests failed' } src_install() { dobin "${S}"/bin/flanneld dodoc README.md }