summaryrefslogtreecommitdiff
blob: 6280938e6d7519e0f8ebe4fe08d1c644323536be (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/gtkskan/gtkskan-0.2.ebuild,v 1.8 2005/09/07 03:12:20 vanquirius Exp $

inherit eutils

DESCRIPTION="GTK+-based ESSID scanner"
HOMEPAGE="http://wavelan-tools.sf.net"
SRC_URI="mirror://sourceforge/wavelan-tools/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc "
IUSE="gnome"

DEPEND="virtual/libc
	=sys-libs/db-1.85*
	=x11-libs/gtk+-1.2*
	gnome? ( =gnome-base/gnome-libs-1.4* )"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${P}-gcc34.diff
}

src_compile() {
	local myconf
	use gnome && myconf="--with-gnome" || myconf="--without-gnome"

	CFLAGS="${CFLAGS} -I." ./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$myconf || die "./configure failed"
	ln -s /usr/include/db1/db.h src/db_185.h
	emake || die
}

src_install () {
	dodir /usr/bin
	make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		install || die
	dodoc CREDITS LICENSE README
}