Date: Sun, 30 Aug 2015 10:08:12 +0000 (UTC) From: Andrej Zverev <az@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r395604 - head/Mk Message-ID: <201508301008.t7UA8Cok058978@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: az Date: Sun Aug 30 10:08:11 2015 New Revision: 395604 URL: https://svnweb.freebsd.org/changeset/ports/395604 Log: Help portscout to detect a new version of the module on CPAN if the AUTHOR_ID for the new version and the current are not equal. This is only partial hack and won't work for all modules. Modified: head/Mk/bsd.sites.mk Modified: head/Mk/bsd.sites.mk ============================================================================== --- head/Mk/bsd.sites.mk Sun Aug 30 09:45:35 2015 (r395603) +++ head/Mk/bsd.sites.mk Sun Aug 30 10:08:11 2015 (r395604) @@ -1038,17 +1038,17 @@ MASTER_SITE_PERL_CPAN_BY+= \ http://backpan.perl.org/%CPANSORT%/%SUBDIR%/ \ ftp://ftp.funet.fi/pub/languages/perl/CPAN/%CPANSORT%/%SUBDIR%/ \ http://ftp.twaren.net/Unix/Lang/CPAN/%CPANSORT%/%SUBDIR%/ \ - ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%SUBDIR%/ \ - http://www.cpan.dk/modules/by-module/%SUBDIR%/ + http://cpan.metacpan.org/modules/by-module/%SUBDIRPLUS%/ \ + ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%SUBDIRPLUS%/ _PERL_CPAN_FLAG=${MASTER_SITE_SUBDIR:C/(CPAN):.*$/\1/} _PERL_CPAN_ID= ${MASTER_SITE_SUBDIR:C/^CPAN:(.)(.)(.*)$/\1\/\1\2\/\1\2\3/} .if !empty(_PERL_CPAN_ID) && ${_PERL_CPAN_FLAG:tl} == "cpan" _PERL_CPAN_SORT=authors/id/${_PERL_CPAN_ID} - MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/:S/%SUBDIR%\///} + MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/:S/%SUBDIR%\///:S/%SUBDIRPLUS%\//${PORTNAME:C/-.*//}\//} .else - MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/} + MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/:S/%SUBDIRPLUS%\///} .endif .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508301008.t7UA8Cok058978>