1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/conky/conky-1.4.5.ebuild,v 1.11 2007/07/22 08:19:13 omp Exp $
8 DESCRIPTION="Conky is an advanced, highly configurable system monitor for X"
9 HOMEPAGE="http://conky.sf.net"
10 SRC_URI="mirror://sourceforge/conky/${P}.tar.bz2"
14 KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
15 IUSE="truetype X ipv6 audacious bmpx hddtemp mpd vim-syntax"
27 truetype? ( >=media-libs/freetype-2 )
28 audacious? ( >=media-sound/audacious-0.1 )
29 bmpx? ( media-sound/bmpx
33 wlan? ( net-wireless/wireless-tools )
34 !ipv6? ( >=dev-libs/glib-2.0 )"
35 RDEPEND="${DEPEND_COMMON}
36 hddtemp? ( app-admin/hddtemp )
37 vim-syntax? ( || ( app-editors/vim
52 ewarn "You have the ipv6 USE flag enabled. Please note that using"
53 ewarn "the ipv6 USE flag with Conky disables the port monitor."
56 mymake="MPD_NO_IPV6=noipv6"
59 myconf="--enable-proc-uptime"
61 myconf="${myconf} --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window"
62 myconf="${myconf} $(use_enable truetype xft)"
64 myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
65 myconf="${myconf} --disable-xft"
69 $(use_enable audacious) \
71 $(use_enable hddtemp ) \
75 $(use_enable !ipv6 portmon) || die "econf failed"
76 emake ${mymake} || die "compile failed"
80 emake DESTDIR="${D}" install || die "make install failed"
81 dodoc ChangeLog AUTHORS README doc/conkyrc.sample
82 dohtml doc/docs.html doc/config_settings.html doc/variables.html
84 if use vim-syntax; then
85 insinto /usr/share/vim/vimfiles/ftdetect
86 doins "${S}"/extras/vim/ftdetect/conkyrc.vim
88 insinto /usr/share/vim/vimfiles/syntax
89 doins "${S}"/extras/vim/syntax/conkyrc.vim
94 elog 'Default configuration file is "~/.conkyrc"'
95 elog "You can find a sample configuration file in"
96 elog "/usr/share/doc/${PF}/conkyrc.sample.bz2"
98 elog "For more info on Conky's new features,"
99 elog "please look at the README and ChangeLog:"
100 elog "/usr/share/doc/${PF}/README.gz"
101 elog "/usr/share/doc/${PF}/ChangeLog.gz"
102 elog "There are also pretty html docs available"
103 elog "on Conky's site or in /usr/share/doc/${PF}"
105 elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
107 elog "Vim syntax highlighting for conkyrc now enabled with"
108 elog "USE=vim-syntax"