Skip to content

Commit

Permalink
Bug:
Browse files Browse the repository at this point in the history
Submitted by:
Reviewed by:
Approved by:   jkh@
Obtained from:

as discussed on darwinports@, filedir should be (for consistency) be filesdir

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@4422 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Felix Kronlage committed Jan 2, 2004
1 parent 7ce7358 commit d95aeb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/portfile.7
Expand Up @@ -169,7 +169,7 @@ Full path to working sources (where port has unpacked itself)
.Em read-only
.Sy Default:
.Em ${workpath}/${worksrcdir}
.It Ic filedir
.It Ic filesdir
Path to port files relative to ${portpath}
.br
.Sy Type:
Expand Down
8 changes: 5 additions & 3 deletions src/port1.0/portmain.tcl
Expand Up @@ -41,7 +41,7 @@ target_provides ${com.apple.main} main
# define options
options prefix name version revision epoch categories maintainers
options long_description description homepage
options workdir worksrcdir filedir distname portdbpath libpath distpath sources_conf os.platform os.version os.arch os.endian platforms default_variants
options workdir worksrcdir filedir filesdir 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 epoch categories maintainers platforms description long_description homepage
Expand All @@ -60,12 +60,11 @@ default destdir destroot
default destpath {${workpath}/${destdir}}
# destroot is provided as a clearer name for the "destpath" variable
default destroot {${destpath}}
default filedir files
default filesdir files
default revision 0
default epoch 0
default distname {${portname}-${portversion}}
default worksrcdir {$distname}
default filesdir {files}
default filespath {[file join $portpath $filesdir]}
default worksrcpath {[file join $workpath $worksrcdir]}

Expand All @@ -89,6 +88,9 @@ default os.endian {[string range $tcl_platform(byteOrder) 0 [expr [string length
if {[info exists os.platform] && ![info exists variations(${os.platform})]} { variant_set ${os.platform}}
if {[info exists os.arch] && ![info exists variations(${os.arch})]} { variant_set ${os.arch} }

# deprecate options here
option_deprecate filedir filesdir

proc main {args} {
return 0
}
6 changes: 3 additions & 3 deletions src/port1.0/portutil.tcl
Expand Up @@ -480,12 +480,12 @@ proc reinplace {pattern args} {
# filefindbypath
# Provides searching of the standard path for included files
proc filefindbypath {fname} {
global distpath filedir workdir worksrcdir portpath
global distpath filesdir workdir worksrcdir portpath

if {[file readable $portpath/$fname]} {
return $portpath/$fname
} elseif {[file readable $portpath/$filedir/$fname]} {
return $portpath/$filedir/$fname
} elseif {[file readable $portpath/$filesdir/$fname]} {
return $portpath/$filesdir/$fname
} elseif {[file readable $distpath/$fname]} {
return $distpath/$fname
}
Expand Down

0 comments on commit d95aeb4

Please sign in to comment.