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/${PN}/${P}.tar.bz2"
12 LICENSE="GPL-3 BSD LGPL-2.1 MIT"
14 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="audacious bmpx debug hddtemp ipv6 mpd nano-syntax rss truetype vim-syntax smapi wifi X"
27 truetype? ( >=media-libs/freetype-2 )
28 audacious? ( >=media-sound/audacious-1.4.0 )
29 bmpx? ( media-sound/bmpx
33 rss? ( dev-libs/libxml2
36 wifi? ( net-wireless/wireless-tools )
37 !ipv6? ( >=dev-libs/glib-2.0 )"
38 RDEPEND="${DEPEND_COMMON}
39 hddtemp? ( app-admin/hddtemp )
40 vim-syntax? ( || ( app-editors/vim
42 nano-syntax? ( app-editors/nano )"
53 if use audacious; then
54 if has_version <media-sound/audacious-1.5.0 && ! built_with_use media-sound/audacious dbus; then
55 eerror "media-sound/audacious is not built with dbus USE flag."
56 eerror "Please add 'dbus' to your USE flags, and re-emerge media-sound/audacious."
57 die "media-sound/audacious needs USE=dbus"
65 ewarn "You have the ipv6 USE flag enabled. Please note that using"
66 ewarn "the ipv6 USE flag with Conky disables the port monitor."
69 mymake="MPD_NO_IPV6=noipv6"
72 myconf="--enable-proc-uptime"
74 myconf="${myconf} --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window"
75 myconf="${myconf} $(use_enable truetype xft)"
77 myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
78 myconf="${myconf} --disable-xft"
82 $(use_enable audacious) \
85 $(use_enable hddtemp ) \
89 $(use_enable wifi wlan) \
90 $(use_enable !ipv6 portmon) || die "econf failed"
91 emake ${mymake} || die "compile failed"
95 emake DESTDIR="${D}" install || die "make install failed"
96 dodoc ChangeLog AUTHORS README
97 dohtml doc/docs.html doc/config_settings.html doc/variables.html
99 if use vim-syntax; then
100 insinto /usr/share/vim/vimfiles/ftdetect
101 doins "${S}"/extras/vim/ftdetect/conkyrc.vim
103 insinto /usr/share/vim/vimfiles/syntax
104 doins "${S}"/extras/vim/syntax/conkyrc.vim
107 if use nano-syntax; then
108 insinto /usr/share/nano/
109 doins "${S}"/extras/nano/conky.nanorc
114 elog "You can find the sample configuration file at"
115 elog "/etc/conky/conky.conf. To customize it, copy"
116 elog "/etc/conky/conky.conf to ~/.conkyrc and edit"
117 elog "it to your liking."
119 elog "For more info on Conky's new features,"
120 elog "please look at the README and ChangeLog:"
121 elog "/usr/share/doc/${PF}/README.bz2"
122 elog "/usr/share/doc/${PF}/ChangeLog.bz2"
123 elog "There are also pretty html docs available"
124 elog "on Conky's site or in /usr/share/doc/${PF}"
126 elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
128 elog "Vim syntax highlighting for conkyrc now enabled with"
129 elog "USE=vim-syntax, for Nano with USE=nano-syntax"