# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/pypanel/pypanel-0.9.ebuild,v 1.4 2004/02/15 15:01:08 dholm Exp $

inherit distutils

DESCRIPTION="PyPanel is a lightweight panel/taskbar for X11 window managers."
HOMEPAGE="http://pypanel.sourceforge.net"
SRC_URI="mirror://sourceforge/pypanel/PyPanel-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND=">=x11-base/xfree-4.3.0-r2
	>=dev-lang/python-2.2.3-r1
	>=dev-python/python-xlib-0.12"
S="${WORKDIR}/PyPanel-${PV}"

src_unpack() {
	unpack ${A}
	cd ${S}

	# Removing offensive material
	cp pypanelrc pypanelrc.orig
	sed "s/%D %I:%M %p/%Y-%m-%d %H:%M/" \
		< pypanelrc.orig > pypanelrc
}

src_compile() {
	distutils_src_compile
}

src_install() {
	distutils_src_install
	ewarn "If you previously ran 0.8, remove ~/.pypanelrc before starting 0.9!"
}