PortSystem      1.0

name            flip
version         20050821
categories      textproc
license         none
platforms       darwin
maintainers     nomaintainer
description     convert text file line endings

long_description \
    Flip converts line endings of text files between Macintosh, Unix and \
    MS-DOS formats. It automatically recognizes the current line endings, \
    and leaves binary files and timestamps intact. It does not convert \
    files to a different character set.

homepage        http://ccrma-www.stanford.edu/~craig/utility/flip/
use_bzip2       yes
master_sites    macports

checksums       md5 27ddb3be9f81617c016aecb776513315 \
                sha1 3cd1526d359d18fc3ae8cd6e57af25726ff56fc9 \
                rmd160 c9c4f727a41fb943b7516ba71f03fc35f70f482e

use_configure   no

variant universal {}

build {
    system -W ${worksrcpath} \
        "${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx] -o flip flip.cpp"
}

destroot {
    xinstall -s ${worksrcpath}/flip ${destroot}${prefix}/bin
}
