# $Id: Portfile 86561 2011-10-28 22:30:42Z jmr@macports.org $

PortSystem 1.0

name			uudeview
version			0.5.20
revision		1
categories		mail
license			GPL-2+
maintainers		nomaintainer
platforms		darwin
description		UUDeview is a particularly powerful encoder and decoder
long_description	UUDeview is a program that helps you transmit and \
					receive binary files over the Internet, using \
					electronic mail or newsgroups The UUDeview package \
					includes both an encoder and a decoder.  The decoder \
					automatically detects the type of encoding used, \
					offering MIME's Base64 and BinHex as well as the \
					popular uuencoding and the less frequently used \
					xxencoding methods. Recently, support for the \
					popular yEnc encoding was also added. The encoder \
					runs the other way around and encodes a binary file \
					for sending it by mail or news.
homepage		http://www.fpx.de/fp/Software/UUDeview/
master_sites	${homepage}/download/
checksums		md5 0161abaec3658095044601eae82bbc5b

configure.args	--mandir='\${prefix}/share/man' \
				--disable-tcl

variant tcltk {
	depends_lib		lib:libtcl8.4:tcl

	configure.args-delete	--disable-tcl
	configure.args-append	--enable-tcl=${prefix} --enable-tk
}

destroot.destdir	prefix=${destroot}${prefix}
post-destroot	{
	xinstall -m 644 ${worksrcpath}/uulib/libuu.a ${destroot}${prefix}/lib
	xinstall -m 644 ${worksrcpath}/uulib/uudeview.h ${destroot}${prefix}/include
}

livecheck.type  regex
livecheck.regex {Version (\d+(?:\.\d+)*)}
