From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A1AD139085 for ; Fri, 23 Dec 2016 12:05:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8FC9E0C3F; Fri, 23 Dec 2016 12:05:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CACE4E0C3F for ; Fri, 23 Dec 2016 12:05:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0CC84340EE8 for ; Fri, 23 Dec 2016 12:05:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA4B124FB for ; Fri, 23 Dec 2016 12:05:21 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1482494714.d7a5e7c24835ae6f6fa8c4642746fac58b17dd19.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-lzo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-lzo/python-lzo-1.08-r1.ebuild X-VCS-Directories: dev-python/python-lzo/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: d7a5e7c24835ae6f6fa8c4642746fac58b17dd19 X-VCS-Branch: master Date: Fri, 23 Dec 2016 12:05:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4a9ba277-e6fc-4595-b206-4ccc63be73b5 X-Archives-Hash: 48a34472be5df7f545b8d11a923ecc5a commit: d7a5e7c24835ae6f6fa8c4642746fac58b17dd19 Author: Benda Xu gentoo org> AuthorDate: Fri Dec 23 12:04:43 2016 +0000 Commit: Benda XU gentoo org> CommitDate: Fri Dec 23 12:05:14 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7a5e7c2 dev-python/python-lzo: support Prefix. Package-Manager: portage-2.3.2 dev-python/python-lzo/python-lzo-1.08-r1.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dev-python/python-lzo/python-lzo-1.08-r1.ebuild b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild index 01540f4..ddfebfd 100644 --- a/dev-python/python-lzo/python-lzo-1.08-r1.ebuild +++ b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 PYTHON_COMPAT=( python2_7 ) -inherit distutils-r1 +inherit distutils-r1 eutils prefix DESCRIPTION="Python interface to lzo" HOMEPAGE="http://www.oberhumer.com/opensource/lzo/" @@ -19,8 +19,10 @@ IUSE="" DEPEND="dev-libs/lzo:2" RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/lzo2compat.patch" ) - python_test() { "${PYTHON}" tests/test.py || die "tests failed" } + +src_prepare() { + epatch "$(prefixify_ro "${FILESDIR}"/lzo2compat.patch)" +}