Ticket #24123: patch-license_pseudo_portname.diff

File patch-license_pseudo_portname.diff, 1.9 KB (added by lperry (Perry Lee), 15 years ago)
  • src/port/port.tcl

     
    9595variants:, variant:, description:, depends:, depends_lib:, depends_run:,
    9696depends_build:, depends_fetch:, depends_extract:, portdir:, homepage:, epoch:,
    9797platforms:, platform:, name:, long_description:, maintainers:, maintainer:,
    98 categories:, category:, version:, and revision:.
     98categories:, category:, version:, revision:, and license:.
    9999These each select a set of ports based on a regex search of metadata
    100100about the ports. In all such cases, a standard regex pattern following
    101101the colon will be used to select the set of ports to which the
     
    997997        ^depends_run:       -
    998998        ^depends_extract:   -
    999999        ^depends_fetch:     -
    1000         ^revision:          { # Handle special port selectors
     1000        ^revision:          -
     1001        ^license:           { # Handle special port selectors
    10011002            advance
    10021003
    10031004            # Break up the token, because older Tcl switch doesn't support -matchvar
  • src/port/portindex.tcl

     
    6868            }
    6969        }
    7070
    71         set keepkeys {categories depends_fetch depends_extract depends_build depends_lib depends_run description epoch homepage long_description maintainers name platforms revision variants version portdir portarchive replaced_by}
     71        set keepkeys {categories depends_fetch depends_extract depends_build depends_lib depends_run description epoch homepage long_description maintainers name platforms revision variants version portdir portarchive replaced_by license}
    7272        foreach availkey [array names portinfo] {
    7373            if {[lsearch -exact ${keepkeys} $availkey] == -1} {
    7474                unset portinfo($availkey)