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

Contents of /net-irc/xchat-xsys/xchat-xsys-2.1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jan 30 12:09:52 2008 UTC (10 years, 8 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Make audacious functionality optional, as requested by Arvid Norlander <arvid.norlander@tele2.se>. Remove ebuilds that depend on obsolete Audacious version.
(Portage version: 2.1.4)

1 # Copyright 1999-2007 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.1.0-r1.ebuild,v 1.8 2007/10/16 10:17:16 chainsaw 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="http://dev.gentoo.org/~chainsaw/xsys/download/${MY_P}.tar.bz2 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="audacious buttons"
17
18 DEPEND="|| (
19 >=net-irc/xchat-2.4.0
20 >=net-irc/xchat-gnome-0.4
21 )
22 sys-apps/pciutils
23 audacious? ( =media-sound/audacious-1.3* )"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 sed -i -e "s:-O2 -Wall:${CFLAGS} -Wall:" Makefile
29 if use buttons; then
30 sed -i -e "s:#BUTTON:BUTTON:" Makefile
31 fi
32 if use audacious; then
33 sed -i -e "s:# FOR AUDACIOUS # ::g" Makefile
34 fi
35 epatch "${FILESDIR}"/${PV}-alpha-L2-cache.patch
36 }
37
38 src_compile() {
39 emake -j1 CC="$(tc-getCC)" || die "Compile failed"
40 }
41
42 src_install() {
43 exeinto /usr/$(get_libdir)/xchat/plugins
44 doexe xsys-${PV}.so || die "doexe failed"
45
46 exeinto /usr/$(get_libdir)/xchat-gnome/plugins
47 doexe xsys-${PV}.so || die "doexe failed"
48
49 dodoc ChangeLog README || die "dodoc failed"
50 }

  ViewVC Help
Powered by ViewVC 1.1.20