forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST virtualenv-13.1.2.tar.gz 1704701 SHA256 438a9933dac2e6ef2e4270fe82435f9c29f933f05e2c5840a7b45e342b6292f8 SHA512 e58f0b1d46174d61b0ef6703020806208f34291c5490fabf29d3b82a03ba89a7caeb377aac44549f6c0ffe2e445786e16dcd67593b7b8d3b1fae0d9e8c8ef124 WHIRLPOOL 03fe0181ebb2d4becb357a740cc3f743526a087e03c03f5e20abac6a54a2701865c89f9f6023ae996d3ca032b08d28e1048747dc8ea1740316f330180f0f5161 | ||
DIST virtualenv-14.0.1.tar.gz 1794063 SHA256 66778f6d27b3864644b923fdbac69d012281821c0c90d2e928a319e9eeef2830 SHA512 594fd00d99808dcc6da573b5b60ffe397bda229517351410aed4342935afcf0ce8d660ef8209fd8a19dd7d880c1afdb7caeb12c638dce80d01b623caa4b5c0fc WHIRLPOOL 1ce84d2d78953897f4fdeea9268849c21da7ca1e25b05b17efa7262a9557c1b89739f81566d7a3f96292837fbd998cce3052954c6acfe3ac1071d0179d57c6b6 | ||
DIST virtualenv-14.0.3.tar.gz 1794400 SHA256 9b67a5b78f8d8bac1f5221d19b912023574aaa2376d1b2ce4cc3ade9fe04b43e SHA512 b6de36e0aa009c5841589ebfc35f56f4ee46cfbe3f1f48bb79fdec04558bc6655e8a7b97fbb98077f0992fc17f7293539af36865c3b1e965f00e820a33ba93f8 WHIRLPOOL 5670100c1656105cb0e3244bf8634d96a2b63fb2063f5c14199ca8dee09f0923386f5825966ff2f4b2edf59ff14b63f8122459b8d666f76a83fa732acce85639 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
|
||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) | ||
|
||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Virtual Python Environment builder" | ||
HOMEPAGE=" | ||
http://www.virtualenv.org/ | ||
https://pypi.python.org/pypi/virtualenv | ||
https://github.com/pypa/virtualenv/ | ||
" | ||
SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="MIT" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" | ||
SLOT="0" | ||
IUSE="doc test" | ||
|
||
RDEPEND="" | ||
DEPEND="${RDEPEND} | ||
>=dev-python/setuptools-19.6.1[${PYTHON_USEDEP}] | ||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) | ||
test? ( | ||
dev-python/mock[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
)" | ||
|
||
DOCS=( docs/index.rst docs/changes.rst ) | ||
|
||
PATCHES=( | ||
"${FILESDIR}"/${PN}-1.8.2-no-versioned-script.patch | ||
"${FILESDIR}"/${PN}-12.1.1-skip-broken-test.patch | ||
) | ||
|
||
python_compile_all() { | ||
use doc && emake -C docs html | ||
} | ||
|
||
python_test() { | ||
py.test -v -v || die "Tests fail with ${EPYTHON}" | ||
} | ||
|
||
python_install_all() { | ||
use doc && local HTML_DOCS=( "${S}"/docs/_build/html/. ) | ||
distutils-r1_python_install_all | ||
} |