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
95 95 variants:, variant:, description:, depends:, depends_lib:, depends_run:, 96 96 depends_build:, depends_fetch:, depends_extract:, portdir:, homepage:, epoch:, 97 97 platforms:, platform:, name:, long_description:, maintainers:, maintainer:, 98 categories:, category:, version:, and revision:.98 categories:, category:, version:, revision:, and license:. 99 99 These each select a set of ports based on a regex search of metadata 100 100 about the ports. In all such cases, a standard regex pattern following 101 101 the colon will be used to select the set of ports to which the … … 997 997 ^depends_run: - 998 998 ^depends_extract: - 999 999 ^depends_fetch: - 1000 ^revision: { # Handle special port selectors 1000 ^revision: - 1001 ^license: { # Handle special port selectors 1001 1002 advance 1002 1003 1003 1004 # Break up the token, because older Tcl switch doesn't support -matchvar -
src/port/portindex.tcl
68 68 } 69 69 } 70 70 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} 72 72 foreach availkey [array names portinfo] { 73 73 if {[lsearch -exact ${keepkeys} $availkey] == -1} { 74 74 unset portinfo($availkey)