blob: b2cb80d8b362558dcef98a7d8bc94d9ffa558d23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2010 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.6 2010/07/06 15:08:47 arfrever 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="alpha 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
}
pkg_postrm() {
python_mod_cleanup
}
|