From 090a6d5bc6a9ae0b79ebcf6c1a320fa3b68dbd43 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Thu, 7 Feb 2013 23:40:47 +0000 Subject: 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) --- dev-python/http-parser/ChangeLog | 5 ++++- dev-python/http-parser/http-parser-0.7.12.ebuild | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'dev-python') diff --git a/dev-python/http-parser/ChangeLog b/dev-python/http-parser/ChangeLog index 530a545163ac..546f8b08c405 100644 --- a/dev-python/http-parser/ChangeLog +++ b/dev-python/http-parser/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-python/http-parser # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/http-parser/ChangeLog,v 1.8 2013/01/21 11:21:51 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/http-parser/ChangeLog,v 1.9 2013/02/07 23:40:47 floppym Exp $ + + 07 Feb 2013; Mike Gilbert http-parser-0.7.12.ebuild: + Apply encoding fix and disable strict aliasing in the latest ebuild. 21 Jan 2013; Agostino Sarubbo http-parser-0.7.8.ebuild: Stable for x86, wrt bug #451608 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 -- cgit v1.2.3-65-gdbad