dev-vcs/blackbox - 1.20220610 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =dev-vcs/blackbox-1.20220610

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-vcs/blackbox-1.20220610

Or alternatively:

emerge --autounmask-write -a =dev-vcs/blackbox-1.20220610

Package Information

Description:
Safely store secrets in Git/Mercurial/Subversion
Homepage:
https://github.com/StackExchange/blackbox
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.20220610 8 ~amd64 ~ppc64 ~x86 0
View Raw Ebuild
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module

DESCRIPTION="Safely store secrets in Git/Mercurial/Subversion"
HOMEPAGE="https://github.com/StackExchange/blackbox"
SRC_URI="https://github.com/StackExchange/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/Tatsh/tatsh-overlay/releases/download/__distfiles__/${P}-vendor.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"

src_compile() {
	env GO111MODULE=on GOOS=linux go build -o "${PN}" \
		-ldflags "-s -w -X main.SHA=d45564d -X main.BuildTime=$(date +%s)" \
		github.com/StackExchange/blackbox/v2/cmd/blackbox
}

src_test() {
	go test ./... || die
}

src_install() {
	dobin "${PN}"
	dobin binv2/*
	einstalldocs
}

Inherited Eclasses

Manifest for 1.20220610

Type File Size Source URLs
DIST blackbox-1.20220610-vendor.tar.xz 97440 bytes https://github.com/Tatsh/tatsh-overlay/releases/download/__distfiles__/blackbox-1.20220610-vendor.tar.xz
DIST blackbox-1.20220610.tar.gz 100040 bytes https://github.com/StackExchange/blackbox/archive/v1.20220610.tar.gz