net-misc/jibber: add ebuild

Package-Manager: Portage-2.3.84, Repoman-2.3.20
This commit is contained in:
Anton Schubert 2020-03-04 12:03:55 +01:00
parent 42b658e43b
commit 61dc567141
5 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,42 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
EGO_VENDOR=(
"github.com/docopt/docopt-go ee0de3bc6815"
"github.com/mattn/go-xmpp a86b6abcb3ad"
"github.com/seletskiy/tplutil 8cd6d8f15a24"
)
EGIT_COMMIT="1403fbb0165c84d6a5fc68c890fe7bedb770f781"
SRC_URI="https://github.com/iSchluff/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
$(go-module_vendor_uris)"
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/*
}