Changeset 953 for trunk/base


Ignore:
Timestamp:
Oct 5, 2002, 8:40:03 AM (22 years ago)
Author:
kevin
Message:

Changed extract_sufx to extract.sufx

Location:
trunk/base
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/exampleport/Portfile

    r740 r953  
    2525
    2626# (Optional) Explicitly set suffix (default: .tar.gz)
    27 #extract_sufx   .tar.bz2
     27#extract.sufx   .tar.bz2
    2828
    2929# (Optional) Use bzip2 instead of gzip for uncompressing distribution file
     
    3333# <file name> <checksum type> <checksum>
    3434# Currently the only supported checksum type is md5
    35 checksums       ${distname}${extract_sufx} md5 45627db03b6cf89b8dabae6d815dcd9b
     35checksums       ${distname}${extract.sufx} md5 45627db03b6cf89b8dabae6d815dcd9b
    3636
    3737# Any patches which should be applied after extracting this port.  These
  • trunk/base/doc/portfile.7

    r948 r953  
    260260.Dl patch_sites ftp://ftp.patchcityrepo.com/pub/magic/patches
    261261
    262 .It Ic extract_sufx
     262.It Ic extract.sufx
    263263Suffix to append to ${distname}
    264264.br
     
    269269.br
    270270.Sy Example:
    271 .Dl extract_sufx        .tgz
     271.Dl extract.sufx        .tgz
    272272
    273273.It Ic distfiles
     
    294294Use zip.
    295295.br
    296 Sets extract_sufx to: .zip
     296Sets extract.sufx to: .zip
    297297.br
    298298Sets extract.cmd to: unzip
     
    311311Use bzip2.
    312312.br
    313 Sets extract_sufx to: .bzip2
     313Sets extract.sufx to: .bzip2
    314314.br
    315315Sets extract.cmd to: bzip2
  • trunk/base/src/port/port.1

    r904 r953  
    8686The following demonstrates invoking
    8787.Nm
    88 with the "extract" target on portdir "textproc/figlet" and extract_sufx set to ".tgz":
     88with the "extract" target on portdir "textproc/figlet" and extract.sufx set to ".tgz":
    8989.Pp
    90 .Dl "port extract -d textproc/figlet extract_sufx=.tgz"
     90.Dl "port extract -d textproc/figlet extract.sufx=.tgz"
    9191.Pp
    9292.Sh DIAGNOSTICS
  • trunk/base/src/port1.0/portfetch.tcl

    r932 r953  
    4040
    4141# 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.tag
     42options master_sites patch_sites extract.sufx distfiles patchfiles use_zip use_bzip2 dist_subdir fetch.type cvs.module cvs.root cvs.password cvs.tag
    4343# XXX we use the command framework to buy us some useful features,
    4444# but this is not a user-modifiable command
     
    4747
    4848# Defaults
    49 default extract_sufx .tar.gz
     49default extract.sufx .tar.gz
    5050default fetch.type standard
    5151default cvs.cmd cvs
     
    6868namespace eval options { }
    6969proc options::use_bzip2 {args} {
    70     global use_bzip2 extract_sufx
     70    global use_bzip2 extract.sufx
    7171    if [tbool use_bzip2] {
    72         set extract_sufx .tar.bz2
     72        set extract.sufx .tar.bz2
    7373    }
    7474}
    7575
    7676proc options::use_zip {args} {
    77     global use_zip extract_sufx
     77    global use_zip extract.sufx
    7878    if [tbool use_zip] {
    79         set extract_sufx .zip
     79        set extract.sufx .zip
    8080    }
    8181}
     
    8787set UI_PREFIX "---> "
    8888
    89 # Given a distname, return a suffix based on the use_zip / use_bzip2 / extract_sufx options
     89# Given a distname, return a suffix based on the use_zip / use_bzip2 / extract.sufx options
    9090proc suffix {distname} {
    91     global extract_sufx use_bzip2 use_zip fetch.type
     91    global extract.sufx use_bzip2 use_zip fetch.type
    9292        if {"${fetch.type}" == "cvs"} {
    9393        return ""
     
    9898        return ${distname}.zip
    9999    } else {
    100         return ${distname}${extract_sufx}
     100        return ${distname}${extract.sufx}
    101101    }
    102102}
Note: See TracChangeset for help on using the changeset viewer.