# $Id: Portfile 56184 2009-08-25 06:11:10Z ryandesign@macports.org $

PortSystem 1.0
name		tnef2txt
version		1.4
categories	textproc
maintainers	nomaintainer
description	Converts Microsoft TNEF attachments to ASCII text
homepage	http://www.fiction.net/blong/programs/#tnef2txt
platforms	darwin

long_description This is a simple program used to decode Microsoft's \
		 Translation Neutral Encapsulation Format (TNEF), which \
		 is used by various Microsoft OS products to transfer \
		 MAPI information through text only gateways such as SMTP.

master_sites	http://www.fiction.net/blong/programs/tnef2txt/

checksums	md5 a32a9fe1d558f076c2b0d24b742661f6

patchfiles	patch-Makefile
use_configure	no

build.target	tnef2txt

destroot	{ system "install -m 755 -d ${destroot}${prefix}/bin"
		  system "install -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin"
		  system "install -m 755 -d ${destroot}${prefix}/share/doc/${name}"
		  system "install -m 644 apptnef.* ${destroot}${prefix}/share/doc/${name}" }
