Skip to content
Permalink
Browse files

Options should never be declared outside of a target

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@1033 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
landonf committed Oct 11, 2002
1 parent 64176aa commit 0465691c82e65d2116d9216101a211d8834ae953
Showing with 5 additions and 4 deletions.
  1. +5 −1 src/port1.0/portmain.tcl
  2. +0 −3 src/port1.0/portutil.tcl
@@ -39,10 +39,14 @@ set com.apple.main [target_new com.apple.main main]
${com.apple.main} provides main

# define options
options prefix name version revision categories maintainers workdir worksrcdir filedir distname portdbpath libpath distpath sources_conf os.platform os.version os.arch os.endian platforms
options prefix name version revision categories maintainers workdir worksrcdir filedir distname portdbpath libpath distpath sources_conf os.platform os.version os.arch os.endian platforms default_variants

# Export options via PortInfo
options_export name version revision categories maintainers platforms

# Assign option procedure to default_variants
option_proc default_variants handle_default_variants

# Remove trailing "Endian"

default distpath {[file join $portdbpath distfiles]}
@@ -997,9 +997,6 @@ proc variant_new {name} {
return $obj
}

options default_variants
options_export default_variants
option_proc default_variants handle_default_variants
proc handle_default_variants {option action args} {
global variations
switch -regex $action {

0 comments on commit 0465691

Please sign in to comment.
You can’t perform that action at this time.