# $Id: Portfile 86094 2011-10-19 11:35:11Z jmr@macports.org $

PortSystem		1.0
PortGroup		perl5 1.0

perl5.setup		MIME-tools 5.428
revision        2

license			{Artistic-1 GPL}
maintainers		ricci openmaintainer
description		modules for parsing (and creating!) MIME entities
long_description	MIME-tools is a collection of Perl5 MIME:: modules \
					for parsing, decoding, *and generating* single- or \
					multipart (even nested multipart) MIME messages. \
					(Yes, kids, that means you can send messages with \
					attached GIF files).
checksums           md5     dc9bef4af5ca86b729f5277fa52879f4 \
                    sha1    f7fd3daf1b3a792d4b62414d9c2fbd40f2b62d70 \
                    rmd160  64e6397bffa9172c00736b150ad088b92bc5f7e7
platforms		darwin

if {${perl5.major} != ""} {
patchfiles		patch-lib-MIME-Parser.pm.nobinhex.diff \
				patch-lib-MIME-Parser.pm.useContentTypeName.diff \
				patch-lib-MIME-Parser.pm.uu_whine.diff

##				patch-lib-MIME-Tools.pm.diff

depends_lib-append	port:p${perl5.major}-io-stringy	\
					port:p${perl5.major}-mailtools	\
					port:p${perl5.major}-file-temp

supported_archs noarch

variant doBinHex description {use the (buggy) internal binhex decoder} {
	patchfiles-delete patch-lib-MIME-Parser.pm.nobinhex.diff
}

variant allow_no_trailing_boundary description {parse MIME messages without a trailing boundary rather than consider them to be an error} {
	patchfiles-append patch-lib-MIME-Parser.pm.allow_no_trailing_boundary.diff
}
}
