gentoo-overlay/dev-go/gox/gox-0.3.1_alpha.ebuild
Manuel Friedli bf56c9b294 dev-go/gox:
added tagged version of gox

Package-Manager: portage-2.3.0
2016-10-24 23:11:48 +02:00

32 lines
669 B
Bash

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit golang-build golang-vcs-snapshot eutils
EGO_PN="github.com/fritteli/gox/..."
MY_PV="v${PV/_/-}"
ARCHIVE_URI="https://${EGO_PN%/*}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="A dead simple, no frills Go cross compile tool"
HOMEPAGE="https://github.com/fritteli/gox"
SRC_URI="${ARCHIVE_URI}"
LICENSE="MPL-2.0"
SLOT="0/${PVR}"
IUSE=""
DEPEND="dev-go/iochan"
src_prepare() {
epatch "${FILESDIR}/0001-github-path.patch"
eapply_user
}
src_install() {
mkdir pkg || die
golang-build_src_install
dobin bin/*
}