Install this version:
emerge -a =net-misc/chapar-0.4.9
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-misc/chapar-0.4.9
Or alternatively:
emerge --autounmask-write -a =net-misc/chapar-0.4.9
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.4.9 | 8 | ~amd64 | 0 |
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module desktop
DESCRIPTION="Native API Testing Tool"
HOMEPAGE="https://chapar.rest https://github.com/chapar-rest/chapar"
SRC_URI="https://github.com/chapar-rest/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
# SPDX:BSD-3-Clause is 'BSD' in Gentoo
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="
>=dev-lang/go-1.22.2
"
RESTRICT="mirror"
src_configure() {
export CGO_ENABLED=1
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
default
}
src_prepare() {
sed -i 's/chapar.png/chapar/' build/desktop-assets/${PN}.desktop
sed -i '/Version/d' build/desktop-assets/${PN}.desktop
default
}
src_compile() {
ego build
}
src_install() {
dobin ${PN}
domenu build/desktop-assets/${PN}.desktop
newicon build/appicon.png ${PN}.png
}
>=dev-lang/go-1.22.2
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | chapar-0.4.9.tar.gz | 17358476 bytes | https://github.com/chapar-rest/chapar/archive/v0.4.9.tar.gz |