Package: dos2unix Version: 7.4.2 Revision: 1 Description: Convert DOS or Mac text files to Unix format License: BSD BuildDepends: fink-package-precedence, gettext-tools, libgettext8-dev, po4a, sed Depends: libgettext8-shlibs NoSetMAKEFLAGS: true SetMAKEFLAGS: -j1 # Unpack Phase Source: http://waterlan.home.xs4all.nl/%n/%n-%v.tar.gz Source-Checksum: SHA256(6035c58df6ea2832e868b599dfa0d60ad41ca3ecc8aa27822c4b7a9789d3ae01) PatchScript: << #!/bin/sh -ev # do not test the 18030 codepage. Test fails, maybe because of unsupported code page. sed -i.bak 's|TESTS += gb18030.t||g' test/Makefile sed -i.bak 's|CN.gb18030),yes|CN.gb18030),no|g' test/Makefile 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 command, 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 . << InfoTest: << TestScript: make check || exit 2 << # Install Phase. InstallScript: << make install prefix=%i << # 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 -b, --keep-bom keep Byte Order Mark -c, --convmode conversion mode convmode ascii, 7bit, iso, mac, default to ascii -f, --force force conversion of binary files -h, --help display this help text -i, --info[=FLAGS] display file information file ... files to analyze -k, --keepdate keep output file date -L, --license display software license -l, --newline add additional newline -m, --add-bom add Byte Order Mark (default UTF-8) -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 (default) file ... files to convert in old-file mode -q, --quiet quiet mode, suppress all warnings -r, --remove-bom remove Byte Order Mark (default) -s, --safe skip binary files (default) -u, --keep-utf16 keep UTF-16 encoding -ul, --assume-utf16le assume that the input format is UTF-16LE -ub, --assume-utf16be assume that the input format is UTF-16BE -v, --verbose verbose operation -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