/[gentoo-x86]/app-admin/conky/conky-1.8.1-r6.ebuild
Gentoo

Contents of /app-admin/conky/conky-1.8.1-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Oct 12 17:18:55 2012 UTC (22 months, 1 week ago) by billie
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.1.11.9/cvs/Linux i686)

1 # Copyright 1999-2012 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.8.1-r6.ebuild,v 1.8 2012/05/03 18:02:22 jdhore Exp $
4
5 EAPI=2
6
7 inherit autotools eutils
8
9 DESCRIPTION="An advanced, highly configurable system monitor for X"
10 HOMEPAGE="http://conky.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
12
13 LICENSE="GPL-3 BSD LGPL-2.1 MIT"
14 SLOT="0"
15 KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
16 IUSE="apcupsd audacious curl debug eve hddtemp imlib iostats lua lua-cairo lua-imlib math moc mpd nano-syntax ncurses nvidia +portmon rss thinkpad truetype vim-syntax weather-metar weather-xoap wifi X xmms2"
17
18 DEPEND_COMMON="
19 X? (
20 imlib? ( media-libs/imlib2 )
21 lua-cairo? ( >=dev-lua/toluapp-1.0.93 x11-libs/cairo[X] )
22 lua-imlib? ( >=dev-lua/toluapp-1.0.93 media-libs/imlib2 )
23 nvidia? ( media-video/nvidia-settings )
24 truetype? ( x11-libs/libXft >=media-libs/freetype-2 )
25 x11-libs/libX11
26 x11-libs/libXdamage
27 x11-libs/libXext
28 audacious? ( >=media-sound/audacious-1.5 dev-libs/glib )
29 xmms2? ( media-sound/xmms2 )
30 )
31 curl? ( net-misc/curl )
32 eve? ( net-misc/curl dev-libs/libxml2 )
33 portmon? ( dev-libs/glib )
34 lua? ( >=dev-lang/lua-5.1 )
35 ncurses? ( sys-libs/ncurses )
36 rss? ( dev-libs/libxml2 net-misc/curl dev-libs/glib )
37 wifi? ( net-wireless/wireless-tools )
38 weather-metar? ( net-misc/curl )
39 weather-xoap? ( dev-libs/libxml2 net-misc/curl )
40 virtual/libiconv
41 "
42 RDEPEND="
43 ${DEPEND_COMMON}
44 apcupsd? ( sys-power/apcupsd )
45 hddtemp? ( app-admin/hddtemp )
46 moc? ( media-sound/moc )
47 nano-syntax? ( app-editors/nano )
48 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
49 "
50 DEPEND="
51 ${DEPEND_COMMON}
52 virtual/pkgconfig
53 "
54
55 src_prepare() {
56 epatch "${FILESDIR}/${P}-nvidia-x.patch" \
57 "${FILESDIR}/${P}-xmms2.patch" \
58 "${FILESDIR}/${P}-secunia-SA43225.patch" \
59 "${FILESDIR}/${P}-acpitemp.patch" \
60 "${FILESDIR}/${P}-curl-headers.patch" \
61 "${FILESDIR}/${P}-maxinterfaces.patch" \
62 "${FILESDIR}/${P}-utf8-scroll.patch" \
63 "${FILESDIR}/${P}-battery-time.patch" \
64 "${FILESDIR}/${P}-lua-5.2.patch"
65 eautoreconf
66 }
67
68 src_configure() {
69 local myconf
70
71 if use X; then
72 myconf="--enable-x11 --enable-double-buffer --enable-xdamage"
73 myconf="${myconf} --enable-argb --enable-own-window"
74 myconf="${myconf} $(use_enable imlib imlib2) $(use_enable lua-cairo)"
75 myconf="${myconf} $(use_enable lua-imlib lua-imlib2)"
76 myconf="${myconf} $(use_enable nvidia) $(use_enable truetype xft)"
77 myconf="${myconf} $(use_enable audacious) $(use_enable xmms2)"
78 else
79 myconf="--disable-x11 --disable-own-window --disable-argb"
80 myconf="${myconf} --disable-lua-cairo --disable-nvidia --disable-xft"
81 myconf="${myconf} --disable-audacious --disable-xmms2"
82 fi
83
84 econf \
85 ${myconf} \
86 $(use_enable apcupsd) \
87 $(use_enable curl) \
88 $(use_enable debug) \
89 $(use_enable eve) \
90 $(use_enable hddtemp) \
91 $(use_enable iostats) \
92 $(use_enable lua) \
93 $(use_enable thinkpad ibm) \
94 $(use_enable math) \
95 $(use_enable moc) \
96 $(use_enable mpd) \
97 $(use_enable ncurses) \
98 $(use_enable portmon) \
99 $(use_enable rss) \
100 $(use_enable weather-metar) \
101 $(use_enable weather-xoap) \
102 $(use_enable wifi wlan)
103 }
104
105 src_install() {
106 emake DESTDIR="${D}" install || die
107 dodoc ChangeLog AUTHORS TODO || die
108 dohtml doc/docs.html doc/config_settings.html doc/variables.html || die
109
110 if use vim-syntax; then
111 insinto /usr/share/vim/vimfiles/ftdetect
112 doins "${S}"/extras/vim/ftdetect/conkyrc.vim || die
113
114 insinto /usr/share/vim/vimfiles/syntax
115 doins "${S}"/extras/vim/syntax/conkyrc.vim || die
116 fi
117
118 if use nano-syntax; then
119 insinto /usr/share/nano/
120 doins "${S}"/extras/nano/conky.nanorc || die
121 fi
122 }
123
124 pkg_postinst() {
125 elog "You can find a sample configuration file at ${ROOT%/}/etc/conky/conky.conf."
126 elog "To customize, copy it to ~/.conkyrc and edit it to your liking."
127 elog
128 elog "For more info on Conky's features please look at the Changelog in"
129 elog "${ROOT%/}/usr/share/doc/${PF}. There are also pretty html docs available"
130 elog "on Conky's site or in ${ROOT%/}/usr/share/doc/${PF}/html."
131 elog
132 elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
133 elog
134 }

  ViewVC Help
Powered by ViewVC 1.1.20