Changeset 31045


Ignore:
Timestamp:
Nov 14, 2007, 10:27:14 PM (12 years ago)
Author:
mww@…
Message:

use original distfile, clean up patches, don't use 'cd' -- distfile & approval of andrew@… via mail

Location:
trunk/dports/textproc/unix2dos
Files:
1 added
2 deleted
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/unix2dos/Portfile

    r20486 r31045  
    66categories      textproc
    77description     Convert text from unix to dos format
     8long_description ${description}
    89maintainers     andrew@fernandes.org
    9 master_sites    http://opendarwin.org/~olegb/src/
    10 checksums       unix2dos-2.2.src.tar.gz md5 e4488c241fa9067a48a7534a21d4babb
     10master_sites    macports
     11checksums       md5 caf9f33155073d3efd310eff9103170b \
     12                sha1 e63ac815b7049c07eab0a1ade48c978c8a4c99f7
     13patchfiles      patch-unix2dos.1.man patch-unix2dos.c
     14
     15distname        ${name}-${version}.src
     16
     17pre-extract     {
     18                  file mkdir ${worksrcpath}
     19                }
     20extract.dir     ${worksrcpath}
    1121
    1222use_configure   no
    1323
    14 distfiles       ${name}-${version}.src.tar.gz
    15 
    16 worksrcdir      .
    17 
    1824build           {
    19                   cd ${worksrcpath}
    20                   system "gcc -O unix2dos.c -o unix2dos"
     25                  system "cd ${worksrcpath} && gcc ${configure.cflags} unix2dos.c -o unix2dos"
    2126                }
    2227
    2328destroot        {
    24                   cd ${worksrcpath}
    25                   system "install -m 755 -cs unix2dos ${destroot}${prefix}/bin"
    26                   system "gzip -c unix2dos.1 > ${destroot}${prefix}/share/man/man1/unix2dos.1.gz"
     29                  xinstall -m 0555 -W ${worksrcpath} -s unix2dos ${destroot}${prefix}/bin/
     30                  xinstall -m 0444 -W ${worksrcpath} unix2dos.1 ${destroot}${prefix}/share/man/man1/
    2731                }
Note: See TracChangeset for help on using the changeset viewer.