Gentoo Archives: gentoo-dev

From: "Azamat H. Hackimov" <azamat.hackimov@×××××.com>
To: gentoo-dev@l.g.o
Cc: "Azamat H. Hackimov" <azamat.hackimov@×××××.com>
Subject: [gentoo-dev] [PATCH] perl-module.eclass: replace search.cpan.org
Date: Sun, 16 Sep 2018 14:14:35
Message-Id: 20180916141426.25447-1-azamat.hackimov@gmail.com
1 Replace search.cpan.org with metacpan.org since it is retired[1][2].
2
3 [1] https://www.perl.com/article/saying-goodbye-to-search-cpan-org/
4 [2] https://log.perl.org/2018/05/goodbye-search-dot-cpan-dot-org.html
5 ---
6 eclass/perl-module.eclass | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
8
9 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
10 index 2a3932b538b..a6f56fe9e1b 100644
11 --- a/eclass/perl-module.eclass
12 +++ b/eclass/perl-module.eclass
13 @@ -162,7 +162,7 @@ if [[ ${EAPI:-0} == 5 ]]; then
14 [[ -z "${SRC_URI}" && -n "${MODULE_AUTHOR}" ]] && \
15 SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION:+${MODULE_SECTION}/}${MODULE_A}"
16 [[ -z "${HOMEPAGE}" ]] && \
17 - HOMEPAGE="http://search.cpan.org/dist/${MODULE_NAME}/"
18 + HOMEPAGE="https://metacpan.org/release/${MODULE_NAME}"
19
20 SRC_TEST="skip"
21 else
22 @@ -175,7 +175,7 @@ else
23 [[ -z "${SRC_URI}" && -n "${DIST_AUTHOR}" ]] && \
24 SRC_URI="mirror://cpan/authors/id/${DIST_AUTHOR:0:1}/${DIST_AUTHOR:0:2}/${DIST_AUTHOR}/${DIST_SECTION:+${DIST_SECTION}/}${DIST_A}"
25 [[ -z "${HOMEPAGE}" ]] && \
26 - HOMEPAGE="http://search.cpan.org/dist/${DIST_NAME}/"
27 + HOMEPAGE="http://metacpan.org/release/${DIST_NAME}"
28
29 [[ -z "${DIST_EXAMPLES}" ]] || IUSE+=" examples"
30 fi
31 --
32 2.16.4