1 # Subversion repository ebuild for conky by drphibes
7 ESVN_REPO_URI="https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1"
11 DESCRIPTION="An advanced, highly configurable system monitor for X"
12 HOMEPAGE="http://conky.sourceforge.net/"
16 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
17 IUSE="audacious audacious-legacy bmpx debug hddtemp ipv6 mpd nano-syntax rss truetype vim-syntax
31 truetype? ( >=media-libs/freetype-2 )
32 audacious? ( >=media-sound/audacious-1.4.0 )
33 audacious-legacy? ( <media-sound/audacious-1.4.0 )
34 bmpx? ( media-sound/bmpx
38 rss? ( dev-libs/libxml2
41 wifi? ( net-wireless/wireless-tools )
42 !ipv6? ( >=dev-libs/glib-2.0 )"
43 RDEPEND="${DEPEND_COMMON}
44 hddtemp? ( app-admin/hddtemp )
45 vim-syntax? ( || ( app-editors/vim
47 nano-syntax? ( app-editors/nano )"
60 if use audacious; then
61 if has_version <media-sound/audacious-1.5.0 && ! built_with_use media-sound/audacious dbus; then
62 eerror "media-sound/audacious is not built with dbus USE flag."
63 eerror "Please add 'dbus' to your USE flags, and re-emerge media-sound/audacious."
64 die "media-sound/audacious needs USE=dbus"
70 ./autogen.sh ${ESVN_STORE_DIR}/${ESVN_PROJECT}/conky1
74 ewarn "You have the ipv6 USE flag enabled. Please note that using"
75 ewarn "the ipv6 USE flag with Conky disables the port monitor."
78 mymake="MPD_NO_IPV6=noipv6"
81 myconf="--enable-proc-uptime"
83 myconf="${myconf} --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window"
84 myconf="${myconf} $(use_enable truetype xft)"
86 myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
87 myconf="${myconf} --disable-xft"
89 if useq audacious-legacy; then
90 myconf="${myconf} --enable-audacious=legacy"
91 elif useq audacious; then
92 myconf="${myconf} --enable-audacious"
98 $(use_enable hddtemp ) \
101 $(use_enable smapi) \
102 $(use_enable wifi wlan) \
103 $(use_enable !ipv6 portmon) || die "econf failed"
104 emake ${mymake} || die "compile failed"
108 emake DESTDIR="${D}" install || die "make install failed"
109 dodoc ChangeLog AUTHORS README
110 dohtml doc/docs.html doc/config_settings.html doc/variables.html
112 if use vim-syntax; then
113 insinto /usr/share/vim/vimfiles/ftdetect
114 doins "${S}"/extras/vim/ftdetect/conkyrc.vim
116 insinto /usr/share/vim/vimfiles/syntax
117 doins "${S}"/extras/vim/syntax/conkyrc.vim
120 if use nano-syntax; then
121 insinto /usr/share/nano/
122 doins "${S}"/extras/nano/conky.nanorc
127 elog "You can find the sample configuration file at"
128 elog "/etc/conky/conky.conf. To customize it, copy"
129 elog "/etc/conky/conky.conf to ~/.conkyrc and edit"
130 elog "it to your liking."
132 elog "For more info on Conky's new features,"
133 elog "please look at the README and ChangeLog:"
134 elog "/usr/share/doc/${PF}/README.bz2"
135 elog "/usr/share/doc/${PF}/ChangeLog.bz2"
136 elog "There are also pretty html docs available"
137 elog "on Conky's site or in /usr/share/doc/${PF}"
139 elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
141 elog "Vim syntax highlighting for conkyrc now enabled with"
142 elog "USE=vim-syntax, for Nano with USE=nano-syntax"