gentoo/dev-util/fq/fq-0.13.0.ebuild
Arthur Zamarin 4f1a86e473
dev-util/fq: Stabilize 0.13.0 amd64, #942082
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-10-24 19:27:39 +03:00

41 lines
859 B
Bash

# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Tool for working with binary data (app-misc/jq for binary formats)"
HOMEPAGE="https://github.com/wader/fq"
SRC_URI="https://github.com/wader/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz"
LICENSE="MIT BSD-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="test? ( dev-tcltk/expect )"
src_prepare() {
default
# Don't unconditionally (and therefore twice) build tests
# TODO: upstream
sed -i -e 's/all: test fq/all: fq/' Makefile || die
}
src_compile() {
# Avoid -s being set in Makefile (stripping)
export GO_BUILD_LDFLAGS="-w"
default
}
src_install() {
einstalldocs
dobin fq
}