# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           makefile 1.0
PortGroup           muniversal 1.1

name                dos2unix
version             7.5.3
revision            0
categories          textproc
license             BSD
maintainers         {@TheRealKeto gmail.com:therealketo} openmaintainer

description         Convert text files with DOS or Mac line breaks to \
                    Unix line breaks and vice versa
long_description    This is an update of Benjamin Lin's \
                    implementations of dos2unix and unix2dos. Benjamin \
                    Lin's implementations of dos2unix and unix2dos \
                    were distributed via SunSITE.unc.edu (later \
                    MetaLab.unc.edu, now ibiblio) and became part of \
                    several Linux distributions such as RedHat, Suse, \
                    Gentoo, and others. This update includes all \
                    RedHat patches and fixes several other problems. \
                    Internationalization has been added and ports to \
                    DOS, Windows, Cygwin and OS/2 Warp have been made.
homepage            https://waterlan.home.xs4all.nl/dos2unix.html

master_sites        sourceforge:project/dos2unix/dos2unix/${version} \
                    https://waterlan.home.xs4all.nl/dos2unix

checksums           rmd160  f0a18ed95c4c169ed30c76e8631175f2f9b0478f \
                    sha256  28a4b0d9f9179da4e44c567b9c01f818b070a20827115fffd96f760dcfa0f3b2 \
                    size    955879

depends_build-append \
                    port:gettext
depends_lib-append  port:gettext-runtime

makefile.prefix_name \
                    prefix

makefile.override-append \
                    PREFIX

destroot.args-append \
                    docsubdir=${name}
