Tuesday, October 30, 2018

infrastructure/mk/cpan.port.mk: search.cpan.org -> metacpan.org

I'm proposing here a change for CPAN modules' default HOMEPAGE to
metacpan.org instead, as search.cpan.org is no more [1]:

- This would avoid useless redirections
- It provides https for homepages

It's the first time i touch to something in the infrastructure, i may
have missed something. I've rebuilt and install various Perl ports with
that change, it works as expected.

Any comments or feedback?

Charlène.

[1] https://log.perl.org/2018/05/goodbye-search-dot-cpan-dot-org.html


Index: cpan.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/cpan.port.mk,v
retrieving revision 1.20
diff -u -p -r1.20 cpan.port.mk
--- cpan.port.mk 20 Mar 2016 19:56:44 -0000 1.20
+++ cpan.port.mk 29 Oct 2018 21:46:21 -0000
@@ -7,7 +7,7 @@ MASTER_SITES ?= ${MASTER_SITE_PERL_CPAN:
MASTER_SITES ?= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/$
{CPAN_AUTHOR:C/^(.).*/\1/}/${CPAN_AUTHOR:C/^(..).*/\1/}/$
{CPAN_AUTHOR}/} .endif
-HOMEPAGE ?= http://search.cpan.org/dist/${DISTNAME:C/-[^-]*$//}/
+HOMEPAGE ?= https://metacpan.org/release/${DISTNAME:C/-[^-]*$//}

CATEGORIES += perl5
.if ! ${CONFIGURE_STYLE:L:Mperl}

No comments:

Post a Comment