Ignore:
Timestamp:
Jun 26, 2012, 6:25:00 AM (7 years ago)
Author:
jmr@…
Message:

perl ports:

  • enable threads (#34723, #26323, #23993) and shared (#23089) by default, removing variants
  • add explicit perl5.branches to all p5 ports (#34784)
  • use non-conflicting vendorbin and vendorman* so p5.x-foo doesn't conflict with p5.y-foo
  • use non-conflicting sitebin and siteman*
  • add perl5.link_binaries and perl5.link_binaries_suffix options to portgroup
File:
1 edited

Legend:

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

    r94024 r94655  
    4040# perl5.default_branch: the branch used when you request p5-foo
    4141options perl5.default_branch perl5.branches
    42 default perl5.branches {"5.8 5.10 5.12 5.14"}
    4342default perl5.default_branch {[perl5_get_default_branch]}
    4443proc perl5_get_default_branch {} {
     
    6362
    6463# Set some variables.
    65 options perl5.version perl5.major perl5.arch perl5.lib perl5.archlib perl5.bin
     64options perl5.version perl5.major perl5.arch perl5.lib perl5.bindir perl5.archlib perl5.bin
    6665default perl5.version {[perl5.extract_config version]}
    6766default perl5.major {${perl5.default_branch}}
     
    7170# define installation libraries as vendor location
    7271default perl5.lib {${prefix}/lib/perl5/vendor_perl/${perl5.version}}
     72default perl5.bindir {${prefix}/libexec/perl${perl5.major}}
    7373default perl5.archlib {${perl5.lib}/${perl5.arch}}
    7474
     
    7676
    7777default configure.universal_args {}
     78
     79options perl5.link_binaries perl5.link_binaries_suffix
     80default perl5.link_binaries yes
     81default perl5.link_binaries_suffix {-${perl5.major}}
    7882
    7983# define these empty initially, they are set by perl5.setup arguments
     
    164168                }
    165169            }
     170            if {${perl5.link_binaries}} {
     171                foreach bin [glob -nocomplain -tails -directory "${destroot}${perl5.bindir}" *] {
     172                    if {[catch {file type "${destroot}${prefix}/bin/${bin}${perl5.link_binaries_suffix}"}]} {
     173                        ln -s "${perl5.bindir}/${bin}" "${destroot}${prefix}/bin/${bin}${perl5.link_binaries_suffix}"
     174                    }
     175                }
     176            }
    166177        }
    167178    }
Note: See TracChangeset for help on using the changeset viewer.