source: trunk/dports/textproc/dos2unix/Portfile @ 3647

Last change on this file since 3647 was 3647, checked in by waqar, 17 years ago

Modified so that to be able to install without being root.

  • Property svn:eol-style set to native
File size: 836 bytes
Line 
1# $Id: Portfile,v 1.9 2003/10/11 05:19:10 waqar Exp $
2
3PortSystem 1.0
4name            dos2unix
5version         3.1
6categories      textproc
7maintainers     waqar@opendarwin.org
8description     Convert text between dos, unix, and mac formats
9master_sites    http://fresh.t-systems-sfr.com/linux/src/
10checksums       md5 25ff56bab202de63ea6f6c211c416e96
11use_configure   no
12build           { cd ${worksrcpath}
13                  system "gcc -O dos2unix.c -o dos2unix" }
14
15destroot        { cd ${worksrcpath}
16                  system "install -m 755 -d ${destroot}${prefix}/bin"
17                  system "install -m 755 -d ${destroot}${prefix}/man/man1"
18                  system "install -m 755 -cs dos2unix ${destroot}${prefix}/bin"
19                  system "gzip -c dos2unix.1 > ${destroot}${prefix}/man/man1/dos2unix.1.gz"
20                  system "ln -sf dos2unix.1.gz ${destroot}${prefix}/man/man1/mac2unix.1.gz"
21                  system "ln -sf dos2unix ${destroot}${prefix}/bin/mac2unix" }
Note: See TracBrowser for help on using the repository browser.