Changeset 18726 for trunk/base
- Timestamp:
- Jul 25, 2006, 8:44:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portutil.tcl
r18709 r18726 1 1 # et:ts=4 2 2 # portutil.tcl 3 # $Id: portutil.tcl,v 1.19 3 2006/07/24 05:55:44 pguyot Exp $3 # $Id: portutil.tcl,v 1.194 2006/07/25 08:44:14 pguyot Exp $ 4 4 # 5 5 # Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org> … … 680 680 681 681 # Check dependencies & file creations outside workpath. 682 if { ([info exists ports_trace]682 if {[info exists ports_trace] 683 683 && $ports_trace == "yes" 684 && $target != "clean")} { 685 set depends {} 686 set deptypes {} 684 && $target != "clean"} { 687 685 688 # Determine deptypes to look for based on target 689 switch $target { 690 configure { set deptypes "depends_lib" } 686 # Don't check dependencies for extract (they're not honored 687 # anyway). This avoids warnings about bzip2. 688 if {$target != "extract"} { 689 set depends {} 690 set deptypes {} 691 691 692 build { set deptypes "depends_lib depends_build" } 692 # Determine deptypes to look for based on target 693 switch $target { 694 configure { set deptypes "depends_lib" } 695 696 build { set deptypes "depends_lib depends_build" } 697 698 destroot - 699 install - 700 archive - 701 pkg - 702 mpkg - 703 rpmpackage - 704 dpkg - 705 "" { set deptypes "depends_lib depends_build depends_run" } 706 } 693 707 694 destroot - 695 install - 696 archive - 697 pkg - 698 mpkg - 699 rpmpackage - 700 dpkg - 701 "" { set deptypes "depends_lib depends_build depends_run" } 708 # Gather the dependencies for deptypes 709 foreach deptype $deptypes { 710 # Add to the list of dependencies if the option exists and isn't empty. 711 if {[info exists PortInfo($deptype)] && $PortInfo($deptype) != ""} { 712 set depends [concat $depends $PortInfo($deptype)] 713 } 714 } 715 716 # Dependencies are in the form verb:[param:]port 717 set depsPorts {} 718 foreach depspec $depends { 719 # grab the portname portion of the depspec 720 set dep_portname [lindex [split $depspec :] end] 721 lappend depsPorts $dep_portname 722 } 723 trace_check_deps $target $depsPorts 702 724 } 703 725 704 # Gather the dependencies for deptypes705 foreach deptype $deptypes {706 # Add to the list of dependencies if the option exists and isn't empty.707 if {[info exists PortInfo($deptype)] && $PortInfo($deptype) != ""} {708 set depends [concat $depends $PortInfo($deptype)]709 }710 }711 712 # Dependencies are in the form verb:[param:]port713 set depsPorts {}714 foreach depspec $depends {715 # grab the portname portion of the depspec716 set dep_portname [lindex [split $depspec :] end]717 lappend depsPorts $dep_portname718 }719 trace_check_deps $target $depsPorts720 726 trace_check_violations 721 727
Note: See TracChangeset
for help on using the changeset viewer.