28 | | # at this point, the python portgroup will have reset depends_lib (python.versions does that), |
29 | | depends_lib-append ${depends_lib_backup} |
30 | | |
31 | | if {[info procs qt5.depends_component] eq ""} { |
32 | | proc qt5.depends_component {first args} { |
33 | | global qt5_component_lib qt5.using_kde os.major |
34 | | # join ${first} and (the optional) ${args} |
35 | | set args [linsert $args[set list {}] 0 ${first}] |
36 | | if {[info exists qt5.using_kde] && ${qt5.using_kde}} { |
37 | | set qt5main "qt5-kde" |
38 | | } if {${os.major} == 11} { |
39 | | set qt5main "qt55" |
40 | | } else { |
41 | | set qt5main "qt5" |
42 | | } |
43 | | foreach comp ${args} { |
44 | | if {${comp} eq "qt5"} { |
45 | | if {[info exists qt5.using_kde] && ${qt5.using_kde}} { |
46 | | global qt5_dependency |
47 | | depends_lib-append ${qt5_dependency} |
| 24 | if {${name} ne ${subport}} { |
| 25 | PortGroup qt5 1.0 |
| 26 | |
| 27 | if {[info procs qt5.depends_component] eq ""} { |
| 28 | proc qt5.depends_component {first args} { |
| 29 | global qt5_component_lib qt5.using_kde os.major |
| 30 | # join ${first} and (the optional) ${args} |
| 31 | set args [linsert $args[set list {}] 0 ${first}] |
| 32 | if {[info exists qt5.using_kde] && ${qt5.using_kde}} { |
| 33 | set qt5main "qt5-kde" |
| 34 | } elseif {${os.major} == 11} { |
| 35 | set qt5main "qt55" |
| 36 | } else { |
| 37 | set qt5main "qt5" |
| 38 | } |
| 39 | foreach comp ${args} { |
| 40 | if {${comp} eq "qt5"} { |
| 41 | if {[info exists qt5.using_kde] && ${qt5.using_kde}} { |
| 42 | global qt5_dependency |
| 43 | depends_lib-append ${qt5_dependency} |
| 44 | } else { |
| 45 | depends_lib-append port:${qt5main} |
| 46 | } |