net-misc/ooni-probe-cli: add 3.18.0, drop 3.17.3

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-06-30 04:14:46 +05:00
parent 11f5ae625a
commit e3f203f4b6
2 changed files with 1 additions and 2 deletions

View File

@@ -0,0 +1,53 @@
# Copyright 2022-2023 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="0BSD Apache-2.0 BSD BSD-2 CC0-1.0 GPL-3 GPL-3+ ISC LGPL-3 MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
PROPERTIES="test_network"
RESTRICT="test"
DEPEND="dev-db/sqlite:3[icu]"
RDEPEND="${DEPEND}"
DOCS=( docs CODEOWNERS {CODE_OF_CONDUCT,CONTRIBUTING,DESIGN,Readme}.md )
src_prepare() {
default
# remove ooni's build tool
rm -r internal/cmd/buildtool || die
}
src_configure() {
GOFLAGS+=" -tags=shaping"
}
src_compile() {
ego build ./cmd/ooniprobe
ego build ./internal/cmd/miniooni
ego build ./internal/cmd/oohelperd
}
src_test() {
local -x GOFLAGS
GOFLAGS="${GOFLAGS//-v/}"
GOFLAGS="${GOFLAGS//-x/}"
ego test -short -race ./...
}
src_install() {
dobin ooniprobe miniooni oohelperd
einstalldocs
}