| 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/python-geoclue/python-geoclue-0.1.0.ebuild,v 1.10 2013/01/06 09:30:09 ago Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
PYTHON_DEPEND="2"
|
| 8 |
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
RESTRICT_PYTHON_ABIS="3.* 2.5 2.7-pypy-* *-jython"
|
| 10 |
PYTHON_MODNAME="Geoclue"
|
| 11 |
|
| 12 |
inherit distutils virtualx
|
| 13 |
|
| 14 |
DESCRIPTION="Geoclue python module"
|
| 15 |
HOMEPAGE="http://live.gnome.org/gtg/soc/python_geoclue/"
|
| 16 |
SRC_URI="http://www.paulocabido.com/soc/${PN}/${P}.tar.gz"
|
| 17 |
|
| 18 |
SLOT="0"
|
| 19 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
| 20 |
LICENSE="GPL-3"
|
| 21 |
IUSE="test"
|
| 22 |
|
| 23 |
RDEPEND="
|
| 24 |
app-misc/geoclue
|
| 25 |
dev-python/dbus-python"
|
| 26 |
DEPEND="test? ( app-misc/geoclue )"
|
| 27 |
|
| 28 |
S="${WORKDIR}"/${PN}
|
| 29 |
|
| 30 |
src_test() {
|
| 31 |
testing() {
|
| 32 |
VIRTUALX_COMMAND="$(PYTHON)"
|
| 33 |
PYTHONPATH="build-${PYTHON_ABI}/lib" virtualmake tests/test.py
|
| 34 |
}
|
| 35 |
python_execute_function testing
|
| 36 |
}
|