blob: 9df59dc5451096509eb03e6072e747d64e794808 (
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
47
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools bash-completion-r1
DESCRIPTION="A code-searching tool similar to ack, but faster"
HOMEPAGE="https://github.com/ggreer/the_silver_searcher"
SRC_URI="https://github.com/ggreer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm ~hppa ~mips ~ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd"
IUSE="lzma test zlib"
RDEPEND="dev-libs/libpcre
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}
virtual/pkgconfig
test? ( dev-util/cram )"
DOCS="README.md"
PATCHES=( "${FILESDIR}"/${PN}-1.0.1-tests.patch )
src_prepare() {
sed '/^dist_bashcomp/d' -i Makefile.am || die
default
eautoreconf
}
src_configure() {
econf \
$(use_enable lzma) \
$(use_enable zlib)
}
src_test() {
cram -v tests/*.t || die "tests failed"
}
src_install() {
default
newbashcomp ag.bashcomp.sh ag
}
|