Skip to content
Permalink
Browse files

Support dist_subdir

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@219 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
landonf committed Aug 21, 2002
1 parent b1a44ca commit e305f5302f6f82148827ed8dbb2bd3ac88271dc9
Showing with 11 additions and 5 deletions.
  1. +1 −1 src/port1.0/portfetch.tcl
  2. +10 −4 src/port1.0/portmain.tcl
@@ -12,7 +12,7 @@ register com.apple.fetch requires main
register com.apple.fetch swdep build depends_fetch

# define options: distname master_sites
options master_sites patch_sites extract_sufx distfiles extract_only patchfiles dist_subdir use_zip use_bzip2
options master_sites patch_sites extract_sufx distfiles extract_only patchfiles use_zip use_bzip2

proc suffix {distname} {
global extract_sufx use_bzip2 use_zip
@@ -12,23 +12,24 @@ package require portutil 1.0
register com.apple.main target build main always
register com.apple.main provides main

# define options
options portname portversion portrevision categories maintainers workdir worksrcdir no_worksubdir filedir distname sysportpath libpath dist_subdir distpath

# XXX Special case sysportpath. This variable is set by the bootstrap
# and may not exist
if [info exists sysportpath] {
default distpath $sysportpath/distfiles
}

default prefix /usr/local/
default workdir work
default filedir files
default portrevision 0
default os_arch $tcl_platform(machine)
default os_version $tcl_platform(osVersion)

# define options
options portname portversion portrevision categories maintainers workdir worksrcdir no_worksubdir filedir distname sysportpath libpath

proc main {args} {
global worksrcdir main_opts portname distname
global worksrcdir main_opts portname distname distpath dist_subdir

if {[tbool no_worksubdir]} {
default worksrcdir ""
@@ -37,6 +38,11 @@ proc main {args} {
default worksrcdir $distname
}
}
if {[info exists distpath] && [info exists dist_subdir]} {
puts hello
set distpath ${distpath}/${dist_subdir}
}

return 0
}

0 comments on commit e305f53

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