a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22571 2007-03-05 01:09:02Z mww@macports.org $
PortSystem 1.0
name gnutar
version 1.16.1
revision 1
categories archivers
maintainers mww@macports.org
description tar version of the GNU project
long_description \
the gnutar program creates, adds files to, or extracts files from \
an archive file in gnutar format, called a tarfile. A tarfile is \
often a magnetic tape, but can be a floppy diskette or any regular \
disk file.
homepage http://www.gnu.org/software/tar/
master_sites gnu:tar
checksums md5 d51593461c5ef1f7e37134f22338bb9e \
sha1 ab3ccbc09da1dc040fb92a0de85ae34fc70b03a9 \
rmd160 27134a0c5512f37a8e063843ba6175a39e2da21b
distname tar-${version}
use_bzip2 yes
platforms darwin
depends_lib port:gettext port:libiconv
configure.args --program-prefix=gnu \
--infodir=${prefix}/share/info
test.run yes
test.target check
post-destroot {
xinstall -v -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -v -W ${worksrcpath} ABOUT-NLS AUTHORS COPYING ChangeLog \
ChangeLog.1 INSTALL NEWS PORTS README THANKS TODO \
${destroot}${prefix}/share/doc/${name}
delete ${destroot}${prefix}/lib/charset.alias
cd ${destroot}${prefix}/share/info/
file rename tar.info gnutar.info
file rename tar.info-1 gnutar.info-1
file rename tar.info-2 gnutar.info-2
}
livecheck.check regex
livecheck.url http://ftp.gnu.org/gnu/tar/?M=D
livecheck.regex tar-(\[0-9\.]+)\\.