mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
33 lines
671 B
Bash
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
|
|
}
|