From cae481869db5c06f68abeaf556133db2ce25a4e4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 20 Apr 2009 02:14:07 +0200 Subject: [PATCH] Add CPAN_SITE for $distfiles and use it. --HG-- extra : convert_revision : f3ef87a4459e089daaf78741a4cb0fb1bcbfd6bd --- shutils/tmpl_vars.sh | 1 + templates/perl-XML-Parser/template | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shutils/tmpl_vars.sh b/shutils/tmpl_vars.sh index 978ae03deb..3c51751a9a 100644 --- a/shutils/tmpl_vars.sh +++ b/shutils/tmpl_vars.sh @@ -9,3 +9,4 @@ XORG_SITE="http://xorg.freedesktop.org/releases/individual" DEBIAN_SITE="http://ftp.debian.org/debian/pool" GNOME_SITE="http://ftp.gnome.org/pub/GNOME/sources" KERNEL_SITE="http://www.kernel.org/pub/linux" +CPAN_SITE="http://cpan.perl.org/modules/by-module" diff --git a/templates/perl-XML-Parser/template b/templates/perl-XML-Parser/template index f87769b42d..f7514f23cc 100644 --- a/templates/perl-XML-Parser/template +++ b/templates/perl-XML-Parser/template @@ -2,8 +2,7 @@ pkgname=perl-XML-Parser version=2.36 wrksrc="XML-Parser-$version" -distfiles=" -http://cpan.perl.org/modules/by-module/XML/XML-Parser-$version.tar.gz" +distfiles="${CPAN_SITE}/XML/XML-Parser-$version.tar.gz" build_style=perl_module short_desc="Perl extension interface to James Clark's XML parser, expat" maintainer="Juan RP "