dev-util/fq - 0.17.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-util/fq-0.17.0

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

autounmask =dev-util/fq-0.17.0

Or alternatively:

emerge --autounmask-write -a =dev-util/fq-0.17.0

Package Information

Description:
Tool for working with binary data (app-misc/jq for binary formats)
Homepage:
https://github.com/wader/fq
License:
MIT BSD-2 BSD BSD-2 MIT

Ebuild Details

Version EAPI Keywords Slot
0.17.0 8 ~amd64 ~arm ~arm64 0
View Raw Ebuild
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-env 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"
# Dependent licenses
LICENSE+=" BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="test? ( dev-tcltk/expect )"

src_unpack() {
	default

	if [[ -d "${WORKDIR}"/vendor ]] ; then
		mv "${WORKDIR}"/vendor "${S}"/vendor || die
	fi
	go-env_set_compile_environment
}

src_prepare() {
	default

	# Don't unconditionally (and therefore twice) build tests
	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"

	emake -Onone
}

src_test() {
	emake -Onone test
}

src_install() {
	einstalldocs

	dobin fq
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/fq | euse -E <flag> -p dev-util/fq | euse -D <flag> -p dev-util/fq

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

test? ( dev-tcltk/expect )

Manifest for 0.17.0

Type File Size Source URLs
DIST fq-0.17.0.tar.gz 17997865 bytes https://github.com/wader/fq/archive/v0.17.0.tar.gz