/[gentoo-x86]/net-irc/xchat-xsys/xchat-xsys-2.0.8.ebuild
Gentoo

Contents of /net-irc/xchat-xsys/xchat-xsys-2.0.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Oct 17 18:24:03 2005 UTC (13 years ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Add patch to deal with incompatible header changes in version 2.2.0 of pciutils.
(Portage version: 2.0.53_rc5)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/xchat-xsys/xchat-xsys-2.0.8.ebuild,v 1.3 2005/09/29 14:11:13 gustavoz Exp $
4
5 inherit toolchain-funcs eutils
6
7 MY_P="${P/xchat-/}"
8 S=${WORKDIR}/${MY_P}
9 DESCRIPTION="Sysinfo plugin for X-Chat."
10 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
11 HOMEPAGE="http://dev.gentoo.org/~chainsaw/xsys/"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 sparc ~x86"
16 IUSE="bmp xmms buttons"
17
18 DEPEND="|| (
19 >=net-irc/xchat-2.4.0
20 >=net-irc/xchat-gnome-0.4
21 )
22 sys-apps/pciutils
23 bmp? ( media-sound/beep-media-player )
24 xmms? ( media-sound/xmms )"
25
26 src_unpack() {
27 unpack ${A}
28 sed -i -e "s:-O2 -Wall:${CFLAGS} -Wall:" ${S}/Makefile
29 if use buttons; then
30 sed -i -e "s:#BUTTON:BUTTON:" ${S}/Makefile
31 fi
32 if use bmp; then
33 sed -i -e "s:# FOR BMP # ::g" ${S}/Makefile
34 elif use xmms; then
35 sed -i -e "s:# FOR XMMS # ::g" ${S}/Makefile
36 fi
37 }
38
39 src_compile() {
40 emake -j1 CC="$(tc-getCC)" || die "Compile failed"
41 }
42
43 src_install() {
44 exeinto /usr/$(get_libdir)/xchat/plugins
45 doexe xsys-${PV}.so || die "doexe failed"
46
47 dodoc ChangeLog README || die "dodoc failed"
48 }

  ViewVC Help
Powered by ViewVC 1.1.20