You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-wm/plwm/plwm-2.5-r1.ebuild

48 lines
1.1 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/plwm/plwm-2.5-r1.ebuild,v 1.8 2011/04/16 18:47:09 armin76 Exp $
PYTHON_DEPEND="2"
inherit eutils python
DESCRIPTION="Python classes for, and an implementation of, a window manager."
HOMEPAGE="http://plwm.sourceforge.net/"
SRC_URI="mirror://sourceforge/plwm/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc x86"
IUSE=""
DEPEND=">=dev-python/python-xlib-0.12"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-destdir.patch"
epatch "${FILESDIR}/${P}-python2.5.patch"
epatch "${FILESDIR}/${P}-pep0263.patch"
}
src_compile() {
econf || die "econf failed"
emake || die "emake failed"
emake -C doc || die "emake -C doc failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
doinfo doc/*.info* || die "doinfo failed"
dodoc README NEWS ONEWS examples/* || die "dodoc failed"
}
pkg_postinst() {
python_mod_optimize $(python_get_sitedir)/plwm
}
pkg_postrm() {
python_mod_cleanup $(python_get_sitedir)/plwm
}