portage/dev-go/swag/swag-9999.ebuild
2023-11-08 21:11:28 +01:00

31 lines
526 B
Bash

# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 go-module
DESCRIPTION="Swagger 2.0 documentation generator"
HOMEPAGE="https://github.com/swaggo/swag"
EGIT_REPO_URI="https://github.com/swaggo/swag.git"
RESTRICT="network-sandbox strip"
LICENSE="MIT Apache-2.0 BSD"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~arm64 ~x86"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
ego build ./cmd/swag
}
src_install() {
dobin ./${PN}
}