2020-08-22 14:17:59 +00:00
|
|
|
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
require bash-completion zsh-completion
|
|
|
|
require github [ user='cli' pn='cli' tag="v${PV}" ]
|
|
|
|
|
|
|
|
SUMMARY="Github CLI"
|
|
|
|
|
|
|
|
LICENCES="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64"
|
|
|
|
MYOPTIONS=""
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build:
|
|
|
|
dev-lang/go
|
|
|
|
run:
|
|
|
|
dev-scm/git
|
|
|
|
"
|
|
|
|
|
|
|
|
BUGS_TO="hasufell@posteo.de"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
export GOPATH="${WORK}"/.gopath
|
|
|
|
export GOBIN="${WORK}"/.bin
|
2021-06-11 21:01:15 +00:00
|
|
|
export GH_VERSION="v${PV}"
|
2020-08-22 14:17:59 +00:00
|
|
|
unset LDFLAGS
|
|
|
|
|
|
|
|
esandbox disable_net
|
|
|
|
emake
|
|
|
|
emake manpages
|
|
|
|
|
2021-08-10 12:57:56 +00:00
|
|
|
edo go run ./cmd/gh completion -s bash > gh.bash-completion
|
|
|
|
edo go run ./cmd/gh completion -s zsh > _gh
|
2020-08-22 14:17:59 +00:00
|
|
|
esandbox enable_net
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin bin/gh
|
|
|
|
emagicdocs
|
|
|
|
|
|
|
|
doman share/man/man?/gh*.?
|
2021-08-10 12:57:56 +00:00
|
|
|
dobashcompletion gh.bash-completion gh
|
2021-06-02 18:42:51 +00:00
|
|
|
dozshcompletion _gh
|
2020-08-22 14:17:59 +00:00
|
|
|
}
|
2021-05-22 20:14:54 +00:00
|
|
|
|
|
|
|
src_test() {
|
|
|
|
esandbox disable_net
|
|
|
|
default
|
|
|
|
esandbox enable_net
|
|
|
|
}
|
|
|
|
|