summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-13 11:06:03 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-13 11:06:03 +0100
commitbe8708090362c01c6111c4b76f1e395c14d86e00 (patch)
treebb61ca73e867522450783849eb63c9e1f0ba1730 /dev-go
parente93a38d535f2c29b55a5756d2de99425986b0bf3 (diff)
gentoo auto-resync : 13:08:2024 - 11:06:03
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/Manifest.gzbin4046 -> 4212 bytes
-rw-r--r--dev-go/enumer/Manifest4
-rw-r--r--dev-go/enumer/enumer-1.5.10.ebuild41
-rw-r--r--dev-go/enumer/metadata.xml10
4 files changed, 55 insertions, 0 deletions
diff --git a/dev-go/Manifest.gz b/dev-go/Manifest.gz
index 70c61ecc8e92..498a562c6063 100644
--- a/dev-go/Manifest.gz
+++ b/dev-go/Manifest.gz
Binary files differ
diff --git a/dev-go/enumer/Manifest b/dev-go/enumer/Manifest
new file mode 100644
index 000000000000..6467be3e65a7
--- /dev/null
+++ b/dev-go/enumer/Manifest
@@ -0,0 +1,4 @@
+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
+EBUILD enumer-1.5.10.ebuild 872 BLAKE2B b82f6aa9de8c9faab454d73309b2c867822d78f18a2dcbaaa4860702471ee51734b1d641dec102554b3bd4df6a13eaaf491e48507f1c289583c1e0af5cb48a80 SHA512 5c9e111c0a904b0f03c315b429aa4bd587c652b81d1db7c48c8282bad71ccadf27a7d5c908781162b110cc2e95add2595149a426dea70995ef89907af1ea3ca3
+MISC metadata.xml 299 BLAKE2B 3dd196699bc6d4c997a32e14d9d31324bdf597379b411538274bef0b3ffb8423c34c6f7f121e2256633b58a5335e887264a1e0dad9005fa47200432fa47f9395 SHA512 5620e0118cc5ce36afb4587f2b25a687bf23fb2229aeb04e693f110e80d03ff52e647354d094a515efd64bbfd834308e668b0ac519efe1b92e9f44783f008511
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">dmarkham/enumer</remote-id>
+ </upstream>
+</pkgmetadata>