blob: 13ed62cb8c41b8fd2abafe2f13ce8a9c7f1a80d5 (
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
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/htdig-3.2.0_beta6.ebuild,v 1.4 2005/09/08 00:23:30 rl03 Exp $
inherit webapp eutils flag-o-matic
MY_PV=${PV/_beta/b}
S=${WORKDIR}/${PN}-${MY_PV}
DESCRIPTION="HTTP/HTML indexing and searching system"
SRC_URI="http://www.htdig.org/files/${PN}-${MY_PV}.tar.gz"
HOMEPAGE="http://www.htdig.org"
KEYWORDS="~x86 ~sparc ~ppc ~mips ~amd64"
LICENSE="GPL-2"
RDEPEND=">=sys-libs/zlib-1.1.3
app-arch/unzip"
DEPEND="${RDEPEND}"
SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
src_compile() {
./configure \
--prefix=/usr \
--with-config-dir=/${MY_HOSTROOTDIR}/${PN} \
--with-default-config-file=${MY_HOSTROOTDIR}/${PN}/${PN}.conf \
--with-common-dir=/usr/share/${PN} \
--with-database-dir=${MY_HOSTROOTDIR}/${PN}/db \
--with-cgi-bin-dir=${MY_CGIBINDIR} \
--with-image-dir=${MY_HTDOCSDIR} \
--with-search-dir=${MY_HOSTROOTDIR} \
|| die "configure failed"
emake || die "emake failed"
}
src_install () {
webapp_src_preinst
dodir ${MY_HOSTROOTDIR}/${PN}
make DESTDIR=${D} install || die "make install failed"
dodoc ChangeLog COPYING README
dohtml -r htdoc
dosed ${MY_HOSTROOTDIR}/${PN}/${PN}.conf
dosed /usr/bin/rundig
# symlink htsearch so it can be easily found. see bug #62087.
dosym ${MY_CGIBINDIR}/htsearch /usr/bin/htsearch
webapp_configfile ${MY_HOSTROOTDIR}/${PN}/${PN}.conf
webapp_hook_script ${FILESDIR}/reconfig
webapp_src_install
}
|