Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2021 11:43:42 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fc92d7642c96 - main - www/p5-ParallelUserAgent: Convert REINPLACE_CMD to patch file
Message-ID:  <202106201143.15KBhgUD016220@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fc92d7642c96799ac8dd7544cf6a28aa47dde0f6

commit fc92d7642c96799ac8dd7544cf6a28aa47dde0f6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-06-20 11:36:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-06-20 11:36:27 +0000

    www/p5-ParallelUserAgent: Convert REINPLACE_CMD to patch file
---
 www/p5-ParallelUserAgent/Makefile                              |  8 +++-----
 .../files/patch-lib-LWP-Parallel-UserAgent.pm                  | 10 ++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/www/p5-ParallelUserAgent/Makefile b/www/p5-ParallelUserAgent/Makefile
index c410278945ed..faecd5f061b0 100644
--- a/www/p5-ParallelUserAgent/Makefile
+++ b/www/p5-ParallelUserAgent/Makefile
@@ -17,12 +17,10 @@ BUILD_DEPENDS=	${RUN_DEPENDS}
 RUN_DEPENDS=	p5-IO-Socket-SSL>=0:security/p5-IO-Socket-SSL \
 		p5-libwww>=5.64:www/p5-libwww
 
-NO_ARCH=	yes
-REINPLACE_ARGS=	-i ''
-USE_PERL5=	configure
 USES=		perl5 tar:tgz
+USE_PERL5=	configure
 
-post-patch:
-	@${REINPLACE_CMD} -e '/protocol->parse_head/d' ${WRKSRC}/lib/LWP/Parallel/UserAgent.pm
+NO_ARCH=	yes
+REINPLACE_ARGS=	-i ''
 
 .include <bsd.port.mk>
diff --git a/www/p5-ParallelUserAgent/files/patch-lib-LWP-Parallel-UserAgent.pm b/www/p5-ParallelUserAgent/files/patch-lib-LWP-Parallel-UserAgent.pm
new file mode 100644
index 000000000000..12c1753453e0
--- /dev/null
+++ b/www/p5-ParallelUserAgent/files/patch-lib-LWP-Parallel-UserAgent.pm
@@ -0,0 +1,10 @@
+--- lib/LWP/Parallel/UserAgent.pm.orig	2016-05-29 14:13:43 UTC
++++ lib/LWP/Parallel/UserAgent.pm
+@@ -1517,7 +1517,6 @@ sub init_request {
+ 
+     # Transfer some attributes to the protocol object
+     $protocol->can('parse_head') ?
+-   $protocol->parse_head($parse_head) :
+    $protocol->_elem('parse_head', $parse_head);
+     $protocol->max_size($max_size);
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106201143.15KBhgUD016220>