PortSystem 1.0

name			uudeview
version			0.5.20
revision		1
checksums		rmd160  9bb52fa3ad4979383ff16d1e8d8a302c5c794c66 \
				sha256  e49a510ddf272022af204e96605bd454bb53da0b3fe0be437115768710dae435 \
				size    261574

categories		mail
license			GPL-2+
maintainers		nomaintainer
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/

patchfiles		implicit.patch

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 0644 ${worksrcpath}/uulib/libuu.a ${destroot}${prefix}/lib
	xinstall -m 0644 ${worksrcpath}/uulib/uudeview.h ${destroot}${prefix}/include
}

livecheck.type  regex
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)[quotemeta ${extract.suffix}]
