Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 82e03be025
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (38 sloc) 1.082 kB
# Copyright owners: Arfrever Frehtes Taifersar Arahesis
# Distributed under the terms of the GNU General Public License v2
EAPI="4-python"
PYTHON_MULTIPLE_ABIS="1"
inherit distutils
DESCRIPTION="Python 2 and 3 compatibility utilities"
HOMEPAGE="http://pypi.python.org/pypi/six"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="doc"
DEPEND="doc? ( $(python_abi_depend dev-python/sphinx) )"
RDEPEND=""
PYTHON_MODULES="six.py"
src_prepare() {
distutils_src_prepare
# Compatibility with Jython
sed -e "s/except OverflowError:/except (OverflowError, TypeError):/" -i six.py
}
src_compile() {
distutils_src_compile
if use doc; then
einfo "Generation of documentation"
pushd documentation > /dev/null
emake html
popd > /dev/null
fi
}
src_install() {
distutils_src_install
if use doc; then
pushd documentation/_build/html > /dev/null
insinto /usr/share/doc/${PF}/html
doins -r [a-z]* _static
popd > /dev/null
fi
}
Jump to Line
Something went wrong with that request. Please try again.