New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82617


Ignore:
Timestamp:
08/16/11 13:58:26 (4 years ago)
Author:
jmr@…
Message:

perl5 portgroup: allow calling perl5-setup while having a name that is not of the form p5-*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/perl5-1.0.tcl

    r82605 r82617  
    113113    dist_subdir         perl5 
    114114 
    115     set rootname        [string range $name 3 end] 
    116  
    117     foreach v ${perl5.branches} { 
    118         subport p${v}-${rootname} { depends_lib port:perl${v} } 
    119     } 
    120  
    121     if {$subport == $name} { 
    122         perl5.major 
    123         distfiles 
    124         supported_archs noarch 
    125         replaced_by p[option perl5.default_branch]-${rootname} 
    126         depends_lib port:p[option perl5.default_branch]-${rootname} 
    127         use_configure no 
    128         build {} 
    129         destroot { 
    130             xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} 
    131             system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README" 
     115    if {[string match p5-* $name]} { 
     116        set rootname        [string range $name 3 end] 
     117 
     118        foreach v ${perl5.branches} { 
     119            subport p${v}-${rootname} { 
     120                depends_lib port:perl${v} 
     121                perl5.major ${v} 
     122            } 
     123        } 
     124 
     125        if {$subport == $name} { 
     126            perl5.major 
     127            distfiles 
     128            supported_archs noarch 
     129            replaced_by p[option perl5.default_branch]-${rootname} 
     130            depends_lib port:p[option perl5.default_branch]-${rootname} 
     131            use_configure no 
     132            build {} 
     133            destroot { 
     134                xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} 
     135                system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README" 
     136            } 
    132137        } 
    133138    } else { 
    134         perl5.major [string range $subport 1 [expr [string first - $subport]-1]] 
     139        perl5.major ${perl5.default_branch} 
     140        depends_lib port:perl${perl5.default_branch} 
     141    } 
     142    if {![string match p5-* $name] || $subport != $name} { 
    135143        configure.cmd       ${perl5.bin} 
    136144        configure.env       PERL_AUTOINSTALL=--skipdeps 
    137145        configure.pre_args  Makefile.PL 
    138146        configure.args      INSTALLDIRS=vendor 
    139      
     147 
    140148        test.run            yes 
    141      
     149 
    142150        destroot.target     pure_install 
    143      
     151 
    144152        post-destroot { 
    145153            fs-traverse file ${destroot}${perl5.lib} { 
Note: See TracChangeset for help on using the changeset viewer.