www-apps/wakapi - 2.18.2 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =www-apps/wakapi-2.18.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =www-apps/wakapi-2.18.2

Or alternatively:

emerge --autounmask-write -a =www-apps/wakapi-2.18.2

Package Information

Description:
A minimalist, self-hosted WakaTime-compatible backend for coding statistics
Homepage:
https://wakapi.dev/ https://github.com/muety/wakapi
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
2.18.2 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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() {
	local pkgs
	# scripts/ is a separate module of helper programs.
	mapfile -t pkgs < <(go list ./... | grep -v 'github.com/muety/wakapi/scripts') || die
	CGO_ENABLED=0 ego test "${pkgs[@]}"
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.18 app-arch/unzip

Manifest for 2.18.2

Type File Size Source URLs
DIST wakapi-2.18.2-vendor.tar.xz 12693848 bytes https://github.com/Tatsh/tatsh-overlay/releases/download/__distfiles__/wakapi-2.18.2-vendor.tar.xz
DIST wakapi-2.18.2.tar.gz 1051539 bytes https://github.com/muety/wakapi/archive/refs/tags/2.18.2.tar.gz