diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-02-07 23:40:47 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-02-07 23:40:47 +0000 |
commit | 090a6d5bc6a9ae0b79ebcf6c1a320fa3b68dbd43 (patch) | |
tree | 7bcbf2034f01b223e50ba30b2f10b6a2298ee934 /dev-python/http-parser/http-parser-0.7.12.ebuild | |
parent | Move Creative Commons licenses to shorter names. (diff) | |
download | gentoo-2-090a6d5bc6a9ae0b79ebcf6c1a320fa3b68dbd43.tar.gz gentoo-2-090a6d5bc6a9ae0b79ebcf6c1a320fa3b68dbd43.tar.bz2 gentoo-2-090a6d5bc6a9ae0b79ebcf6c1a320fa3b68dbd43.zip |
Apply encoding fix and disable strict aliasing in the latest ebuild.
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python/http-parser/http-parser-0.7.12.ebuild')
-rw-r--r-- | dev-python/http-parser/http-parser-0.7.12.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dev-python/http-parser/http-parser-0.7.12.ebuild b/dev-python/http-parser/http-parser-0.7.12.ebuild index 5fbd018ccfe5..90a9b09d51ac 100644 --- a/dev-python/http-parser/http-parser-0.7.12.ebuild +++ b/dev-python/http-parser/http-parser-0.7.12.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/http-parser/http-parser-0.7.12.ebuild,v 1.2 2013/01/12 15:53:33 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/http-parser/http-parser-0.7.12.ebuild,v 1.3 2013/02/07 23:40:47 floppym Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2} pypy{1_9,2_0} ) -inherit distutils-r1 +inherit distutils-r1 flag-o-matic DESCRIPTION="HTTP request/response parser for python in C" HOMEPAGE="http://github.com/benoitc/http-parser" @@ -22,6 +22,16 @@ DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] dev-python/cython" +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 +} + src_install() { distutils-r1_src_install if use examples; then |