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