pentoo-overlay/dev-python/pyperclip/pyperclip-1.5.27.ebuild
2017-01-06 17:05:05 +08:00

38 lines
810 B
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5} )
inherit distutils-r1 virtualx
DESCRIPTION="Cross-platform clipboard module"
HOMEPAGE="https://github.com/asweigart/pyperclip https://pypi.python.org/pypi/pyperclip"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
app-arch/unzip
test? (
|| ( x11-misc/xsel
x11-misc/xclip
dev-python/PyQt4[${PYTHON_USEDEP}] )
)"
RDEPEND="${DEPEND}"
RESTRICT="test"
# tests are not part of the pypi tarball and there are no tags on github
python_compile() {
unset DISPLAY
distutils-r1_python_compile
}
python_test() {
virtx esetup.py test
}