mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-go/enumer: add 1.5.11
Bug: https://bugs.gentoo.org/951344 Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
parent
f8f0730e8d
commit
16cb7b4737
@ -1,2 +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
|
||||
DIST enumer-1.5.11-deps.tar.xz 201400 BLAKE2B b0fd56bda15904e17528d4340f12a3e421555ad993a2d8c8d1af66215c095f305e822ee89e1207da5bda8b3474c0a6058099f61d0380055848c8c6d0ad028acf SHA512 685d2dddcacb1298a92df771a28b264cb73271ef4e40ecfa5491415637f4a26eb594004fbd74d224a66fcac9bf66ddde938c142a3824ea8b81f270725df9220f
|
||||
DIST enumer-1.5.11.tar.gz 28252 BLAKE2B e7f275895dfbffce0cefe1e60db5baf1d8d108699ce1087fa2e137be66d514bdb68df1dd5ee062ba5835b873da973680088fac876e89587c5d458ba19e028d04 SHA512 0ecc27692dd90aa39ae633cf06555f972f08897d90d8f1f9a34597b5aa2828682e88142c22488d36351396c857a84a75e48fb2f49978327c8631d9f836d0888a
|
||||
|
||||
41
dev-go/enumer/enumer-1.5.11.ebuild
Normal file
41
dev-go/enumer/enumer-1.5.11.ebuild
Normal file
@ -0,0 +1,41 @@
|
||||
# Copyright 2024-2025 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user