# HG changeset patch # User Pascal Bellard # Date 1631887958 0 # Node ID ca4a422cce073a4440941ccc6fd5856f23f194e4 # Parent 15650f5d595bbd0bf92b04de3e620553f81cf7a0 Add some current_version diff -r 15650f5d595b -r ca4a422cce07 apache-mod-perl/receipt --- a/apache-mod-perl/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/apache-mod-perl/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -14,6 +14,12 @@ DEPENDS="apache perl-thread" BUILD_DEPENDS="perl-thread gdbm-dev apache-dev apr-dev apr-util-dev apache" +current_version() +{ + wget -O - http://perl.apache.org/download/index.html 2>/dev/null | \ + sed '/Version/!d;s|.*ersion ||;s| .*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 glade-perl/receipt --- a/glade-perl/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/glade-perl/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -14,6 +14,12 @@ DEPENDS="libglade perl-gtk2 perl" BUILD_DEPENDS="perl-extutils-depends perl-extutils-pkgconfig perl-gtk2 libglade-dev" +current_version() +{ + wget -O - https://sourceforge.net/projects/gtk2-perl/files/Gtk2_GladeXML/ 2>/dev/null | \ + sed '/Click to/!d;s|.*enter ||;s|".*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 libsdl-perl/receipt --- a/libsdl-perl/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/libsdl-perl/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -8,7 +8,7 @@ LICENSE="LGPL2" SOURCE="SDL_Perl" TARBALL="$SOURCE-v${VERSION}.tar.gz" -WEB_SITE="http://sdl.perl.org" +WEB_SITE="https://metacpan.org/dist/SDL" # http://sdl.perl.org WGET_URL="http://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/$TARBALL" DEPENDS="xorg libglu-mesa mesa libsdl libsdl-gfx libsdl-image libsdl-mixer \ @@ -17,6 +17,12 @@ libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev libsdl-net-dev \ libsdl-ttf-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-convert-asn1/receipt --- a/perl-convert-asn1/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-convert-asn1/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -6,7 +6,7 @@ SHORT_DESC="Perl extension Convert::ASN1." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Convert-ASN1" SOURCE="Convert-ASN1" TARBALL="$SOURCE-$VERSION.tar.gz" @@ -15,6 +15,12 @@ DEPENDS="perl" BUILD_DEPENDS="perl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-crypt-blowfish/receipt --- a/perl-crypt-blowfish/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-crypt-blowfish/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Crypt-Blowfish" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Crypt-Blowfish" WGET_URL="http://cpan.org/authors/id/D/DP/DPARIS/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-crypt-cbc/receipt --- a/perl-crypt-cbc/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-crypt-cbc/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Crypt-CBC" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Crypt-CBC" WGET_URL="http://cpan.org/authors/id/L/LD/LDS/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-crypt-smbhash/receipt --- a/perl-crypt-smbhash/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-crypt-smbhash/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Crypt-SmbHash" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Crypt-SmbHash" WGET_URL="http://cpan.org/authors/id/B/BJ/BJKUIT/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-crypt-ssleay/receipt --- a/perl-crypt-ssleay/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-crypt-ssleay/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,12 +10,18 @@ BUILD_DEPENDS="perl" SOURCE="Crypt-SSLeay" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Crypt-SSLeay" WGET_URL="https://metacpan.org/CPAN/authors/id/N/NA/NANIS/$TARBALL" DEPENDS="openssl" BUILD_DEPENDS="openssl-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-datetime-format-mail/receipt --- a/perl-datetime-format-mail/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-datetime-format-mail/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -8,12 +8,18 @@ LICENSE="GPL2" SOURCE="DateTime-Format-Mail" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/DateTime-Format-Mail" WGET_URL="https://cpan.metacpan.org/authors/id/B/BO/BOOK/$TARBALL" DEPENDS="perl" BUILD_DEPENDS="perl-datetime perl-params-validate" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-datetime-locale/receipt --- a/perl-datetime-locale/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-datetime-locale/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="DateTime-Locale" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/DateTime-Locale" WGET_URL="https://metacpan.org/CPAN/authors/id/D/DR/DROLSKY/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-dbi-dbd/receipt --- a/perl-dbi-dbd/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-dbi-dbd/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="DBI" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/DBI" WGET_URL="http://cpan.org/authors/id/T/TI/TIMB/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-dbi/receipt --- a/perl-dbi/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-dbi/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -3,16 +3,22 @@ PACKAGE="perl-dbi" VERSION="v3.0.17" CATEGORY="development" -SHORT_DESC="DBI module is a Perl extension." +SHORT_DESC="Class::DBI module is a Perl extension." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL" DEPENDS="perl" BUILD_DEPENDS="perl" SOURCE="Class-DBI" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Class-DBI" WGET_URL="http://cpan.org/authors/id/T/TM/TMTM/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-digest-sha1/receipt --- a/perl-digest-sha1/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-digest-sha1/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Digest-SHA1" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Digest-SHA1" WGET_URL="https://metacpan.org/CPAN/authors/id/G/GA/GAAS/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-file-basedir/receipt --- a/perl-file-basedir/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-file-basedir/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="File-BaseDir" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/File-BaseDir" WGET_URL="https://metacpan.org/CPAN/authors/id/P/PA/PARDUS/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-file-listing/receipt --- a/perl-file-listing/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-file-listing/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="File-Listing" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/pod/File::Listing" WGET_URL="https://metacpan.org/CPAN/authors/id/G/GA/GAAS/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-file-tail/receipt --- a/perl-file-tail/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-file-tail/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="File-Tail" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/File-Tail" WGET_URL="https://metacpan.org/CPAN/authors/id/M/MG/MGRABNAR/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-filesys-statvfs/receipt --- a/perl-filesys-statvfs/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-filesys-statvfs/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -8,12 +8,18 @@ LICENSE="GPL" SOURCE="Filesys-Statvfs" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Filesys-Statvfs" WGET_URL="https://metacpan.org/CPAN/authors/id/I/IG/IGUTHRIE/$TARBALL" DEPENDS="perl" BUILD_DEPENDS="perl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-gtk2-trayicon/receipt --- a/perl-gtk2-trayicon/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-gtk2-trayicon/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -8,12 +8,18 @@ LICENSE="GPL" SOURCE="Gtk2-TrayIcon" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Gtk2-TrayIcon" WGET_URL="https://metacpan.org/CPAN/authors/id/B/BO/BORUP/$TARBALL" DEPENDS="perl-gtk2" BUILD_DEPENDS="perl-gtk2 perl-extutils-depends perl-extutils-pkgconfig gtk+-dev" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-html-tagset/receipt --- a/perl-html-tagset/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-html-tagset/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="HTML-Tagset" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://www.cpan.org/modules" +WEB_SITE="https://metacpan.org/dist/HTML-Tagset" WGET_URL="https://metacpan.org/CPAN/authors/id/P/PE/PETDANCE/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-http-proxy/receipt --- a/perl-http-proxy/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-http-proxy/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="$DEPENDS" SOURCE="HTTP-Proxy" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/HTTP-Proxy" WGET_URL="https://cpan.metacpan.org/authors/id/B/BO/BOOK/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-http-server-simple-authen/receipt --- a/perl-http-server-simple-authen/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-http-server-simple-authen/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="$DEPENDS" SOURCE="HTTP-Server-Simple-Authen" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/HTTP-Server-Simple-Authen" WGET_URL="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-io-capture/receipt --- a/perl-io-capture/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-io-capture/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="IO-Capture" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/IO-Capture" WGET_URL="https://cpan.metacpan.org/authors/id/R/RE/REYNOLDS/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-io-scalar/receipt --- a/perl-io-scalar/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-io-scalar/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="IO-stringy" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/IO-Stringy" WGET_URL="https://metacpan.org/CPAN/authors/id/D/DS/DSKOLL/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-jcode/receipt --- a/perl-jcode/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-jcode/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Jcode" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Jcode" WGET_URL="http://cpan.org/authors/id/D/DA/DANKOGAI/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-lchown/receipt --- a/perl-lchown/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-lchown/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -8,12 +8,18 @@ LICENSE="GPL" SOURCE="Lchown" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Lchown" WGET_URL="https://metacpan.org/CPAN/authors/id/N/NC/NCLEATON/$TARBALL" DEPENDS="perl" BUILD_DEPENDS="perl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-lwp-protocol-https/receipt --- a/perl-lwp-protocol-https/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-lwp-protocol-https/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="$DEPENDS" SOURCE="LWP-Protocol-https" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/LWP-Protocol-https" WGET_URL="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-maketext-gettext/receipt --- a/perl-maketext-gettext/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-maketext-gettext/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Locale-Maketext-Gettext" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Locale-Maketext-Gettext" WGET_URL="https://metacpan.org/CPAN/authors/id/I/IM/IMACAT/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-md4/receipt --- a/perl-md4/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-md4/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -6,7 +6,7 @@ SHORT_DESC="Digest::Perl::MD4 is a Perl extension." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL" -WEB_SITE="https://metacpan.org/" +WEB_SITE="https://metacpan.org/dist/Digest-Perl-MD4" SOURCE="Digest-Perl-MD4" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="https://metacpan.org/CPAN/authors/id/O/OT/OTAKA/$TARBALL" @@ -14,6 +14,12 @@ DEPENDS="perl" BUILD_DEPENDS="perl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-net-ftp-autoreconnect/receipt --- a/perl-net-ftp-autoreconnect/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-net-ftp-autoreconnect/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Net-FTP-AutoReconnect" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Net-FTP-AutoReconnect" WGET_URL="https://metacpan.org/CPAN/authors/id/G/GI/GIFF/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-net-ftp-retrhandle/receipt --- a/perl-net-ftp-retrhandle/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-net-ftp-retrhandle/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Net-FTP-RetrHandle" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Net-FTP-RetrHandle" WGET_URL="https://metacpan.org/CPAN/authors/id/G/GI/GIFF/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-net-ftp/receipt --- a/perl-net-ftp/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-net-ftp/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="libnet" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/libnet" WGET_URL="https://metacpan.org/CPAN/authors/id/G/GB/GBARR/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-net-ldap/receipt --- a/perl-net-ldap/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-net-ldap/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -16,6 +16,12 @@ DEPENDS="perl perl-authen-sasl perl-convert-asn1 perl-uri" BUILD_DEPENDS="$DEPENDS" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-net-pcap/receipt --- a/perl-net-pcap/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-net-pcap/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl libpcap libpcap-dev" SOURCE="Net-Pcap" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Net-Pcap" WGET_URL="http://cpan.org/authors/id/S/SA/SAPER/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-net-xwhois/receipt --- a/perl-net-xwhois/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-net-xwhois/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Net-XWhois" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://www.cpan.org/modules/" +WEB_SITE="https://metacpan.org/dist/Net-XWhois" WGET_URL="https://metacpan.org/CPAN/authors/id/V/VI/VIPUL/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-netaddr-ip/receipt --- a/perl-netaddr-ip/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-netaddr-ip/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="NetAddr-IP" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://www.cpan.org/modules/" +WEB_SITE="https://metacpan.org/dist/NetAddr-IP" WGET_URL="https://cpan.metacpan.org/authors/id/M/MI/MIKER/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-parallel-forkmanager/receipt --- a/perl-parallel-forkmanager/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-parallel-forkmanager/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Parallel-ForkManager" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Parallel-ForkManager" WGET_URL="https://cpan.metacpan.org/authors/id/Y/YA/YANICK/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-parse-recdescent/receipt --- a/perl-parse-recdescent/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-parse-recdescent/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -15,6 +15,12 @@ DEPENDS="perl" BUILD_DEPENDS="perl perl-extutils-makemaker" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-preadsheet-parseexcel/receipt --- a/perl-preadsheet-parseexcel/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-preadsheet-parseexcel/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Spreadsheet-ParseExcel" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Spreadsheet-ParseExcel" WGET_URL="http://cpan.org/authors/id/S/SZ/SZABGAB/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-rfc-rfc822-address/receipt --- a/perl-rfc-rfc822-address/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-rfc-rfc822-address/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="RFC-RFC822-Address" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/RFC-RFC822-Address" WGET_URL="https://metacpan.org/CPAN/authors/id/A/AB/ABIGAIL/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-smtp-ssl/receipt --- a/perl-smtp-ssl/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-smtp-ssl/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Net-SMTP-SSL" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Net-SMTP-SSL" WGET_URL="https://metacpan.org/CPAN/authors/id/C/CW/CWEST/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-soap-lite/receipt --- a/perl-soap-lite/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-soap-lite/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="SOAP-Lite" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://www.cpan.org/modules/" +WEB_SITE="https://metacpan.org/dist/SOAP-Lite" WGET_URL="https://metacpan.org/CPAN/authors/id/M/MK/MKUTTER/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-sub-identify/receipt --- a/perl-sub-identify/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-sub-identify/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Sub-Identify" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Sub-Identify" WGET_URL="https://cpan.metacpan.org/authors/id/R/RG/RGARCIA/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-test-tester/receipt --- a/perl-test-tester/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-test-tester/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -14,6 +14,12 @@ DEPENDS="perl" BUILD_DEPENDS="perl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-texi2html/receipt --- a/perl-texi2html/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-texi2html/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -14,6 +14,12 @@ DEPENDS="perl" BUILD_DEPENDS="perl" +current_version() +{ + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ + sed '/>texi2html-/!d;/tar/!d;s|.*texi2html-||;s|.tar.*||' | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-text-aspell/receipt --- a/perl-text-aspell/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-text-aspell/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl aspell aspell-dev" SOURCE="Text-Aspell" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://www.cpan.org/modules/" +WEB_SITE="https://metacpan.org/dist/Text-Aspell" WGET_URL="https://metacpan.org/CPAN/authors/id/H/HA/HANK/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-text-iconv/receipt --- a/perl-text-iconv/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-text-iconv/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Text-Iconv" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Text-Iconv" WGET_URL="https://metacpan.org/CPAN/authors/id/M/MP/MPIOTR/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-unicode-map/receipt --- a/perl-unicode-map/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-unicode-map/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Unicode-Map" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Unicode-Map" WGET_URL="http://cpan.org/authors/id/M/MS/MSCHWARTZ/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-unicode-maputf8/receipt --- a/perl-unicode-maputf8/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-unicode-maputf8/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="Unicode-MapUTF8" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Unicode-MapUTF8" WGET_URL="https://metacpan.org/CPAN/authors/id/S/SN/SNOWHARE/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-universal-require/receipt --- a/perl-universal-require/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-universal-require/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="UNIVERSAL-require" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/UNIVERSAL-require" WGET_URL="https://cpan.metacpan.org/authors/id/N/NE/NEILB/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-unix-mknod/receipt --- a/perl-unix-mknod/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-unix-mknod/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -8,12 +8,18 @@ LICENSE="GPL" SOURCE="Unix-Mknod" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/Unix-Mknod" WGET_URL="https://metacpan.org/CPAN/authors/id/P/PI/PIRZYK/$TARBALL" DEPENDS="perl" BUILD_DEPENDS="perl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 15650f5d595b -r ca4a422cce07 perl-xml-treepp/receipt --- a/perl-xml-treepp/receipt Fri Sep 17 10:35:57 2021 +0000 +++ b/perl-xml-treepp/receipt Fri Sep 17 14:12:38 2021 +0000 @@ -10,9 +10,15 @@ BUILD_DEPENDS="perl" SOURCE="XML-TreePP" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://cpan.org/" +WEB_SITE="https://metacpan.org/dist/XML-TreePP" WGET_URL="https://cpan.metacpan.org/authors/id/K/KA/KAWASAKI/$TARBALL" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() {