You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/configobj/configobj-4.7.2-r1.ebuild

38 lines
1.0 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/configobj-4.7.2-r1.ebuild,v 1.7 2013/05/25 08:01:06 ago Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} )
inherit distutils-r1 eutils
DESCRIPTION="Simple config file reader and writer"
HOMEPAGE="http://www.voidspace.org.uk/python/configobj.html http://code.google.com/p/configobj/ http://pypi.python.org/pypi/configobj"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
IUSE="doc"
DEPEND="app-arch/unzip"
RDEPEND=""
python_prepare_all() {
epatch "${FILESDIR}/${PN}-4.7.2-fix_tests.patch"
sed -e "s/ \(doctest\.testmod(.*\)/ sys.exit(\1[0] != 0)/" -i validate.py
}
python_test() {
"${PYTHON}" validate.py -v || die
}
python_install_all() {
if use doc; then
rm -f docs/BSD*
insinto /usr/share/doc/${PF}/html
doins -r docs/* || die "doins failed"
fi
}