View | Details | Raw Unified
Collapse All | Expand All

(-) conky-1.4.9-r1.ebuild (-9 / +24 lines)
 Lines 1-6    Link Here 
# Copyright 1999-2008 Gentoo Foundation
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/conky/conky-1.4.9-r1.ebuild,v 1.9 2008/03/19 07:14:26 opfer Exp $
# $Header: $
inherit eutils
inherit eutils
# used for epause
# used for epause
 Lines 11-18    Link Here 
LICENSE="BSD"
LICENSE="BSD"
SLOT="0"
SLOT="0"
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="audacious bmpx hddtemp ipv6 mpd nano-syntax rss truetype vim-syntax wifi X"
IUSE="audacious audacious-legacy bmpx debug hddtemp ipv6 mpd nano-syntax rss truetype vim-syntax
smapi wifi X"
DEPEND_COMMON="
DEPEND_COMMON="
	virtual/libc
	virtual/libc
 Lines 26-31    Link Here 
		x11-libs/libXft
		x11-libs/libXft
		truetype? ( >=media-libs/freetype-2 )
		truetype? ( >=media-libs/freetype-2 )
		audacious? ( >=media-sound/audacious-1.4.0 )
		audacious? ( >=media-sound/audacious-1.4.0 )
		audacious-legacy? ( <media-sound/audacious-1.4.0 )
		bmpx? ( media-sound/bmpx
		bmpx? ( media-sound/bmpx
				>=sys-apps/dbus-0.35
				>=sys-apps/dbus-0.35
			)
			)
 Lines 59-64    Link Here 
	fi
	fi
}
}
src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/conky-1.5.0-disable-x11.patch
}
src_compile() {
src_compile() {
	local mymake
	local mymake
	if useq ipv6 ; then
	if useq ipv6 ; then
 Lines 77-89    Link Here 
		myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
		myconf="${myconf} --disable-x11 --disable-double-buffer --disable-xdamage --disable-own-window"
		myconf="${myconf} --disable-xft"
		myconf="${myconf} --disable-xft"
	fi
	fi
	if useq audacious-legacy; then
		myconf="${myconf} --enable-audacious=legacy"
	elif useq audacious; then
		myconf="${myconf} --enable-audacious"
	fi
	econf \
	econf \
		${myconf} \
		${myconf} \
		$(use_enable audacious) \
		$(use_enable bmpx) \
		$(use_enable bmpx) \
		$(use_enable debug) \
		$(use_enable hddtemp ) \
		$(use_enable hddtemp ) \
		$(use_enable mpd) \
		$(use_enable mpd) \
		$(use_enable rss) \
		$(use_enable rss) \
		$(use_enable smapi) \
		$(use_enable wifi wlan) \
		$(use_enable wifi wlan) \
		$(use_enable !ipv6 portmon) || die "econf failed"
		$(use_enable !ipv6 portmon) || die "econf failed"
	emake ${mymake} || die "compile failed"
	emake ${mymake} || die "compile failed"
 Lines 91-97    Link Here 
src_install() {
src_install() {
	emake DESTDIR="${D}" install || die "make install failed"
	emake DESTDIR="${D}" install || die "make install failed"
	dodoc ChangeLog AUTHORS README doc/conkyrc.sample
	dodoc ChangeLog AUTHORS README
	dohtml doc/docs.html doc/config_settings.html doc/variables.html
	dohtml doc/docs.html doc/config_settings.html doc/variables.html
	if use vim-syntax; then
	if use vim-syntax; then
 Lines 109-117    Link Here 
}
}
pkg_postinst() {
pkg_postinst() {
	elog 'Default configuration file is "~/.conkyrc"'
	elog "You can find the sample configuration file at"
	elog "You can find a sample configuration file in"
	elog "/etc/conky/conky.conf.  To customize it, copy"
	elog "/usr/share/doc/${PF}/conkyrc.sample.bz2"
	elog "/etc/conky/conky.conf to ~/.conkyrc and edit"
	elog "it to your liking."
	elog
	elog
	elog "For more info on Conky's new features,"
	elog "For more info on Conky's new features,"
	elog "please look at the README and ChangeLog:"
	elog "please look at the README and ChangeLog:"