Install this version:
emerge -a =www-apps/wakapi-2.17.6
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =www-apps/wakapi-2.17.6
Or alternatively:
emerge --autounmask-write -a =www-apps/wakapi-2.17.6
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="A minimalist, self-hosted WakaTime-compatible backend for coding statistics"
HOMEPAGE="https://wakapi.dev/ https://github.com/muety/wakapi"
SRC_URI="https://github.com/muety/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/Tatsh/tatsh-overlay/releases/download/__distfiles__/${P}-vendor.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RESTRICT="mirror"
BDEPEND=">=dev-lang/go-1.18 app-arch/unzip"
src_compile() {
go build -o "${PN}" || die
}
src_install() {
dobin "${PN}"
insinto /etc/"${PN}"
newins config.default.yml config.yml
}
src_test() {
env CGO_ENABLED=0 go test "$(go list ./... | grep -v 'github.com/muety/wakapi/scripts')" \
-run ./...
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | wakapi-2.17.6-vendor.tar.xz | 8096456 bytes | https://github.com/Tatsh/tatsh-overlay/releases/download/__distfiles__/wakapi-2.17.6-vendor.tar.xz |
| DIST | wakapi-2.17.6.tar.gz | 1014811 bytes | https://github.com/muety/wakapi/archive/refs/tags/2.17.6.tar.gz |