blob: b5f113f033c0bc547f3d4a0733749f09f02d59cf (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit python multilib
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/path/${P}.zip"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND=""
src_install() {
python_version
insinto /usr/$(get_libdir)/python${PYVER}/site-packages/
doins path.py
}
pkg_postinst() {
python_version
python_mod_optimize ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages
}
pkg_postrm() {
python_version
python_mod_cleanup ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages
}
|