# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem			1.0

name				sharutils
version				4.10
categories			archivers
license				GPL-3+
platforms			darwin
maintainers			nomaintainer
description			Shell archiver utilities

long_description	GNU shar makes so-called shell archives out of many files, \
					preparing them for transmission by electronic mail services. \
					A shell archive is a collection of files that can be unpacked \
					by /bin/sh. A wide range of features provide extensive \
					flexibility in manufacturing shars and in specifying shar \
					smartness. For example, shar may compress files, uuencode binary \
					files, split long files and construct multi-part mailings, ensure \
					correct unsharing order, and provide simplistic checksums.

homepage			https://www.gnu.org/software/${name}/
master_sites		gnu:${name}
use_bzip2			yes

depends_lib			port:gettext \
					port:libiconv

checksums			sha1    9c50b2c36c84c9c26deb34ba2d8bb2521d00ce5b \
					rmd160  2ec3138af63aa7b62288f4b8768bf72b885d3eb2

post-destroot {
	set docdir ${prefix}/share/doc/${name}
	xinstall -d ${destroot}${docdir}
	xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS \
		TODO ${destroot}${docdir}
}

livecheck.type		regex
livecheck.url		http://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex		${name}-(\\d+(?:\\.\\d+)*)