Changeset 36324


Ignore:
Timestamp:
Apr 27, 2008, 6:56:20 AM (12 years ago)
Author:
ryandesign@…
Message:

netcat: portfile cleanup:

  • use use_configure no instead of configure {} so that the +universal variant correctly fails
  • avoid use of deprecated cd command
  • use extract.mkdir yes instead of pre-extract and extract.dir
  • use xinstall instead of system "install"
  • remove unnecessary slash between ${destroot} and ${prefix} (${prefix} already begins with a slash)
  • no need to create ${destroot}${prefix}/bin (MacPorts already does so)

Closes #15038 (maintainer timeout)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/netcat/Portfile

    r23053 r36324  
    2424## and appropriately name the distfile
    2525distfiles       nc${num}.tgz
     26extract.mkdir   yes
    2627
    2728checksums       md5 402632f2fe01c169ff19a0ad6e9d608c
    28 ## The problem here is that nc110.tgz (at least) doesn't have a
    29 ## directory in the tarball.  So we need some way to extract things
    30 ## into a named directory rather than just into the work/ directory.
    31 pre-extract     { system "mkdir -p ${worksrcpath}" }
    32 extract.dir     ${worksrcpath}
    3329
    3430platform darwin 6 {
     
    3733}
    3834
    39 configure       {}
     35use_configure   no
    4036build.target    generic
    4137
    42 destroot  { cd ${workpath}/${worksrcdir}
    43               system "install -m 755 -d ${destroot}/${prefix}/bin"
    44               system "install -m 755 -d ${destroot}/${prefix}/share/doc/netcat"
    45               system "install -m 755 -s -c nc ${destroot}/${prefix}/bin"
    46               system "install -m 644 -c README ${destroot}/${prefix}/share/doc/netcat" }
    47 
     38destroot {
     39              xinstall -m 755 -d ${destroot}${prefix}/share/doc/netcat
     40              xinstall -m 755 -s -W ${worksrcpath} nc ${destroot}${prefix}/bin
     41              xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/netcat
     42}
Note: See TracChangeset for help on using the changeset viewer.