summaryrefslogtreecommitdiff
blob: faafe9789f46e38b927af0abbe62f2230d5a2fd6 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-www/htdig/htdig-3.1.5.ebuild,v 1.2 2000/10/09 16:02:49 achim Exp $

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="WWW index and searching system"
SRC_URI="http://www.htdig.org/files/${A}"
HOMEPAGE="http://www.htdig.org"

src_unpack() {
  unpack ${A}
  cp ${FILESDIR}/CONFIG.in ${S}
}

src_compile() {

    cd ${S}
    try ./configure --prefix=/usr --host=${CHOST} \
	--with-cgi-bin-dir=/usr/local/httpd/cgi-bin \
	--with-image-dir=/usr/local/httpd/images/htdig \
	--with-search-dir=/usr/local/httpd/htdocs/htdig
    try make

}

src_install () {

    cd ${S}
    try make DESTDIR=${D} CGIBIN_DIR=${D}/usr/local/httpd/cgi-bin \
	SEARCH_DIR=${D}/usr/local/httpd/htdocs/htdig \
	IMAGE_DIR=${D}/usr/local/httpd/htdocs/images/htdig \
	exec_prefix=${D}/usr install

}