From f3dc3eeb1190f54e697620ff59aaaee511c146ff Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 12 Aug 2024 22:35:14 -0700 Subject: dev-go/enumer: new package, add 1.5.10 Signed-off-by: Zac Medico --- dev-go/enumer/Manifest | 2 ++ dev-go/enumer/enumer-1.5.10.ebuild | 41 ++++++++++++++++++++++++++++++++++++++ dev-go/enumer/metadata.xml | 10 ++++++++++ 3 files changed, 53 insertions(+) create mode 100644 dev-go/enumer/Manifest create mode 100644 dev-go/enumer/enumer-1.5.10.ebuild create mode 100644 dev-go/enumer/metadata.xml (limited to 'dev-go/enumer') diff --git a/dev-go/enumer/Manifest b/dev-go/enumer/Manifest new file mode 100644 index 000000000000..c9dcd1d7d814 --- /dev/null +++ b/dev-go/enumer/Manifest @@ -0,0 +1,2 @@ +DIST enumer-1.5.10-deps.tar.xz 109604 BLAKE2B b5aefbc35510f660f98e5d56562a30769b3dab607c2dce0abc0b8dca780e8ee59e98d70baf4f3f8d7d2d493da16f3f4d3f68108658ce08acf6a48e3012f0ddc2 SHA512 5306a482128fca80e525d87167e472552aec7af38f5d5788bf978015a7688a6c83f5df2d9d7241b821e5c5669f657bc2643013ee70a910d7408ed9ce9f917c03 +DIST enumer-1.5.10.tar.gz 28195 BLAKE2B ea3100f3d9100808ef902a22692a43009ba9139f753d3d8a9eaaf1c4b3b5b0fe727f7e1be881dcd8c1e3e5ffedece5f39813e17318aa444187c14dcce8743983 SHA512 3d62ec6f89ed6f1087b0c147ac502131fdb9b3d29f07e117437a9cfbbf75544f5c5b1026db30a8e9241019bb14f77fe431593846611e9304215d39ac98cfcb05 diff --git a/dev-go/enumer/enumer-1.5.10.ebuild b/dev-go/enumer/enumer-1.5.10.ebuild new file mode 100644 index 000000000000..8609714f08d7 --- /dev/null +++ b/dev-go/enumer/enumer-1.5.10.ebuild @@ -0,0 +1,41 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="A Go tool to auto generate methods for your enums" +HOMEPAGE="https://github.com/dmarkham/enumer" +SRC_URI="https://github.com/dmarkham/enumer/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="BSD-2" +LICENSE+=" BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" +DOCS=(README.md) + +src_prepare() { + default + local sed_args=() + # -buildmode=pie not supported when -race is enabled + [[ ${GOFLAGS} == *buildmode=pie* ]] && sed_args+=( + -e 's/ -race / /' + ) + if [[ ${#sed_args[@]} -gt 0 ]]; then + sed "${sed_args[@]}" -i Makefile || die + fi +} + +src_compile() { + CGO_ENABLED=0 ego build -a -o ./enumer . +} + +src_install() { + einstalldocs + dobin "${PN}" +} + +src_test() { + emake test +} diff --git a/dev-go/enumer/metadata.xml b/dev-go/enumer/metadata.xml new file mode 100644 index 000000000000..9df7731b17ca --- /dev/null +++ b/dev-go/enumer/metadata.xml @@ -0,0 +1,10 @@ + + + + + zmedico@gentoo.org + + + dmarkham/enumer + + -- cgit v1.2.3-65-gdbad