summaryrefslogtreecommitdiff
blob: 919832d400a2759ea4ba5891b708b0b105020fc6 (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
48
49
50
51
52
53
54
# 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.7_rc1.ebuild,v 1.4 2014/08/10 19:59:47 slyfox Exp $

EAPI=3
PYTHON_DEPEND="2"

inherit distutils eutils

MY_P=PLWM-${PV/_}

DESCRIPTION="Python classes for, and an implementation of, a window manager"
HOMEPAGE="http://plwm.sourceforge.net/"
SRC_URI="mirror://sourceforge/plwm/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND=">=dev-python/python-xlib-0.14"
DEPEND="sys-apps/texinfo"

S=${WORKDIR}/${MY_P}

pkg_setup() {
	python_set_active_version 2
}

src_prepare() {
	epatch "${FILESDIR}"/${P}-pep0263.patch
	python_convert_shebangs -r 2 examples/examplewm.py utils/*.py
	distutils_src_prepare
}

src_compile() {
	distutils_src_compile
	emake -C doc || die
}

src_install() {
	distutils_src_install

	newbin examples/examplewm.py plwm || die
	dobin utils/*.py || die

	doinfo doc/*.info || die

	dodoc {,O}NEWS || die
	docinto examples
	dodoc examples/* || die
	docinto utils
	dodoc utils/ChangeLog || die
}