portgen p5 is currently broken as MetaCPAN has disabled the v0 API.

This is a minimal patch, it seems to work OK but I haven't reviewed
the API changes to figure out if anything further would make sense.
Is this good enough for now?

Index: Port/CPAN.pm
===================================================================
RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/CPAN.pm,v
retrieving revision 1.3
diff -u -p -r1.3 CPAN.pm
--- Port/CPAN.pm        9 May 2017 13:37:08 -0000       1.3
+++ Port/CPAN.pm        20 Jul 2017 16:37:41 -0000
@@ -34,7 +34,7 @@ sub ecosystem_prefix
 sub base_url
 {
        my $self = shift;
-       return 'https://api.metacpan.org/v0/';
+       return 'https://fastapi.metacpan.org/v1/';
 }
 
 sub get_dist_info

Reply via email to