Ticket #38208: depends_test.diff
File depends_test.diff, 10.6 KB (added by kurthindenburg (Kurt Hindenburg), 9 years ago) |
---|
-
macports1.0/macports.tcl
3437 3437 patch {return "depends_fetch depends_extract"} 3438 3438 configure - 3439 3439 build {return "depends_fetch depends_extract depends_build depends_lib"} 3440 test -3440 test {return "depends_fetch depends_extract depends_build depends_lib depends_run depends_test"} 3441 3441 destroot {return "depends_fetch depends_extract depends_build depends_lib depends_run"} 3442 3442 dmg - 3443 3443 pkg - -
port/port.tcl
101 101 102 102 Pseudo-portnames starting with variants:, variant:, description:, depends:, 103 103 depends_lib:, depends_run:, depends_build:, depends_fetch:, depends_extract:, 104 depends_test:, 104 105 portdir:, homepage:, epoch:, platforms:, platform:, name:, long_description:, 105 106 maintainers:, maintainer:, categories:, category:, version:, revision:, and 106 107 license: each select a set of ports based on a regex search of metadata … … 1073 1074 1074 1075 # gather its deps 1075 1076 set results {} 1076 set deptypes {depends_fetch depends_extract depends_build depends_lib depends_run }1077 set deptypes {depends_fetch depends_extract depends_build depends_lib depends_run depends_test} 1077 1078 1078 1079 set deplist {} 1079 1080 foreach type $deptypes { … … 1367 1368 ^depends_run: - 1368 1369 ^depends_extract: - 1369 1370 ^depends_fetch: - 1371 ^depends_test: - 1370 1372 ^replaced_by: - 1371 1373 ^revision: - 1372 1374 ^subport: - … … 1395 1397 add_multiple_ports reslist [get_matching_ports $pat no regexp "depends_run"] 1396 1398 add_multiple_ports reslist [get_matching_ports $pat no regexp "depends_extract"] 1397 1399 add_multiple_ports reslist [get_matching_ports $pat no regexp "depends_fetch"] 1400 add_multiple_ports reslist [get_matching_ports $pat no regexp "depends_test"] 1398 1401 1399 1402 set el 1 1400 1403 } … … 2055 2058 depends_build 1 2056 2059 depends_lib 1 2057 2060 depends_run 1 2061 depends_test 1 2058 2062 maintainers 1 2059 2063 platforms 1 2060 2064 variants 1 … … 2072 2076 depends_build "Build Dependencies" 2073 2077 depends_run "Runtime Dependencies" 2074 2078 depends_lib "Library Dependencies" 2079 depends_test "Test Dependencies" 2075 2080 description "Brief Description" 2076 2081 long_description "Description" 2077 2082 fullname "Full Name: " … … 2095 2100 depends_build 22 2096 2101 depends_run 22 2097 2102 depends_lib 22 2103 depends_test 22 2098 2104 description 22 2099 2105 long_description 22 2100 2106 homepage 22 … … 2114 2120 set options(ports_info_depends_build) yes 2115 2121 set options(ports_info_depends_lib) yes 2116 2122 set options(ports_info_depends_run) yes 2123 set options(ports_info_depends_test) yes 2117 2124 } 2118 2125 2119 2126 # Set up our field separators … … 2164 2171 ports_info_skip_line ports_info_depends_fetch 2165 2172 ports_info_depends_extract ports_info_depends_build 2166 2173 ports_info_depends_lib ports_info_depends_run 2174 ports_info_depends_test 2167 2175 ports_info_conflicts 2168 2176 ports_info_platforms ports_info_license 2169 2177 ports_info_maintainers … … 2938 2946 if {[info exists options(ports_${action}_no-build)] && [string is true -strict $options(ports_${action}_no-build)]} { 2939 2947 set deptypes {depends_lib depends_run} 2940 2948 } else { 2941 set deptypes {depends_fetch depends_extract depends_build depends_lib depends_run }2949 set deptypes {depends_fetch depends_extract depends_build depends_lib depends_run depends_test} 2942 2950 } 2943 2951 2944 2952 array unset portinfo … … 3013 3021 set deplist {} 3014 3022 set deps_output {} 3015 3023 set ndeps 0 3016 array set labeldict {depends_fetch Fetch depends_extract Extract depends_build Build depends_lib Library depends_run Runtime }3024 array set labeldict {depends_fetch Fetch depends_extract Extract depends_build Build depends_lib Library depends_run Runtime depends_test Test} 3017 3025 # get list of direct deps 3018 3026 foreach type $deptypes { 3019 3027 if {[info exists portinfo($type)]} { … … 3651 3659 set options(ports_search_depends_build) yes 3652 3660 set options(ports_search_depends_lib) yes 3653 3661 set options(ports_search_depends_run) yes 3662 set options(ports_search_depends_test) yes 3654 3663 } 3655 3664 3656 3665 # Array to hold given filters … … 4374 4383 array set cmd_opts_array { 4375 4384 edit {{editor 1}} 4376 4385 info {category categories conflicts depends_fetch depends_extract 4377 depends_build depends_lib depends_run 4386 depends_build depends_lib depends_run depends_test 4378 4387 depends description epoch fullname heading homepage index license 4379 4388 line long_description 4380 4389 maintainer maintainers name patchfiles platform platforms portdir … … 4384 4393 rdeps {index no-build full} 4385 4394 rdependents {full} 4386 4395 search {case-sensitive category categories depends_fetch 4387 depends_extract depends_build depends_lib depends_run 4396 depends_extract depends_build depends_lib depends_run depends_test 4388 4397 depends description epoch exact glob homepage line 4389 4398 long_description maintainer maintainers name platform 4390 4399 platforms portdir regex revision variant variants version} -
port/portindex.tcl
271 271 set fd [open $tempportindex w] 272 272 set save_prefix ${macports::prefix} 273 273 foreach key {categories depends_fetch depends_extract depends_build \ 274 depends_lib depends_run de scription epoch homepage \274 depends_lib depends_run depends_test description epoch homepage \ 275 275 long_description maintainers name platforms revision variants \ 276 276 version portdir replaced_by license installs_libs} { 277 277 set keepkeys($key) 1 -
port1.0/portdepends.tcl
38 38 } 39 39 40 40 # define options 41 options depends_fetch depends_extract depends_build depends_run depends_lib depends 41 options depends_fetch depends_extract depends_build depends_run depends_lib depends_test depends 42 42 # Export options via PortInfo 43 options_export depends_fetch depends_extract depends_build depends_lib depends_run 43 options_export depends_fetch depends_extract depends_build depends_lib depends_run depends_test 44 44 45 45 option_proc depends_fetch portdepends::validate_depends_options 46 46 option_proc depends_extract portdepends::validate_depends_options … … 47 47 option_proc depends_build portdepends::validate_depends_options 48 48 option_proc depends_run portdepends::validate_depends_options 49 49 option_proc depends_lib portdepends::validate_depends_options 50 option_proc depends_test portdepends::validate_depends_options 50 51 51 52 # New option for the new dependency. We generate a warning because we don't handle this yet. 52 53 option_proc depends portdepends::validate_depends_options_new -
port1.0/portlint.tcl
339 355 global os.platform os.arch os.version version revision epoch \ 340 356 description long_description platforms categories all_variants \ 341 357 maintainers license homepage master_sites checksums patchfiles \ 342 depends_fetch depends_extract depends_lib depends_build \343 depends_ rundistfiles fetch.type lint_portsystem lint_platforms \358 depends_fetch depends_extract depends_lib depends_build depends_run \ 359 depends_test distfiles fetch.type lint_portsystem lint_platforms \ 344 360 lint_required lint_optional replaced_by conflicts 345 361 set portarch [get_canonical_archs] 346 362 … … 507 547 if {[info exists depends_run]} { 508 548 lappend all_depends {*}$depends_run 509 549 } 550 if {[info exists depends_test]} { 551 lappend all_depends {*}$depends_test 552 } 510 553 foreach depspec $all_depends { 511 554 set dep [lindex [split $depspec :] end] 512 555 if {[catch {set res [mport_lookup $dep]} error]} { … … 523 566 } 524 567 525 568 # Check for multiple dependencies 526 foreach deptype {depends_extract depends_lib depends_build depends_run } {569 foreach deptype {depends_extract depends_lib depends_build depends_run depends_test} { 527 570 if {[info exists $deptype]} { 528 571 array set depwarned {} 529 572 foreach depspec [set $deptype] { -
port1.0/portutil.tcl
1444 1450 patch { set deptypes "depends_fetch depends_extract" } 1445 1451 configure - 1446 1452 build { set deptypes "depends_fetch depends_extract depends_lib depends_build" } 1447 1448 test - 1453 test { set deptypes "depends_fetch depends_extract depends_lib depends_build depends_run depends_test" } 1449 1454 destroot - 1450 1455 dmg - 1451 1456 pkg - -
registry2.0/portuninstall.tcl
44 44 # generate list of all dependencies of the port 45 45 proc generate_deplist {port {optslist ""}} { 46 46 47 set deptypes {depends_fetch depends_extract depends_build depends_lib depends_run }47 set deptypes {depends_fetch depends_extract depends_build depends_lib depends_run depends_test} 48 48 set all_dependencies {} 49 49 # look up deps from the saved portfile if possible 50 50 if {![catch {set mport [mportopen_installed [$port name] [$port version] [$port revision] [$port variants] $optslist]}]} {