# $Id: Portfile 88435 2012-01-02 10:15:05Z ryandesign@macports.org $

PortSystem          1.0

name                muttprint
version             0.72d
revision            1
categories          mail
maintainers         nomaintainer
platforms           darwin

description         pretty printing of your mails
long_description    \
    Muttprint formats the output of mail clients to a good-looking \
    printing. It uses the typesetting system LaTeX, which is normally \
    part of every Linux distribution and which is also available for \
    other operating systems like *BSD and Solaris.

homepage            http://muttprint.sourceforge.net
master_sites        sourceforge:project/muttprint/muttprint/muttprint-${version}

checksums           sha1 532a1c7ed019b0b50c78caf7eeb17f5cd34d3d1e

depends_lib         port:p5.12-text-iconv port:dialog

use_configure       no

destroot            {
                    file mkdir ${destroot}${prefix}/bin ${destroot}${prefix}/share/man/man1
                    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
                    reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl5.12|" ${destroot}${prefix}/bin/${name}
                    xinstall -m 0644 ${worksrcpath}/doc/manpages/en/muttprint.1.gz ${destroot}${prefix}/share/man/man1
                    }

