blob: 0ba59e0476e171b818b2d8dfeb284be38498a532 (
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
|
# Copyright 1999-2011 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.4 2011/12/03 18:18:42 hwoarang Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit eutils 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="PSF-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND=""
RESTRICT_PYTHON_ABIS="3.*"
src_prepare() {
edos2unix ${PN}/amazon.py
}
src_install() {
installation() {
insinto $(python_get_sitedir)
doins ${PN}/amazon.py
}
python_execute_function installation
}
pkg_postinst() {
python_mod_optimize amazon.py
}
pkg_postrm() {
python_mod_cleanup amazon.py
}
|