Files
guru/net-misc/ooni-probe-cli/ooni-probe-cli-3.15.3.ebuild
Anna (cybertailor) Vyalkova c5ae55322d net-misc/ooni-probe-cli: add 3.15.3, drop 3.15.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-07 07:56:52 +05:00

33 lines
671 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
MY_PN=${PN#ooni-}
DESCRIPTION="OONI Probe network measurement tool for detecting internet censorship"
HOMEPAGE="https://ooni.org https://github.com/ooni/probe-cli"
SRC_URI="https://github.com/ooni/${MY_PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test" # hangs
DOCS=( docs CODEOWNERS {CONTRIBUTING,Readme}.md )
src_compile() {
ego build -v -ldflags="-s -w" ./cmd/ooniprobe
}
src_test() {
ego test $(ego list ./... | grep -v /vendor/)
}
src_install() {
dobin ooniprobe
einstalldocs
}