Ignore:
Timestamp:
Aug 15, 2011, 6:12:16 PM (8 years ago)
Author:
jmr@…
Message:

perl5 portgroup, p5-text-tabsxwrap: allow overriding name before calling perl5.setup, so invalid subport names can be avoided

File:
1 edited

Legend:

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

    r82548 r82551  
    9090    }
    9191
    92     name                p5-[string tolower ${perl5.module}]
     92    if {![info exists name]} {
     93        name            p5-[string tolower ${perl5.module}]
     94    }
    9395    version             [perl5_convert_version ${perl5.moduleversion}]
    9496    categories          perl
     
    99101    dist_subdir         perl5
    100102
     103    set rootname        [string range $name 3 end]
     104
    101105    foreach v ${perl5.branches} {
    102         subport p${v}-[string tolower ${perl5.module}] { depends_lib port:perl${v} }
     106        subport p${v}-${rootname} { depends_lib port:perl${v} }
    103107    }
    104108
     
    107111        distfiles
    108112        supported_archs noarch
    109         replaced_by p[option perl5.default_branch]-[string tolower ${perl5.module}]
    110         depends_lib port:p[option perl5.default_branch]-[string tolower ${perl5.module}]
     113        replaced_by p[option perl5.default_branch]-${rootname}
     114        depends_lib port:p[option perl5.default_branch]-${rootname}
    111115        use_configure no
    112116        build {}
Note: See TracChangeset for help on using the changeset viewer.