summaryrefslogtreecommitdiff
blob: 0d9fe85c8d27177f48eaea3388f01148fbbd332c (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-2004 Gentoo Foundation
# 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.9 2004/06/30 07:46:10 dholm 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 ~ppc"


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
}