blob: c2909c3a7625bba5d92fc587ee09428ab44f0605 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyamazon/pyamazon-0.65.ebuild,v 1.2 2009/05/30 16:52:01 ssuominen Exp $
EAPI=2
inherit eutils multilib python
DESCRIPTION="A Python wrapper for the Amazon web API."
HOMEPAGE="http://www.josephson.org/projects/pyamazon"
SRC_URI="http://www.josephson.org/projects/${PN}/files/${P}.zip"
LICENSE="PYTHON"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND=""
DEPEND="app-arch/unzip"
pkg_setup() {
python_version
dest=/usr/$(get_libdir)/python${PYVER}/site-packages
}
src_prepare() {
edos2unix ${PN}/amazon.py
}
src_install() {
insinto ${dest}
doins ${PN}/amazon.py || die "doins failed"
}
pkg_postinst() {
python_mod_compile ${dest}/amazon.py
}
pkg_postrm() {
python_mod_cleanup
}
|