summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-04 21:33:51 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-04 21:33:51 +0000
commite7bb7cee33d72866ecf04645cd89364a0bef09ae (patch)
treee15820c5832e2c567da4589add20033dc8b55c8c /dev-python/pyamazon
parentx86 stable, bug #315275 (diff)
downloadgentoo-2-e7bb7cee33d72866ecf04645cd89364a0bef09ae.tar.gz
gentoo-2-e7bb7cee33d72866ecf04645cd89364a0bef09ae.tar.bz2
gentoo-2-e7bb7cee33d72866ecf04645cd89364a0bef09ae.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyamazon')
-rw-r--r--dev-python/pyamazon/ChangeLog8
-rw-r--r--dev-python/pyamazon/pyamazon-0.65.ebuild30
2 files changed, 22 insertions, 16 deletions
diff --git a/dev-python/pyamazon/ChangeLog b/dev-python/pyamazon/ChangeLog
index 38ad6ecf4fa6..af6d676b7ea8 100644
--- a/dev-python/pyamazon/ChangeLog
+++ b/dev-python/pyamazon/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pyamazon
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyamazon/ChangeLog,v 1.1 2009/05/30 16:22:03 ssuominen Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyamazon/ChangeLog,v 1.2 2010/06/04 21:33:51 arfrever Exp $
+
+ 04 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pyamazon-0.65.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
*pyamazon-0.65 (30 May 2009)
diff --git a/dev-python/pyamazon/pyamazon-0.65.ebuild b/dev-python/pyamazon/pyamazon-0.65.ebuild
index c2909c3a7625..8f0675ffbfbe 100644
--- a/dev-python/pyamazon/pyamazon-0.65.ebuild
+++ b/dev-python/pyamazon/pyamazon-0.65.ebuild
@@ -1,9 +1,12 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyamazon/pyamazon-0.65.ebuild,v 1.3 2010/06/04 21:33:51 arfrever Exp $
-EAPI=2
-inherit eutils multilib python
+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"
@@ -14,27 +17,26 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE=""
-RDEPEND=""
DEPEND="app-arch/unzip"
-
-pkg_setup() {
- python_version
- dest=/usr/$(get_libdir)/python${PYVER}/site-packages
-}
+RDEPEND=""
+RESTRICT_PYTHON_ABIS="3.*"
src_prepare() {
edos2unix ${PN}/amazon.py
}
src_install() {
- insinto ${dest}
- doins ${PN}/amazon.py || die "doins failed"
+ installation() {
+ insinto $(python_get_sitedir)
+ doins ${PN}/amazon.py
+ }
+ python_execute_function installation
}
pkg_postinst() {
- python_mod_compile ${dest}/amazon.py
+ python_mod_optimize amazon.py
}
pkg_postrm() {
- python_mod_cleanup
+ python_mod_cleanup amazon.py
}