summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-29 23:55:46 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-29 23:55:46 +0000
commitfd7b9a189a399fef24fb74da5e749ee6c1223639 (patch)
treebed76de54f4d4a6b9aebe7e778670af236401945 /dev-python/demjson
parentVersion bump. (diff)
downloadgentoo-2-fd7b9a189a399fef24fb74da5e749ee6c1223639.tar.gz
gentoo-2-fd7b9a189a399fef24fb74da5e749ee6c1223639.tar.bz2
gentoo-2-fd7b9a189a399fef24fb74da5e749ee6c1223639.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/demjson')
-rw-r--r--dev-python/demjson/ChangeLog8
-rw-r--r--dev-python/demjson/demjson-1.4.ebuild32
2 files changed, 26 insertions, 14 deletions
diff --git a/dev-python/demjson/ChangeLog b/dev-python/demjson/ChangeLog
index 0200a31aa7e8..76ac17032a45 100644
--- a/dev-python/demjson/ChangeLog
+++ b/dev-python/demjson/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/demjson
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/demjson/ChangeLog,v 1.7 2009/11/25 09:49:52 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/demjson/ChangeLog,v 1.8 2010/06/29 23:55:46 arfrever Exp $
+
+ 29 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ demjson-1.4.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
25 Nov 2009; Markus Meier <maekke@gentoo.org> demjson-1.4.ebuild:
amd64 stable, bug #281571
diff --git a/dev-python/demjson/demjson-1.4.ebuild b/dev-python/demjson/demjson-1.4.ebuild
index 6413385ea57c..61023e2c74f4 100644
--- a/dev-python/demjson/demjson-1.4.ebuild
+++ b/dev-python/demjson/demjson-1.4.ebuild
@@ -1,34 +1,42 @@
-# 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/demjson/demjson-1.4.ebuild,v 1.3 2009/11/25 09:49:52 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/demjson/demjson-1.4.ebuild,v 1.4 2010/06/29 23:55:46 arfrever Exp $
-EAPI=1
-NEED_PYTHON=2.3
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
inherit distutils
-KEYWORDS="amd64 x86"
-
DESCRIPTION="Read and write JSON-encoded data, compliant with RFC 4627"
-HOMEPAGE="http://deron.meranda.us/python/demjson/"
+HOMEPAGE="http://deron.meranda.us/python/demjson/ http://pypi.python.org/pypi/demjson"
SRC_URI="http://deron.meranda.us/python/${PN}/dist/${P}.tar.gz"
+
LICENSE="LGPL-3"
SLOT="0"
+KEYWORDS="amd64 x86"
IUSE="doc test"
DEPEND="dev-python/setuptools"
RDEPEND=""
DOCS="AUTHORS.txt CHANGES.txt NEWS.txt THANKS.txt"
+PYTHON_MODNAME="demjson.py"
+
+src_test() {
+ cd test
+
+ testing() {
+ PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" test_demjson.py
+ }
+ python_execute_function testing
+}
src_install() {
distutils_src_install
if use doc; then
- dohtml -r docs/* || die "Failed to install docs"
+ dohtml -r docs/* || die "Installation of documentation failed"
fi
}
-
-src_test() {
- cd test && PYTHONPATH=.. python test_demjson.py || die "Test failed"
-}