2014-04-01 10:21:50 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-10-30 13:39:05 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-04-01 10:21:50 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/http-parser/http-parser-0.7.12.ebuild,v 1.6 2014/03/31 21:13:13 mgorny Exp $
|
2012-10-30 13:39:05 +04:00
|
|
|
|
2013-01-13 16:14:27 +04:00
|
|
|
EAPI=5
|
2012-10-30 13:39:05 +04:00
|
|
|
|
2014-04-01 10:21:50 +04:00
|
|
|
PYTHON_COMPAT=( python{2_6,2_7,3_2} pypy pypy2_0 )
|
2012-10-30 13:39:05 +04:00
|
|
|
|
2013-02-09 21:04:21 +04:00
|
|
|
inherit distutils-r1 flag-o-matic
|
2012-10-30 13:39:05 +04:00
|
|
|
|
|
|
|
DESCRIPTION="HTTP request/response parser for python in C"
|
|
|
|
HOMEPAGE="http://github.com/benoitc/http-parser"
|
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="examples"
|
|
|
|
|
|
|
|
RDEPEND=""
|
|
|
|
DEPEND="${RDEPEND}
|
2013-01-13 16:14:27 +04:00
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
2012-10-30 13:39:05 +04:00
|
|
|
dev-python/cython"
|
|
|
|
|
2013-02-09 21:04:21 +04:00
|
|
|
PATCHES=( "${FILESDIR}/${PN}-0.7.8-setup.patch" )
|
|
|
|
|
|
|
|
python_compile() {
|
|
|
|
if [[ ${EPYTHON} != python3* ]]; then
|
|
|
|
local CFLAGS=${CFLAGS}
|
|
|
|
append-cflags -fno-strict-aliasing
|
|
|
|
fi
|
|
|
|
distutils-r1_python_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
2012-10-30 13:39:05 +04:00
|
|
|
if use examples; then
|
|
|
|
docompress -x usr/share/doc/${P}/examples
|
|
|
|
insinto usr/share/doc/${P}
|
|
|
|
doins -r examples/
|
|
|
|
fi
|
|
|
|
}
|