Install this version:
emerge -a =dev-util/exercism-3.5.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/exercism-3.5.1
Or alternatively:
emerge --autounmask-write -a =dev-util/exercism-3.5.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.5.1 | 8 | ~amd64 | 0 |
# Copyright 2024 Kirixetamine <revelation@krxt.dev>
# Distributed under the terms of the ISC License
EAPI=8
inherit go-module bash-completion-r1
DESCRIPTION="A Go based command line tool for exercism.org"
HOMEPAGE="
https://exercism.org
https://github.com/exercism/cli
"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/exercism/cli/"
else
# Cargo clears... >.>
# https://devmanual.gentoo.org/eclass-reference/go-module.eclass/index.html
SRC_URI="
https://github.com/${PN}/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://dist.krxt.dev/dev-util/${PN}/${P}-vendor.tar.xz"
S="${WORKDIR}/cli-${PV}"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
RESTRICT="mirror"
src_unpack() {
if [[ ${PV} == 9999 ]]; then
git-r3_src_unpack || die
go-module_live_vendor || die
go-module_src_unpack || die
else
go-module_src_unpack || die
fi
}
src_compile() {
ego build -o out/exercism exercism/main.go
}
src_install() {
default
dobin out/exercism
newbashcomp "shell/${PN}_completion.bash" "${PN}"
insinto /usr/share/zsh/site-functions
newins "shell/${PN}_completion.zsh" "_${PN}"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | exercism-3.5.1-vendor.tar.xz | 19901564 bytes | https://dist.krxt.dev/dev-util/exercism/exercism-3.5.1-vendor.tar.xz |
| DIST | exercism-3.5.1.tar.gz | 79386 bytes | https://github.com/exercism/cli/archive/v3.5.1.tar.gz |