blob: 8a4a53ec70331e5c161fa4c00af28a1f03340af7 (
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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/glimpse/glimpse-4.17.4.ebuild,v 1.5 2004/06/12 00:03:59 dragonheart Exp $
inherit flag-o-matic eutils
DESCRIPTION="A index/query system to search a large set of files quickly"
HOMEPAGE="http://webglimpse.net/"
SRC_URI="http://webglimpse.net/trial/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 ppc sparc mips alpha amd64 ia64"
IUSE="static"
RDEPEND="!dev-libs/tre
virtual/glibc"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-gcc3.patch
sed -i \
-e 's:-O3 -fomit-frame-pointer:$(OPTIMIZEFLAGS):' \
dynfilters/Makefile.in \
|| die "removing -O3 failed"
sed -i \
-e '/^CFLAGS/s:$: $(OPTIMIZEFLAGS):' \
{agrep,compress,index}/Makefile.in \
Makefile.in \
libtemplate/{template,util}/Makefile.in \
|| die "inserting OPTIMIZEFLAGS failed"
}
src_compile() {
use static && append-ldflags -static
econf || die
emake -j1 OPTIMIZEFLAGS="${CFLAGS}" || die
}
src_install() {
einstall || die
dodir /usr/share/man/man1
mv ${D}/usr/share/man/*.1 ${D}/usr/share/man/man1/
}
|