/[gentoo-x86]/dev-python/turbojson/turbojson-1.3-r1.ebuild
Gentoo

Contents of /dev-python/turbojson/turbojson-1.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 5 18:46:21 2013 UTC (10 months ago) by mgorny
Branch: MAIN
Changes since 1.2: +2 -2 lines
Clean up PYTHON_COMPAT from old implementations.

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/turbojson/turbojson-1.3-r1.ebuild,v 1.2 2013/05/10 05:16:01 patrick Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 )
7
8 inherit distutils-r1
9
10 MY_PN="TurboJson"
11 MY_P="${MY_PN}-${PV}"
12
13 DESCRIPTION="TurboGears JSON file format support plugin"
14 HOMEPAGE="http://pypi.python.org/pypi/TurboJson"
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
16
17 LICENSE="MIT"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
20 IUSE="test"
21
22 RDEPEND=">=dev-python/decoratortools-1.4[${PYTHON_USEDEP}]
23 >=dev-python/ruledispatch-0.5_pre2306[$(python_gen_usedep 'python2*')]
24 >=dev-python/simplejson-2.6.2[${PYTHON_USEDEP}]
25 >=dev-python/peak-rules-0.5[${PYTHON_USEDEP}]"
26 DEPEND="${RDEPEND}
27 dev-python/setuptools[${PYTHON_USEDEP}]
28 test? ( dev-python/nose[${PYTHON_USEDEP}]
29 dev-python/sqlalchemy[$(python_gen_usedep python{2_6,2_7})]
30 dev-python/sqlobject
31 >=dev-python/peak-rules-0.5[${PYTHON_USEDEP}]
32 )"
33
34 S="${WORKDIR}/${MY_P}"
35
36 python_test() {
37 cd "${BUILD_DIR}/lib/${PN}/tests/" || die
38 for test in test_*.py; do
39 "${PYTHON}" $test && einfo "Test $test passed under ${EPYTHON}" \
40 || die "tests failed under ${EPYTHON}"
41 done
42 }

  ViewVC Help
Powered by ViewVC 1.1.20