ischluff-overlay/net-misc/jibber/jibber-0_pre20200303.ebuild
Anton Schubert c4d3feb712
net-misc/jibber: fix ebuild
Package-Manager: Portage-3.0.0, Repoman-2.3.20
2020-08-21 19:57:13 +02:00

47 lines
1.2 KiB
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
EGO_SUM=(
"github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815"
"github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod"
"github.com/mattn/go-xmpp v0.0.0-20200128155807-a86b6abcb3ad"
"github.com/mattn/go-xmpp v0.0.0-20200128155807-a86b6abcb3ad/go.mod"
"github.com/seletskiy/tplutil v0.0.0-20160311115833-8cd6d8f15a24"
"github.com/seletskiy/tplutil v0.0.0-20160311115833-8cd6d8f15a24/go.mod"
)
go-module_set_globals
EGIT_COMMIT="1403fbb0165c84d6a5fc68c890fe7bedb770f781"
SRC_URI="
https://github.com/iSchluff/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
${EGO_SUM_SRC_URI}"
KEYWORDS="~amd64"
DESCRIPTION="Turn WebHooks into jabber notifications "
HOMEPAGE="https://github.com/seletskiy/jibber"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
src_compile() {
export -n GOCACHE XDG_CACHE_HOME
env GOBIN="${S}/bin" go install ./... || die
}
src_install() {
einstalldocs
doinitd "${FILESDIR}/init.d/jibber"
doconfd "${FILESDIR}/conf.d/jibber"
insinto /etc/jibber
doins -r tpl
dobin bin/*
}