From f63e54e3067d3f304e0ded3a38852ddd35e1e795 Mon Sep 17 00:00:00 2001 From: qifly Date: Wed, 29 Apr 2015 09:48:23 +0800 Subject: [PATCH] Create python3-xlib-0.15.ebuild --- .../python3-xlib/python3-xlib-0.15.ebuild | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 dev-python/python3-xlib/python3-xlib-0.15.ebuild diff --git a/dev-python/python3-xlib/python3-xlib-0.15.ebuild b/dev-python/python3-xlib/python3-xlib-0.15.ebuild new file mode 100644 index 0000000000..3bc6d74bdf --- /dev/null +++ b/dev-python/python3-xlib/python3-xlib-0.15.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python{3_3,3_4} ) +SUPPORT_PYTHON_ABIS="1" + +inherit distutils-r1 + +DESCRIPTION="python3 version of python-xlib" +HOMEPAGE="https://github.com/LiuLang/python3-xlib https://pypi.python.org/pypi/python3-xlib" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPLv2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="" +RESTRICT="mirror" + +RESTRICT_PYTHON_ABIS="3.*" + +PYTHON_MODNAME="Xlib" + +src_compile() { + distutils_src_compile +} + +src_test() { + cd test + testing() { + local return_status="0" test + for test in *.py; do + echo "Running ${test}..." + PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" "${test}" || return_status="1" + done + return "${return_status}" + } + python_execute_function testing +} + +src_install () { + distutils_src_install +}