Changeset 953 for trunk/base
- Timestamp:
- Oct 5, 2002, 8:40:03 AM (22 years ago)
- Location:
- trunk/base
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/doc/exampleport/Portfile
r740 r953 25 25 26 26 # (Optional) Explicitly set suffix (default: .tar.gz) 27 #extract _sufx .tar.bz227 #extract.sufx .tar.bz2 28 28 29 29 # (Optional) Use bzip2 instead of gzip for uncompressing distribution file … … 33 33 # <file name> <checksum type> <checksum> 34 34 # Currently the only supported checksum type is md5 35 checksums ${distname}${extract _sufx} md5 45627db03b6cf89b8dabae6d815dcd9b35 checksums ${distname}${extract.sufx} md5 45627db03b6cf89b8dabae6d815dcd9b 36 36 37 37 # Any patches which should be applied after extracting this port. These -
trunk/base/doc/portfile.7
r948 r953 260 260 .Dl patch_sites ftp://ftp.patchcityrepo.com/pub/magic/patches 261 261 262 .It Ic extract _sufx262 .It Ic extract.sufx 263 263 Suffix to append to ${distname} 264 264 .br … … 269 269 .br 270 270 .Sy Example: 271 .Dl extract _sufx .tgz271 .Dl extract.sufx .tgz 272 272 273 273 .It Ic distfiles … … 294 294 Use zip. 295 295 .br 296 Sets extract _sufx to: .zip296 Sets extract.sufx to: .zip 297 297 .br 298 298 Sets extract.cmd to: unzip … … 311 311 Use bzip2. 312 312 .br 313 Sets extract _sufx to: .bzip2313 Sets extract.sufx to: .bzip2 314 314 .br 315 315 Sets extract.cmd to: bzip2 -
trunk/base/src/port/port.1
r904 r953 86 86 The following demonstrates invoking 87 87 .Nm 88 with the "extract" target on portdir "textproc/figlet" and extract _sufx set to ".tgz":88 with the "extract" target on portdir "textproc/figlet" and extract.sufx set to ".tgz": 89 89 .Pp 90 .Dl "port extract -d textproc/figlet extract _sufx=.tgz"90 .Dl "port extract -d textproc/figlet extract.sufx=.tgz" 91 91 .Pp 92 92 .Sh DIAGNOSTICS -
trunk/base/src/port1.0/portfetch.tcl
r932 r953 40 40 41 41 # define options: distname master_sites 42 options master_sites patch_sites extract _sufx distfiles patchfiles use_zip use_bzip2 dist_subdir fetch.type cvs.module cvs.root cvs.password cvs.tag42 options master_sites patch_sites extract.sufx distfiles patchfiles use_zip use_bzip2 dist_subdir fetch.type cvs.module cvs.root cvs.password cvs.tag 43 43 # XXX we use the command framework to buy us some useful features, 44 44 # but this is not a user-modifiable command … … 47 47 48 48 # Defaults 49 default extract _sufx .tar.gz49 default extract.sufx .tar.gz 50 50 default fetch.type standard 51 51 default cvs.cmd cvs … … 68 68 namespace eval options { } 69 69 proc options::use_bzip2 {args} { 70 global use_bzip2 extract _sufx70 global use_bzip2 extract.sufx 71 71 if [tbool use_bzip2] { 72 set extract _sufx .tar.bz272 set extract.sufx .tar.bz2 73 73 } 74 74 } 75 75 76 76 proc options::use_zip {args} { 77 global use_zip extract _sufx77 global use_zip extract.sufx 78 78 if [tbool use_zip] { 79 set extract _sufx .zip79 set extract.sufx .zip 80 80 } 81 81 } … … 87 87 set UI_PREFIX "---> " 88 88 89 # Given a distname, return a suffix based on the use_zip / use_bzip2 / extract _sufx options89 # Given a distname, return a suffix based on the use_zip / use_bzip2 / extract.sufx options 90 90 proc suffix {distname} { 91 global extract _sufx use_bzip2 use_zip fetch.type91 global extract.sufx use_bzip2 use_zip fetch.type 92 92 if {"${fetch.type}" == "cvs"} { 93 93 return "" … … 98 98 return ${distname}.zip 99 99 } else { 100 return ${distname}${extract _sufx}100 return ${distname}${extract.sufx} 101 101 } 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.