Ticket #19347: patch-dos2unix.diff

File patch-dos2unix.diff, 948 bytes (added by raimue (Rainer Müller), 15 years ago)
  • Portfile

     
    44
    55name            dos2unix
    66version         3.1
     7revision        1
    78categories      textproc
    89platforms       darwin
    910maintainers     waqar@macports.org
     
    1415checksums       md5 25ff56bab202de63ea6f6c211c416e96
    1516use_configure   no
    1617build           {
    17                   system "cd ${worksrcpath}; gcc -O dos2unix.c -o dos2unix" }
     18                  system "cd ${worksrcpath}; ${configure.cc} -O dos2unix.c -o dos2unix" }
    1819
    1920destroot        {
    2021                  system "install -m 755 -cs ${worksrcpath}/dos2unix ${destroot}${prefix}/bin"
    21                   system "gzip -c ${worksrcpath}/dos2unix.1 > ${destroot}${prefix}/share/man/man1/dos2unix.1.gz"
    22                   system "ln -sf dos2unix.1.gz ${destroot}${prefix}/share/man/man1/mac2unix.1.gz"
     22                  system "install -m 644 ${worksrcpath}/dos2unix.1 ${destroot}${prefix}/share/man/man1"
    2323                  system "ln -sf dos2unix ${destroot}${prefix}/bin/mac2unix" }