summaryrefslogtreecommitdiff
blob: c750d49b84f7835aa7b8dee4bbe540d7e2d8301d (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/fuse-python/fuse-python-0.2.ebuild,v 1.7 2008/08/30 20:26:27 jokey Exp $

inherit eutils distutils multilib python

KEYWORDS="~amd64 x86"
DESCRIPTION="Python FUSE bindings"
HOMEPAGE="http://fuse.sourceforge.net/wiki/index.php/FusePython"

SRC_URI="mirror://sourceforge/fuse/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""

DEPEND=">=dev-lang/python-2.3
	>=sys-fs/fuse-2.0"

src_unpack () {
	distutils_src_unpack
	epatch "${FILESDIR}"/fuse_python_accept_none.patch
}

pkg_postinst() {
	python_version
	python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/fuse.py
	python_mod_optimize \
		/usr/$(get_libdir)/python${PYVER}/site-packages/fuseparts
}

pkg_postrm() {
	python_version
	python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages
}