Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273264 | Differences between
and this patch

Collapse All | Expand All

(-)conky-1.7.0_rc1.ebuild (-61 / +45 lines)
Lines 4-12 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
inherit eutils
8
# used for epause
9
10
DESCRIPTION="An advanced, highly configurable system monitor for X"
7
DESCRIPTION="An advanced, highly configurable system monitor for X"
11
HOMEPAGE="http://conky.sourceforge.net/"
8
HOMEPAGE="http://conky.sourceforge.net/"
12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
9
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
Lines 14-98 Link Here
14
LICENSE="GPL-3 BSD LGPL-2.1 MIT"
11
LICENSE="GPL-3 BSD LGPL-2.1 MIT"
15
SLOT="0"
12
SLOT="0"
16
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
13
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
17
IUSE="audacious bmpx debug hddtemp ibm ipv6 moc mpd nano-syntax nvidia rss truetype vim-syntax wifi X"
14
IUSE="alsa apcupsd audacious bmpx debug hddtemp imlib lua math moc mpd nano-syntax nvidia openmp +portmon rss thinkpad truetype vim-syntax wifi X"
18
15
19
DEPEND_COMMON="
16
DEPEND_COMMON="
20
	X? (
17
	X? (
21
		x11-libs/libICE
22
		x11-libs/libXext
23
		x11-libs/libX11
18
		x11-libs/libX11
24
		x11-libs/libSM
25
		x11-libs/libXrender
26
		x11-libs/libXdamage
19
		x11-libs/libXdamage
27
		x11-libs/libXft
20
		x11-libs/libXext
28
		truetype? ( >=media-libs/freetype-2 )
21
		truetype? ( x11-libs/libXft >=media-libs/freetype-2 )
29
		audacious? ( >=media-sound/audacious-1.5 )
22
		imlib? ( media-libs/imlib2 )
30
		bmpx? ( media-sound/bmpx
23
		nvidia? ( media-video/nvidia-settings )
31
				>=sys-apps/dbus-0.35
32
			)
33
	)
24
	)
34
	rss? ( dev-libs/libxml2
25
	alsa? ( media-libs/alsa-lib )
35
			net-misc/curl
26
	audacious? ( >=media-sound/audacious-1.5 )
36
			)
27
	bmpx? ( media-sound/bmpx >=sys-apps/dbus-0.35 )
28
	portmon? ( dev-libs/glib )
29
	lua? ( >=dev-lang/lua-5.1 )
30
	openmp? ( >=sys-devel/gcc-4.3[openmp] )
31
	rss? ( dev-libs/libxml2 net-misc/curl dev-libs/glib )
37
	wifi? ( net-wireless/wireless-tools )
32
	wifi? ( net-wireless/wireless-tools )
38
	nvidia? ( media-video/nvidia-settings )
33
	"
39
	!ipv6? ( >=dev-libs/glib-2.0 )"
34
RDEPEND="
40
RDEPEND="${DEPEND_COMMON}
35
	${DEPEND_COMMON}
36
	apcupsd? ( sys-power/apcupsd )
41
	hddtemp? ( app-admin/hddtemp )
37
	hddtemp? ( app-admin/hddtemp )
42
	vim-syntax? ( || ( app-editors/vim
38
	moc? ( media-sound/moc )
43
	app-editors/gvim ) )
39
	mpd? ( media-sound/mpd )
44
	nano-syntax? ( app-editors/nano )"
40
	nano-syntax? ( app-editors/nano )
41
	vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
42
	"
45
DEPEND="
43
DEPEND="
46
	${DEPEND_COMMON}
44
	${DEPEND_COMMON}
47
	dev-util/pkgconfig
45
	dev-util/pkgconfig
48
	X? (
46
	"
49
		x11-libs/libXt
50
		x11-proto/xextproto
51
		x11-proto/xproto
52
	)"
