1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="An advanced, highly configurable system monitor for X"
9 HOMEPAGE="http://conky.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/conky/${P}.tar.bz2"
14 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="audacious audacious-legacy bmpx debug hddtemp ipv6 mpd nano-syntax rss truetype vim-syntax
28 truetype? ( >=media-libs/freetype-2 )
29 audacious? ( >=media-sound/audacious-1.4.0 )
30 audacious-legacy? ( <media-sound/audacious-1.4.0 )
31 bmpx? ( media-sound/bmpx
35 rss? ( dev-libs/libxml2
38 wifi? ( net-wireless/wireless-tools )
39 !ipv6? ( >=dev-libs/glib-2.0 )"
40 RDEPEND="${DEPEND_COMMON}
41 hddtemp? ( app-admin/hddtemp )
42 vim-syntax? ( || ( app-editors/vim
44 nano-syntax? ( app-editors/nano )"
55 if use audacious; then
56 if has_version <media-sound/audacious-1.5.0 && ! built_with_use media-sound/audacious dbus; then
57 eerror "media-sound/audacious is not built with dbus USE flag."
58 eerror "Please add 'dbus' to your USE flags, and re-emerge media-sound/audacious."
59 die "media-sound/audacious needs USE=dbus"
67 epatch ${FILESDIR}/conky-1.5.0-disable-x11.patch
73 ewarn "You have the ipv6 USE flag enabled. Please note that using"
74 ewarn "the ipv6 USE flag with Conky disables the port monitor."
77 mymake="MPD_NO_IPV6=noipv6"
80 myconf="--enable-proc-uptime"
82 myconf="${myconf} --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window"
83 myconf="${myconf} $(use_enable truetype xft)"
85 myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
86 myconf="${myconf} --disable-xft"
88 if useq audacious-legacy; then
89 myconf="${myconf} --enable-audacious=legacy"
90 elif useq audacious; then
91 myconf="${myconf} --enable-audacious"
97 $(use_enable hddtemp ) \
100 $(use_enable smapi) \
101 $(use_enable wifi wlan) \
102 $(use_enable !ipv6 portmon) || die "econf failed"
103 emake ${mymake} || die "compile failed"
107 emake DESTDIR="${D}" install || die "make install failed"
108 dodoc ChangeLog AUTHORS README
109 dohtml doc/docs.html doc/config_settings.html doc/variables.html
111 if use vim-syntax; then
112 insinto /usr/share/vim/vimfiles/ftdetect
113 doins "${S}"/extras/vim/ftdetect/conkyrc.vim
115 insinto /usr/share/vim/vimfiles/syntax
116 doins "${S}"/extras/vim/syntax/conkyrc.vim
119 if use nano-syntax; then
120 insinto /usr/share/nano/
121 doins "${S}"/extras/nano/conky.nanorc
126 elog "You can find the sample configuration file at"
127 elog "/etc/conky/conky.conf. To customize it, copy"
128 elog "/etc/conky/conky.conf to ~/.conkyrc and edit"
129 elog "it to your liking."
131 elog "For more info on Conky's new features,"
132 elog "please look at the README and ChangeLog:"
133 elog "/usr/share/doc/${PF}/README.bz2"
134 elog "/usr/share/doc/${PF}/ChangeLog.bz2"
135 elog "There are also pretty html docs available"
136 elog "on Conky's site or in /usr/share/doc/${PF}"
138 elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
140 elog "Vim syntax highlighting for conkyrc now enabled with"
141 elog "USE=vim-syntax, for Nano with USE=nano-syntax"