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 !ipv6? ( >=dev-libs/glib-2.0 )"
34 RDEPEND="${DEPEND_COMMON}
35 hddtemp? ( app-admin/hddtemp )
36 mpd? ( media-sound/mpd )
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 ) \
73 $(use_enable !ipv6 portmon) || die "econf failed"
74 emake ${mymake} || die "compile failed"
78 emake DESTDIR="${D}" install || die "make install failed"
79 dodoc ChangeLog AUTHORS README doc/conkyrc.sample
80 dohtml doc/docs.html doc/config_settings.html doc/variables.html
82 if use vim-syntax; then
83 insinto /usr/share/vim/vimfiles/ftdetect
84 doins "${S}"/extras/vim/ftdetect/conkyrc.vim
86 insinto /usr/share/vim/vimfiles/syntax
87 doins "${S}"/extras/vim/syntax/conkyrc.vim
92 elog 'Default configuration file is "~/.conkyrc"'
93 elog "You can find a sample configuration file in"
94 elog "/usr/share/doc/${PF}/conkyrc.sample.gz"
96 elog "For more info on Conky's new features,"
97 elog "please look at the README and ChangeLog:"
98 elog "/usr/share/doc/${PF}/README.gz"
99 elog "/usr/share/doc/${PF}/ChangeLog.gz"
100 elog "There are also pretty html docs available"
101 elog "on Conky's site or in /usr/share/doc/${PF}"
103 elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
105 elog "Vim syntax highlighting for conkyrc now enabled with"
106 elog "USE=vim-syntax"