1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A index/query system to search a large set of files quickly"
9 HOMEPAGE="http://webglimpse.net/"
10 SRC_URI="http://webglimpse.net/trial/${P}.tar.gz"
14 KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
17 RDEPEND="!dev-libs/tre
20 PATCHES=( "${FILESDIR}/${PN}-4.18.6-makefile.patch" )
24 -e "s:CC=.*:CC=$(tc-getCC):" \
25 -e 's:-O3 -fomit-frame-pointer:$(OPTIMIZEFLAGS):' \
26 dynfilters/Makefile.in \
27 || die "removing -O3 failed"
29 -e '/^CFLAGS/s:$: $(OPTIMIZEFLAGS):' \
30 {agrep,compress,index}/Makefile.in \
31 libtemplate/{template,util}/Makefile.in \
32 || die "inserting OPTIMIZEFLAGS failed"
34 -e 's:$(mandir):&/man1/:' \
36 || die "adding man1 to man install dir failed"
40 {agrep,compress,index}/Makefile.in \
41 || die "LDFLAGS sed failed"
47 use static && append-ldflags -static
52 # The OPTIMIZEFLAGS variable is our own, patched in...
53 emake OPTIMIZEFLAGS="${CFLAGS}"
57 # The build system is buggy; we get sandbox violations without this.
58 emake prefix="${ED}/usr" install