summaryrefslogtreecommitdiff
blob: 3903cf0bdf400a6d9c879c4b97eacfa4c4051080 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/xchat-xsys/xchat-xsys-1.9.3.ebuild,v 1.1 2005/04/16 19:26:20 chainsaw Exp $

inherit eutils

MY_P="${P/xchat-/}"
DESCRIPTION="Sysinfo plugin for X-Chat."
SRC_URI="http://mshoup.us/downloads/xsys/${MY_P}.tar.bz2"
HOMEPAGE="http://mshoup.us/downloads/xsys/README-${PV}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="bmp xmms"
S=${WORKDIR}/xsys2

DEPEND=">=net-irc/xchat-2.4.0
	bmp? (media-plugins/bmp-infopipe)
	xmms? (media-plugins/xmms-infopipe)"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-sysfs-instead-of-lspci.patch
}

src_compile() {
	emake -j1 || die "Compile failed"
}

src_install() {
	exeinto /usr/$(get_libdir)/xchat/plugins
	doexe xsys-${PV}.so

	dodoc ChangeLog README
}