gentoo-overlay-trent/dev-go/gopls/gopls-0.5.2.ebuild
2020-11-02 18:37:07 -08:00

34 lines
643 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
EGO_PN="github.com/golang/tools/archive/gopls"
SRC_URI="https://${EGO_PN}/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64"
DESCRIPTION="official language server for the go language"
HOMEPAGE="https://github.com/golang/tools"
LICENSE="MIT BSD BSD-2 Apache-2.0"
SLOT="0"
RESTRICT="test"
src_unpack() {
unpack ${A}
cd ${WORKDIR}
mv tools-${PN}-v${PV} ${P}
}
src_compile() {
cd ${S}/gopls
go build
}
src_install() {
dodoc README.md CONTRIBUTING.md CONTRIBUTORS AUTHORS LICENSE PATENTS
dobin gopls/gopls
}