the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: dos2unix
Version: 5.3.2
Revision: 1
Description: Convert DOS or Mac text files to Unix format
License: BSD
BuildDepends: gettext-tools, libgettext8-dev
Depends: libgettext8-shlibs
Recommends: dos2unix-doc
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
# Unpack Phase.
Source: http://www.xs4all.nl/~waterlan/%n/%n-%v.tar.gz
Source-MD5: aa2768f3e1223f0e8f30e6449d398872
PatchScript: <<
sed -i.bak 's|/usr/local|%p|g' Makefile
<<
# Compile Phase (NOTE: there is no configure):
CompileScript: <<
make CFLAGS=-I/usr/include
<<
# Install Phase.
InstallScript: <<
mkdir -p %i/bin
mkdir -p %i/share/man/man1
install -m 755 dos2unix %i/bin
ln -s dos2unix %i/bin/mac2unix
install -m 755 unix2dos %i/bin
ln -s unix2dos %i/bin/unix2mac
install -m 644 man/man1/dos2unix.1 %i/share/man/man1
ln -s dos2unix.1 %i/share/man/man1/unix2dos.1
ln -s dos2unix.1 %i/share/man/man1/mac2unix.1
ln -s dos2unix.1 %i/share/man/man1/unix2mac.1
<<
DocFiles: *.txt dos2unix.htm
# Documentation.
DescDetail: <<
Two utilities to convert DOS end-of-line (CRLF) and Macintosh
classic end-of-line (CR) formated text files into Unix (LF) format.
<<
DescUsage: <<
Usage: dos2unix [options] [file ...] [-n infile outfile ...]
-ascii convert only line breaks (default)
-iso conversion between DOS and ISO-8859-1 character set
-1252 Use Windows code page 1252 (Western European)
-437 Use DOS code page 437 (US) (default)
-850 Use DOS code page 850 (Western European)
-860 Use DOS code page 860 (Portuguese)
-863 Use DOS code page 863 (French Canadian)
-865 Use DOS code page 865 (Nordic)
-7 Convert 8 bit characters to 7 bit space
-c, --convmode conversion mode
convmode ascii, 7bit, iso, mac, default to ascii
-f, --force force conversion of binary files
-h, --help give this help
-k, --keepdate keep output file date
-L, --license display software license
-l, --newline add additional newline
-n, --newfile write to new file
infile original file in new file mode
outfile output file in new file mode
-o, --oldfile write to old file
file ... files to convert in old file mode
-q, --quiet quiet mode, suppress all warnings
always on in stdio mode
-s, --safe skip binary files (default)
-F, --follow-symlink follow symbolic links and convert the targets
-R, --replace-symlink replace symbolic links with converted files
(original target files remain unchanged)
-S, --skip-symlink keep symbolic links and targets unchanged (default)
-V, --version display version number
<<
Homepage: http://www.xs4all.nl/~waterlan/dos2unix.html
Maintainer: Karl-Michael Schindler