53
47
54
src_configure() {
48
src_configure() {
55
	local myconf
49
	local myconf
56
	myconf="--enable-proc-uptime"
50
	if use X; then
57
	if useq X; then
51
		myconf="--enable-x11 --enable-double-buffer --enable-xdamage"
58
		myconf="${myconf} --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window"
52
		myconf="${myconf} --enable-own-window $(use_enable truetype xft)"
59
		myconf="${myconf} $(use_enable truetype xft)"
60
	else
53
	else
61
		myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
54
		myconf="--disable-x11 --disable-own-window"
62
		myconf="${myconf} --disable-xft"
63
	fi
55
	fi
56
64
	econf \
57
	econf \
65
		${myconf} \
58
		${myconf} \
59
		$(use_enable alsa) \
60
		$(use_enable apcupsd) \
66
		$(use_enable audacious) \
61
		$(use_enable audacious) \
67
		$(use_enable bmpx) \
62
		$(use_enable bmpx) \
68
		$(use_enable debug) \
63
		$(use_enable debug) \
69
		$(use_enable hddtemp ) \
64
		$(use_enable hddtemp) \
70
		$(use_enable ibm) \
65
		$(use_enable imlib imlib2) \
66
		$(use_enable lua) \
67
		$(use_enable thinkpad ibm) \
68
		$(use_enable math) \
71
		$(use_enable moc) \
69
		$(use_enable moc) \
72
		$(use_enable mpd) \
70
		$(use_enable mpd) \
73
		$(use_enable nvidia) \
71
		$(use_enable nvidia) \
72
		$(use_enable openmp) \
74
		$(use_enable rss) \
73
		$(use_enable rss) \
75
		$(use_enable wifi wlan) \
74
		$(use_enable wifi wlan) \
76
		$(use_enable !ipv6 portmon) || die "econf failed"
75
		$(use_enable portmon)
77
}
78
79
src_compile() {
80
	local mymake
81
	if useq ipv6 ; then
82
		ewarn "You have the ipv6 USE flag enabled.  Please note that using"
83
		ewarn "the ipv6 USE flag with Conky disables the port monitor."
84
		epause
85
	else
86
		mymake="MPD_NO_IPV6=noipv6"
87
	fi
88
89
	emake ${mymake} || die "emake failed"
90
}
76
}
91
77
92
src_install() {
78
src_install() {
93
	emake DESTDIR="${D}" install || die "make install failed"
79
	emake DESTDIR="${D}" install || die "make install failed"
94
	dodoc ChangeLog AUTHORS README || die
80
	dodoc ChangeLog AUTHORS TODO || die "dodoc failed"
95
	dohtml doc/docs.html doc/config_settings.html doc/variables.html || die
81
	dohtml doc/docs.html doc/config_settings.html doc/variables.html \
82
		|| die "dohtml failed"
96
83
97
	if use vim-syntax; then
84
	if use vim-syntax; then
98
		insinto /usr/share/vim/vimfiles/ftdetect
85
		insinto /usr/share/vim/vimfiles/ftdetect
Lines 109-125 Link Here
109
}
96
}
110
97
111
pkg_postinst() {
98
pkg_postinst() {
112
	elog "You can find the sample configuration file at"
99
	elog "You can find a sample configuration file at"
113
	elog "/etc/conky/conky.conf.  To customize it, copy"
100
	elog "${ROOT%/}/etc/conky/conky.conf. To customize, copy"
114
	elog "/etc/conky/conky.conf to ~/.conkyrc and edit"
101
	elog "it to ~/.conkyrc and edit it to your liking."
115
	elog "it to your liking."
116
	elog
102
	elog
117
	elog "For more info on Conky's new features,"
103
	elog "For more info on Conky's new features please look at"
118
	elog "please look at the README and ChangeLog:"
104
	elog "the Changelog in ${ROOT%/}/usr/share/doc/${PF}"
119
	elog "/usr/share/doc/${PF}/README.bz2"
120
	elog "/usr/share/doc/${PF}/ChangeLog.bz2"
121
	elog "There are also pretty html docs available"
105
	elog "There are also pretty html docs available"
122
	elog "on Conky's site or in /usr/share/doc/${PF}"
106
	elog "on Conky's site or in ${ROOT%/}/usr/share/doc/${PF}/html"
123
	elog
107
	elog
124
	elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
108
	elog "Also see http://www.gentoo.org/doc/en/conky-howto.xml"
125
	elog
109
	elog

Return to bug 273264