Package: dos2unix Version: 6.0.4 Revision: 1 Description: Convert DOS or Mac text files to Unix format License: BSD BuildDepends: fink-package-precedence, gettext-tools, libgettext8-dev Depends: libgettext8-shlibs Recommends: dos2unix-doc NoSetMAKEFLAGS: true SetMAKEFLAGS: -j1 # Unpack Phase Source: http://waterlan.home.xs4all.nl/%n/%n-%v.tar.gz Source-MD5: f1fff9d70f9ba644c038677ba1d94ac0 PatchScript: << sed -i.bak 's|/usr/local|%p|g' Makefile # reported to upstream begin sed -i.bak 's|B<7bit>|Bbit>|g' man/man1/dos2unix.pod sed -i.bak 's|B<7bit>|Bbit>|g' man/es/man1/dos2unix.pod sed -i.bak 's|B<7bit>|Bbit>|g' man/nl/man1/dos2unix.pod # reported to upstream end # the changes above result in msgmerge conmmand, but this fails. # Fix according to # http://subcommanderblog.wordpress.com/2009/05/16/msgmerge-on-macosx-and-no-such-file-or-directory/ # If everything from above is merged upstream, this should not be required any longer, # but i would leave it for later need. backups are switched off, but not needed as well. sed -i.bak 's|--backup=numbered|--backup=off|g' Makefile << # Compile Phase (NOTE: there is no configure): CompileScript: << make HTMLEXT=html fink-package-precedence --no-headers . << # 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 man/man1/dos2unix.html # 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 -m, --add-bom add UTF-8 Byte Order Mark -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://waterlan.home.xs4all.nl/dos2unix.html Maintainer: Karl-Michael Schindler