# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name			star
version			1.5a89
categories		archivers
platforms		darwin
maintainers		mww
description		fast and POSIX 1003.1 conformant tar implementation
long_description	${description}

homepage		http://cdrecord.berlios.de/old/private/star.html
master_sites		ftp://ftp.berlios.de/pub/star/alpha/
checksums		sha1 03fa2f7cdc1890f11c6b83a1806a92a9599ddcde
patchfiles		patch-RULES__rules.prg.diff
use_bzip2		yes

depends_build	port:smake

worksrcdir		star-1.5

use_configure	no

use_parallel_build	no
build.cmd		${prefix}/bin/smake

destroot.destdir	INS_BASE=${destroot}${prefix} \
			MANDIR=share/man
post-destroot {
	system "cd ${destroot}${prefix}/bin/ && \
		rm -f gnutar mt tar && \
		mv tartest startest"
	system "cd ${destroot}${prefix}/share/man && \
		rm -rf man1/gnutar.1 man1/match.1 man1/rmt.1 man3 \
		man5/makerules.5 man5/makefiles.5 && \
		mv man1/tartest.1 man1/startest.1"
	file delete -force ${destroot}${prefix}/lib ${destroot}${prefix}/include
}

universal_variant no

livecheck.type	freshmeat

