[29830] trunk/base/src/port1.0/resources/group/perl5-1.0.tcl
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 11 04:54:48 PDT 2007
Revision: 29830
http://trac.macosforge.org/projects/macports/changeset/29830
Author: nox at macports.org
Date: 2007-10-11 04:54:48 -0700 (Thu, 11 Oct 2007)
Log Message:
-----------
perl5-1.0.tcl: Whitespace changes (tabs -> spaces.)
Modified Paths:
--------------
trunk/base/src/port1.0/resources/group/perl5-1.0.tcl
Modified: trunk/base/src/port1.0/resources/group/perl5-1.0.tcl
===================================================================
--- trunk/base/src/port1.0/resources/group/perl5-1.0.tcl 2007-10-11 11:23:59 UTC (rev 29829)
+++ trunk/base/src/port1.0/resources/group/perl5-1.0.tcl 2007-10-11 11:54:48 UTC (rev 29830)
@@ -38,13 +38,13 @@
set perl5.bin ${prefix}/bin/perl
proc perl5.extract_config {var {default ""}} {
- global perl5.bin
+ global perl5.bin
- if {[catch {set val [lindex [split [exec ${perl5.bin} -V:${var}] {'}] 1]}]} {
- set val ${default}
- }
+ if {[catch {set val [lindex [split [exec ${perl5.bin} -V:${var}] {'}] 1]}]} {
+ set val ${default}
+ }
- return $val
+ return $val
}
set perl5.version [perl5.extract_config version]
@@ -60,72 +60,72 @@
# perl5 group setup procedure
proc perl5.setup {module vers {cpandir ""}} {
- global perl5.bin perl5.lib perl5.module perl5.cpandir
+ global perl5.bin perl5.lib perl5.module perl5.cpandir
- # define perl5.module
- set perl5.module ${module}
+ # define perl5.module
+ set perl5.module ${module}
- # define perl5.cpandir
- # check if optional CPAN dir specified to perl5.setup
- if {[string length ${cpandir}] == 0} {
- # if not, default to the first word (before a dash) from the
- # module name, this is the normal convention on CPAN
- set perl5.cpandir [lindex [split ${perl5.module} {-}] 0]
- } else {
- # else, use what was passed
- set perl5.cpandir ${cpandir}
- }
+ # define perl5.cpandir
+ # check if optional CPAN dir specified to perl5.setup
+ if {[string length ${cpandir}] == 0} {
+ # if not, default to the first word (before a dash) from the
+ # module name, this is the normal convention on CPAN
+ set perl5.cpandir [lindex [split ${perl5.module} {-}] 0]
+ } else {
+ # else, use what was passed
+ set perl5.cpandir ${cpandir}
+ }
- name p5-[string tolower ${perl5.module}]
- version ${vers}
- categories perl
- homepage http://search.cpan.org/dist/${perl5.module}/
+ name p5-[string tolower ${perl5.module}]
+ version ${vers}
+ categories perl
+ homepage http://search.cpan.org/dist/${perl5.module}/
- master_sites perl_cpan:${perl5.cpandir}
- distname ${perl5.module}-${vers}
- dist_subdir perl5
+ master_sites perl_cpan:${perl5.cpandir}
+ distname ${perl5.module}-${vers}
+ dist_subdir perl5
- depends_lib path:${perl5.bin}:perl5.8
+ depends_lib path:${perl5.bin}:perl5.8
- configure.cmd ${perl5.bin}
- configure.pre_args Makefile.PL
- configure.args INSTALLDIRS=vendor
+ configure.cmd ${perl5.bin}
+ configure.pre_args Makefile.PL
+ configure.args INSTALLDIRS=vendor
- test.run yes
+ test.run yes
- destroot.target pure_install
+ destroot.target pure_install
- post-destroot {
- foreach packlist [exec find ${destroot}${perl5.lib} -name .packlist] {
- ui_info "Fixing packlist ${packlist}"
- reinplace "s|${destroot}||" ${packlist}
- }
- }
+ post-destroot {
+ foreach packlist [exec find ${destroot}${perl5.lib} -name .packlist] {
+ ui_info "Fixing packlist ${packlist}"
+ reinplace "s|${destroot}||" ${packlist}
+ }
+ }
- livecheck.check regexm
- livecheck.url http://search.cpan.org/dist/${perl5.module}/
- livecheck.regex (?:This Release)?<td class=label>(?:This|Latest) Release</td>.*<td class=cell>(?:<\[^<\]+>)?${perl5.module}-(\[^<\]+?)<
+ livecheck.check regexm
+ livecheck.url http://search.cpan.org/dist/${perl5.module}/
+ livecheck.regex (?:This Release)?<td class=label>(?:This|Latest) Release</td>.*<td class=cell>(?:<\[^<\]+>)?${perl5.module}-(\[^<\]+?)<
}
# Switch from default MakeMaker-style routine to Module::Build-style
proc perl5.use_module_build {} {
- global perl5.bin destroot
+ global perl5.bin destroot
- depends_lib-append port:p5-module-build
+ depends_lib-append port:p5-module-build
- configure.pre_args Build.PL
- configure.args installdirs=vendor
+ configure.pre_args Build.PL
+ configure.args installdirs=vendor
- build.cmd ${perl5.bin}
- build.pre_args Build
- build.args build
+ build.cmd ${perl5.bin}
+ build.pre_args Build
+ build.args build
- test.pre_args Build
- test.args test
+ test.pre_args Build
+ test.args test
- destroot.cmd ${perl5.bin}
- destroot.pre_args Build
- destroot.args install
- destroot.destdir destdir=${destroot}
+ destroot.cmd ${perl5.bin}
+ destroot.pre_args Build
+ destroot.args install
+ destroot.destdir destdir=${destroot}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071011/53e5fa07/attachment.html
More information about the macports-changes
mailing list