# $Id: Portfile,v 1.9 2003/10/11 05:19:10 waqar Exp $ PortSystem 1.0 name dos2unix version 3.1 categories textproc maintainers waqar@opendarwin.org description Convert text between dos, unix, and mac formats master_sites http://fresh.t-systems-sfr.com/linux/src/ checksums md5 25ff56bab202de63ea6f6c211c416e96 use_configure no build { cd ${worksrcpath} system "gcc -O dos2unix.c -o dos2unix" } destroot { cd ${worksrcpath} system "install -m 755 -d ${destroot}${prefix}/bin" system "install -m 755 -d ${destroot}${prefix}/man/man1" system "install -m 755 -cs dos2unix ${destroot}${prefix}/bin" system "gzip -c dos2unix.1 > ${destroot}${prefix}/man/man1/dos2unix.1.gz" system "ln -sf dos2unix.1.gz ${destroot}${prefix}/man/man1/mac2unix.1.gz" system "ln -sf dos2unix ${destroot}${prefix}/bin/mac2unix" }