# $Id: Portfile,v 1.10 2004/02/03 00:30:09 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 -cs dos2unix ${destroot}${prefix}/bin"
		  system "gzip -c dos2unix.1 > ${destroot}${prefix}/share/man/man1/dos2unix.1.gz"
		  system "ln -sf dos2unix.1.gz ${destroot}${prefix}/share/man/man1/mac2unix.1.gz"
		  system "ln -sf dos2unix ${destroot}${prefix}/bin/mac2unix" }
