app-misc/bgrep - 0.3 (gentoo)

Search

Install

Install this version:

emerge -a =app-misc/bgrep-0.3

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

autounmask =app-misc/bgrep-0.3

Or alternatively:

emerge --autounmask-write -a =app-misc/bgrep-0.3

Package Information

Description:
Grep-like tool to search for binary strings
Homepage:
https://github.com/tmbinc/bgrep/
License:
BSD-2

Ebuild Details

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

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Grep-like tool to search for binary strings"
HOMEPAGE="https://github.com/tmbinc/bgrep/"
SRC_URI="https://github.com/tmbinc/bgrep/archive/${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="
	test? (
		dev-lang/perl
		dev-util/xxd
	)
"

src_prepare() {
	default
	sed -i -e "s|/tmp/|${T}/|g" \
		test/bgrep-test.sh || die
}

src_compile() {
	tc-export CC
	emake
}

src_test() {
	./test/bgrep-test.sh || die
}

src_install() {
	dobin bgrep
	dodoc README.md
	doman ${PN}.1
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-misc/bgrep | euse -E <flag> -p app-misc/bgrep | euse -D <flag> -p app-misc/bgrep

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

	test? (
		dev-lang/perl
		dev-util/xxd
	)

Manifest for 0.3

Type File Size Source URLs
DIST bgrep-0.3.tar.gz 7746 bytes https://github.com/tmbinc/bgrep/archive/bgrep-0.3.tar.gz