2018-02-16 00:00:19 +01:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2016-10-24 22:51:32 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
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/*
|
|
|
|
}
|