summaryrefslogtreecommitdiff
blob: 522dc26f746a8996014e43e46eedc3acb623b93f (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit toolchain-funcs

DESCRIPTION="A tool for the fast searching of text allowing for errors in the search pattern"
HOMEPAGE="ftp://ftp.cs.arizona.edu/agrep/README"
SRC_URI="ftp://ftp.cs.arizona.edu/${PN}/${P}.tar.Z"

LICENSE="AGREP"
SLOT="0"
KEYWORDS="amd64 arm ~arm64 ~mips ppc ppc64 sparc x86 ~ppc-macos ~sparc-solaris"

RDEPEND="
	!dev-libs/tre
	!dev-ruby/amatch
	!app-misc/glimpse"

DOCS=( README agrep.algorithms agrep.chronicle COPYRIGHT contribution.list )

src_compile() {
	sed -i \
		-e 's/^CFLAGS.*//' \
		-e "s:\$(CFLAGS):& \$(LDFLAGS) :" Makefile || die
	tc-export CC
	emake
}

src_install() {
	dobin "${PN}"
	doman "${PN}.1"
	einstalldocs
}