blob: 32c0128815798216254c31cf38a94233a5506e77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
GITHUB_USER="tmbinc"
GITHUB_HASH="49b098be9548d174023ad05c10f6af9d02b8e18e"
MY_P="${GITHUB_USER}-${PN}-${GITHUB_HASH:0:7}"
inherit toolchain-funcs
DESCRIPTION="grep-like tool to search for binary strings"
HOMEPAGE="https://github.com/tmbinc/bgrep/"
SRC_URI="https://github.com/${GITHUB_USER}/${PN}/tarball/${GITHUB_HASH} -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND=""
DEPEND="test? ( dev-lang/perl )"
src_prepare() {
sed -i -e "s|/tmp/|${T}/|g" \
test/bgrep-test.sh || die
}
src_compile() {
tc-export CC
emake || die
}
src_test() {
cd test
./bgrep-test.sh || die
}
src_install() {
dobin bgrep
dodoc README
}
|