summaryrefslogtreecommitdiff
blob: d63d30d8e73b799b3365f9725f521b8cddd6cb78 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/links/links-0.96-r2.ebuild,v 1.12 2004/06/25 00:57:51 agriffis Exp $

IUSE="gpm ssl"

S=${WORKDIR}/${P}
SRC_URI="http://artax.karlin.mff.cuni.cz/~mikulas/links/download/${P}.tar.gz"
HOMEPAGE="http://artax.karlin.mff.cuni.cz/~mikulas/links"
DESCRIPTION="A console-based web browser"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc alpha"

DEPEND=">=sys-libs/ncurses-5.1
	gpm? ( >=sys-libs/gpm-1.19.3 )
	ssl? ( >=dev-libs/openssl-0.9.6 )"

PROVIDE="virtual/textbrowser"

src_unpack() {

	unpack ${A}

	cd ${S}
	# patch to add gpm configure switch it solves the linking problem
	# when USE="-gpm" is specified but gpm is installed
	patch -p0 < ${FILESDIR}/${PF}-gentoo.patch || die

	autoheader
	aclocal
	automake
	autoconf
}

src_compile() {
	local myconf
	use ssl \
		&& myconf="--with-ssl" \
		|| myconf="--without-ssl"
	use gpm \
		&& myconf="${myconf} --with-gpm" \
		|| myconf="${myconf} --without-gpm"

	econf ${myconf} || die

	emake || die
}


src_install() {
	einstall
	dodoc README SITES NEWS AUTHORS COPYING BUGS TODO Changelog
}