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 vim-syntax? ( || ( app-editors/vim
51 ewarn "You have the ipv6 USE flag enabled. Please note that using"
52 ewarn "the ipv6 USE flag with Conky disables the port monitor."
55 mymake="MPD_NO_IPV6=noipv6"
58 myconf="--enable-proc-uptime"
60 myconf="${myconf} --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window"
61 myconf="${myconf} $(use_enable truetype xft)"
63 myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
64 myconf="${myconf} --disable-xft"
68 $(use_enable audacious) \
70 $(use_enable hddtemp ) \
72 $(use_enable !ipv6 portmon) || die "econf failed"
73 emake ${mymake} || die "compile failed"
77 emake DESTDIR="${D}" install || die "make install failed"
78 dodoc ChangeLog AUTHORS README doc/conkyrc.sample
79 dohtml doc/docs.html doc/config_settings.html doc/variables.html
81 if use vim-syntax; then
82 insinto /usr/share/vim/vimfiles/ftdetect
83 doins "${S}"/extras/vim/ftdetect/conkyrc.vim
85 insinto /usr/share/vim/vimfiles/syntax
86 doins "${S}"/extras/vim/syntax/conkyrc.vim
91 elog 'Default configuration file is "~/.conkyrc"'
92 elog "You can find a sample configuration file in"
93 elog "/usr/share/doc/${PF}/conkyrc.sample.gz"
95 elog "For more info on Conky's new features,"
96 elog "please look at the README and ChangeLog:"
97 elog "/usr/share/doc/${PF}/README.gz"
98 elog "/usr/share/doc/${PF}/ChangeLog.gz"
99 elog "There are also pretty html docs available"
100 elog "on Conky's site or in /usr/share/doc/${PF}"
102 elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
104 elog "Vim syntax highlighting for conkyrc now enabled with"
105 elog "USE=vim-syntax"