pentoo-overlay/dev-python/pyperclip/pyperclip-1.6.0.ebuild
2018-03-12 12:57:06 +08:00

37 lines
808 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
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}.tar.gz"
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
}