dev-python/python-lzo: revise prefix support.
authorBenda Xu <heroxbd@gentoo.org>
Sun, 15 Jan 2017 02:40:33 +0000 (11:40 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Sun, 15 Jan 2017 02:40:51 +0000 (11:40 +0900)
  The original part of the patch should not be prefixified.

Package-Manager: portage-2.3.3

dev-python/python-lzo/python-lzo-1.08-r1.ebuild

index ddfebfd56f025a663dbc68720f996263a0b72d94..9aa56da4f19cc7f94b3f22b46c7ab0e76d621b77 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -24,5 +24,6 @@ python_test() {
 }
 
 src_prepare() {
-       epatch "$(prefixify_ro "${FILESDIR}"/lzo2compat.patch)"
+       epatch "$(PREFIX_LINE_MATCH='/##/!' \
+               prefixify_ro "${FILESDIR}"/lzo2compat.patch)"
 }