blob: 8910daec1f1789ee981e7563d88eb1ed686eab78 (
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-2014 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.9 2014/08/10 19:59:47 slyfox 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
}
|