blob: 7873c33d8423cd525c35b7e2012675010e7a1a77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bitstring/bitstring-3.1.1.ebuild,v 1.3 2013/05/10 03:44:18 patrick Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2} )
inherit distutils-r1
DESCRIPTION="A pure Python module for creation and analysis of binary data"
HOMEPAGE="http://python-bitstring.googlecode.com/"
SRC_URI="http://python-bitstring.googlecode.com/files/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND=""
python_test() {
pushd test > /dev/null
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitarray || die "test_bitarray failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bits || die "test_bits failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitstore || die "test_bitstore failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitstream || die "test_bitstream failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitstring || die "test_bitstring failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_constbitstream || die "test_constbitstream failed"
popd > /dev/null
}
|