From 5c05e1eff421c22829dac0850bd1c8f7fa891efd Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Sat, 4 Apr 2026 13:57:42 +1100 Subject: [PATCH] Add extract.add_deps option Controls whether dependencies for the discovered extract methods should be added automatically. --- src/port1.0/portextract.tcl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/port1.0/portextract.tcl b/src/port1.0/portextract.tcl index d7cc49b9e..4cd26beef 100644 --- a/src/port1.0/portextract.tcl +++ b/src/port1.0/portextract.tcl @@ -49,7 +49,7 @@ namespace eval portextract { # define options options extract.only extract.mkdir extract.rename extract.suffix extract.asroot \ - {*}${portextract::all_use_options} extract.methods + {*}${portextract::all_use_options} extract.methods extract.add_deps commands extract # Set up defaults @@ -66,6 +66,7 @@ default extract.suffix .tar.gz default extract.methods {} default extract.mkdir no default extract.rename no +default extract.add_deps yes foreach _extract_use_option ${portextract::all_use_options} { option_proc ${_extract_use_option} portextract::set_extract_type @@ -270,7 +271,10 @@ proc portextract::find_methods {} { port::register_callback portextract::find_methods proc portextract::add_extract_deps {} { - global depends_extract + global depends_extract extract.add_deps + if {!${extract.add_deps}} { + return + } variable methods_used if {![info exists methods_used]} { find_methods