www/p5-WWW-Curl: Fix build with curl 7.87.0 (latest version)

- Bump PORTREVISION for package change
This commit is contained in:
Po-Chuan Hsieh 2023-01-30 20:30:29 +08:00
parent 6b3e772498
commit 8a8f565d84
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= WWW-Curl
PORTVERSION= 4.17
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= www ftp perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

View File

@ -1,20 +1,23 @@
--- Makefile.PL.orig 2014-02-21 08:08:09.000000000 -0800
+++ Makefile.PL 2020-04-20 15:36:35.008798000 -0700
@@ -100,6 +100,13 @@
--- Makefile.PL.orig 2014-02-21 16:08:09 UTC
+++ Makefile.PL
@@ -100,6 +100,16 @@ if (!defined($curl_h)) {
print "Found curl.h in $curl_h\n";
my @syms;
my $has_cpp = 0;
+ my @skiplist = qw/
+ CURL_DEPRECATED
+ CURL_DID_MEMORY_FUNC_TYPEDEFS
+ CURL_IGNORE_DEPRECATION
+ CURL_STRICTER
+ CURLINC_CURL_H
+ CURL_WIN32
+ CURLINC_CURL_H
+ CURLOPT
+ CURLOPTDEPRECATED
+ /;
open(H_IN, "-|", "cpp", $curl_h) and $has_cpp++;
unless ($has_cpp) {
warn "No working cpp ($!). Parsing curl.h in Perl";
@@ -121,6 +128,7 @@
@@ -121,6 +131,7 @@ if (!defined($curl_h)) {
open (H, "<", $curl_h) or die ("Cannot open $curl_h: ".$!);
while(<H>) {
if (/^#define (CURL[A-Za-z0-9_]*)/) {