/[gentoo-x86]/dev-python/mamba/mamba-0.6.ebuild
Gentoo

Contents of /dev-python/mamba/mamba-0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Oct 16 03:49:10 2014 UTC (5 years, 8 months ago) by alunduil
Branch: MAIN
CVS Tags: HEAD
add ebuild for mamba—dependence for fig

(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 11A8217C!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 python3_3 )
7
8 inherit distutils-r1 vcs-snapshot
9
10 EGIT_REPO_URI="https://github.com/nestorsalceda/mamba.git"
11
12 DESCRIPTION="The definitive testing tool for Python. Born under the banner of Behavior Driven Development"
13 HOMEPAGE="http://nestorsalceda.github.io/mamba"
14 SRC_URI="https://github.com/nestorsalceda/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15
16 LICENSE="MIT"
17 SLOT="0"
18 KEYWORDS="~amd64"
19 IUSE="test"
20
21 DEPEND="
22 test? (
23 >=dev-python/sure-1.2.1[${PYTHON_USEDEP}]
24 >=dev-python/doublex-1.7[${PYTHON_USEDEP}]
25 >=dev-python/pyhamcrest-1.8.0[${PYTHON_USEDEP}]
26 )
27 "
28 RDEPEND="
29 ~dev-python/clint-0.3.1[${PYTHON_USEDEP}]
30 ~dev-python/coverage-3.7[${PYTHON_USEDEP}]
31 >=dev-python/watchdog-0.6.0[${PYTHON_USEDEP}]
32 "
33
34 python_prepare_all() {
35 ebegin 'patching requirements.txt'
36 sed \
37 -e '3s/==/>=/' \
38 -i requirements.txt
39 STATUS=$?
40 eend ${STATUS}
41 [[ ${STATUS} -gt 0 ]] && die
42
43 distutils-r1_python_prepare_all
44 }
45
46 python_test() {
47 local DISTUTILS_NO_PARALLEL_BUILD=TRUE
48
49 rm -f "${HOME}"/.pydistutils.cfg || die "Couldn't remove pydistutils.cfg"
50
51 distutils_install_for_testing
52
53 "${TEST_DIR}"/scripts/mamba || die "Tests failed under ${EPYTHON}"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20