# $Id: Portfile,v 1.1 2006/02/11 10:03:30 olegb Exp $

PortSystem 1.0
name            unix2dos
version         2.2
categories      textproc
description     Convert text from unix to dos format
maintainers     andrew@fernandes.org
master_sites    http://opendarwin.org/~olegb/src/
checksums       unix2dos-2.2.src.tar.gz md5 e4488c241fa9067a48a7534a21d4babb 

use_configure   no

distfiles       ${name}-${version}.src.tar.gz

worksrcdir      .

build           {
                  cd ${worksrcpath}
                  system "gcc -O unix2dos.c -o unix2dos"
                }

destroot        {
                  cd ${worksrcpath}
                  system "install -m 755 -cs unix2dos ${destroot}${prefix}/bin"
                  system "gzip -c unix2dos.1 > ${destroot}${prefix}/share/man/man1/unix2dos.1.gz"
                }
