summaryrefslogtreecommitdiff
blob: 33a445d0f307cc5ca3e0bcabdf7ba45b7a13f91e (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
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tleds/tleds-1.05_beta11.ebuild,v 1.5 2002/10/15 00:53:10 vapier Exp $

IUSE="X"

MY_P=${P/_/}
S=${WORKDIR}/${MY_P/eta11/}
DESCRIPTION="Blinks keyboard LEDs indicating outgoing and incoming network packets on selected network interface"
HOMEPAGE="http://www.hut.fi/~jlohikos/tleds/"
SRC_URI="http://www.hut.fi/~jlohikos/tleds/public/${MY_P/11/10}.tgz
	http://www.hut.fi/~jlohikos/tleds/public/${MY_P}.patch.bz2"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc sparc64"

DEPEND="X? ( virtual/x11 )"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack tleds-1.05beta10.tgz
	cd ${S}
	bzcat ${DISTDIR}/${MY_P}.patch.bz2 | patch  || die
	patch < ${FILESDIR}/${P}-gentoo.patch || die
}

src_compile() {
	if [ `use X` ] ; then
		emake all || die "make failed :("
	else
		emake tleds || die "make tleds failed :("
	fi
}

src_install() {
	dosbin tleds
	use X && dosbin xtleds

	doman tleds.1
	dodoc README COPYING Changes
}