Skip to content
Permalink
Browse files

Set variables to use portname, portversion and portrevision internally.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@961 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jordan K. Hubbard
Jordan K. Hubbard committed Oct 5, 2002
1 parent 33b046f commit 972404934923f65474b2998851dbfa022cfc6686
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/port1.0/portmain.tcl
@@ -39,9 +39,9 @@ register com.apple.main target main
register com.apple.main provides main

# define options
options prefix portname portversion portrevision 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
# Export options via PortInfo
options_export portname portversion portrevision categories maintainers platforms
options_export name version revision categories maintainers platforms

# Remove trailing "Endian"

@@ -57,6 +57,10 @@ default filesdir {files}
default filespath {[file join $portpath $filesdir]}
default worksrcpath {[file join $workpath $worksrcdir]}

# Compatibility namespace
default portname {$name}
default portversion {$version}
default portrevision {$revision}

# Platform Settings
set os_arch $tcl_platform(machine)

0 comments on commit 9724049

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