# -*- 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
description GNU version of the tar archiving utility
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 \
homepage https://www.gnu.org/software/tar/
checksums rmd160 c079128e70df5d8144dee64dcc10d6cb528fac5f \
sha256 f1bf92dbb1e1ab27911a861ea8dde8208ee774866c46c0bb6ead41f4d1f4d2d3 \
depends_lib port:gettext port:libiconv
depends_build port:help2man
configure.env-append FORCE_UNSAFE_CONFIGURE=1
configure.args --disable-silent-rules \
xinstall -v -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -v -m 644 -W ${worksrcpath} ABOUT-NLS AUTHORS COPYING ChangeLog \
ChangeLog.1 INSTALL NEWS README THANKS TODO \
${destroot}${prefix}/share/doc/${name}
foreach f [glob ${destroot}${prefix}/share/info/tar.info*] {
move ${f} [string map {tar.info gnutar.info} ${f}]
xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
ln -sf ${prefix}/bin/gnutar ${destroot}${prefix}/libexec/gnubin/tar
xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
system "help2man ${worksrcpath}/src/tar | gzip -9 > ${destroot}${prefix}/libexec/gnubin/man/man1/tar.1.gz"
livecheck.url https://ftp.gnu.org/gnu/tar/?C=M&O=D
livecheck.regex tar-(\[0-9\.\]+\[0-9\])\\.