add dev-go/swag

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-02-15 19:04:30 +01:00
parent bd14c2572a
commit 45d64a5185
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 31 additions and 0 deletions

1
dev-go/swag/Manifest Normal file
View file

@ -0,0 +1 @@
EBUILD swag-9999.ebuild 516 BLAKE2B 81b2de01e9e16d07d594fe68a68c16caf72a9721d307bf6a72d2aa3e5f0fcf1c68ddc4f685a96d694e3f3683490374829c41d44d49b82cf65a08e52f3acb7422 SHA512 13506b48d36421ea7d9e0ec6d77622ba223ccafe448409c8b154aa310003b6e73b86aa05649cb1e1a275425af212894194e27c5949e8ebe09b544feba38ed9cb

View file

@ -0,0 +1,30 @@
# Copyright 2020-2021 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"
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}
}