summaryrefslogtreecommitdiff
blob: e54acdd0e33853e385eacbf74e1ed4bf1d6d5130 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/surfraw/surfraw-1.0.7.ebuild,v 1.5 2003/02/13 15:44:33 vapier Exp $ 

S=${WORKDIR}/${P}
DESCRIPTION="A fast unix command line interface to WWW"
SRC_URI="ftp://ftp.netbsd.org/pub/NetBSD/misc/proff/${P}.tar.gz"
HOMEPAGE="http://surfraw.sourceforge.net/"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 sparc "


src_compile() {
        ./configure \
                --prefix=/usr \
                --sysconfdir=/etc \
                --host=${CHOST} || die "./configure failed"                     
              emake || die "make failed"
}

src_install() {
        einstall || die "make install failed"
        dodoc README HACKING COPYING
}

pkg_postinst() {
        einfo 
        einfo "You can get a list of installed elvi by just typing 'surfraw' "
        einfo
        einfo "You can try some searches, for example:"
        einfo "$ ask why is jeeves gay? "
        einfo "$ google -results=100 RMS, GNU, which is sinner, which is sin?"
        einfo "$ rhyme -method=perfect Julian"
        einfo
        einfo "The system configuration file is /etc/surfraw.conf"
        einfo
        einfo "Users can specify preferences in '~/.surfraw.conf'  e.g."
        einfo "SURFRAW_graphical_broswer=mozilla"
        einfo "SURFRAW_text_browser=w3m"
        einfo "SURFRAW_graphical=no"
        einfo
        einfo "surfraw works with any graphical and/or text WWW browser" 
        einfo
}