Skip to content

Commit

Permalink
www/p5-ParallelUserAgent: Convert REINPLACE_CMD to patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jun 20, 2021
1 parent c282719 commit fc92d76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 3 additions & 5 deletions www/p5-ParallelUserAgent/Makefile
Expand Up @@ -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>
10 changes: 10 additions & 0 deletions 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);

0 comments on commit fc92d76

Please sign in to comment.