summaryrefslogtreecommitdiff
blob: 1846aff529a231f47925b7ed032b99d6678163dc (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="Helpful python wrapper to the os.path module"
HOMEPAGE="http://www.jorendorff.com/articles/python/path"
SRC_URI="http://www.jorendorff.com/articles/python/${PN}/${P}.zip"

LICENSE="freedist"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND=""

src_test() {
	${python} test_path.py || die "test failed"
}

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Don't install test_path.py
	sed -i \
		-e "s/, 'test_path'//" \
		setup.py || die "sed failed"
}