Manuel Friedli
3f1df5a69b
added ebuild for go-bindata, which is simply copied from the mrueg overlay, but references the forked go-bindata of fritteli that has a tag instead of referencing an arbitrary commit hash Package-Manager: portage-2.3.0
30 lines
691 B
Bash
30 lines
691 B
Bash
# Copyright 1999-2016 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=6
|
|
inherit eutils golang-build golang-vcs-snapshot
|
|
|
|
MY_PV="v${PV/_/-}"
|
|
|
|
EGO_PN="github.com/fritteli/${PN}/..."
|
|
EGIT_COMMIT="a0ff2567cfb70903282db057e799fd826784d41d"
|
|
ARCHIVE_URI="https://${EGO_PN%/*}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64"
|
|
|
|
DESCRIPTION="A small utility which generates Go code from any file"
|
|
HOMEPAGE="https://github.com/fritteli/${PN}"
|
|
SRC_URI="${ARCHIVE_URI}"
|
|
LICENSE="CC-PD"
|
|
SLOT="0/${PVR}"
|
|
IUSE=""
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/0001-github-path.patch"
|
|
eapply_user
|
|
}
|
|
|
|
src_install() {
|
|
golang-build_src_install
|
|
dobin bin/*
|
|
}
|