diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-21 20:25:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-21 20:25:12 +0000 |
commit | d37f8725bb68034ef10d8882fb4411a49f2f666e (patch) | |
tree | 2b530ee04815bacc1dc051db24c2727d3056b77b /dev-go/go-md2man/go-md2man-2.0.2.ebuild | |
parent | 171d09fa1f429aa43835c618a2c21753ad5209a4 (diff) |
gentoo auto-resync : 21:02:2023 - 20:25:12
Diffstat (limited to 'dev-go/go-md2man/go-md2man-2.0.2.ebuild')
-rw-r--r-- | dev-go/go-md2man/go-md2man-2.0.2.ebuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-go/go-md2man/go-md2man-2.0.2.ebuild b/dev-go/go-md2man/go-md2man-2.0.2.ebuild new file mode 100644 index 000000000000..a3c4c9e0ebeb --- /dev/null +++ b/dev-go/go-md2man/go-md2man-2.0.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="A utility to convert markdown to man pages" + SRC_URI="https://github.com/cpuguy83/go-md2man/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/cpuguy83/go-md2man" + +LICENSE="BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" + +# restrict tests because they need network-sandbox disabled +# bug https://bugs.gentoo.org/715028 +RESTRICT+=" test" + +src_compile() { + emake BUILD_FLAGS="-mod=vendor" build +} + +src_install() { + "${S}"/bin/go-md2man -in go-md2man.1.md -out go-md2man.1 || + die "Unable to create man page" + dobin bin/go-md2man + doman go-md2man.1 +} + +src_test() { + emake test +} |