SUMMARY="Saves and restores files to/from a tape or disk archive" DESCRIPTION="The Tar program provides the ability to create tar archives, as \ well as various other kinds of manipulation. For example, you can use Tar on \ previously created archives to extract files, to store additional files, or \ to update or list files which were already stored. Initially, tar archives were used to store files conveniently on magnetic \ tape. The name \"Tar\" comes from this use; it stands for tape archiver. Despite \ the utility's name, Tar can direct its output to available devices, files, or \ other programs (using pipes), it can even access remote devices or files (as \ archives)." HOMEPAGE="https://www.gnu.org/software/tar/" COPYRIGHT="1990-2018 Free Software Foundation, Inc." LICENSE="GNU GPL v3" REVISION="2" SOURCE_URI="https://ftpmirror.gnu.org/tar/tar-$portVersion.tar.bz2 https://ftp.gnu.org/gnu/tar/tar-$portVersion.tar.bz2" CHECKSUM_SHA256="7edb8886a3dc69420a1446e1e2d061922b642f1cf632d2cd0f9ee7e690775985" PATCHES="tar-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" commandSuffix=$secondaryArchSuffix commandBinDir=$binDir if [ "$targetArchitecture" = x86_gcc2 ]; then commandSuffix= commandBinDir=$prefix/bin fi PROVIDES=" tar$secondaryArchSuffix = $portVersion compat >= 1 cmd:tar$commandSuffix = $portVersion compat >= 1 " REQUIRES=" haiku$secondaryArchSuffix " if [ "$targetArchitecture" = x86_gcc2 ]; then REPLACES=" tar " fi BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:automake cmd:autoreconf cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make cmd:sed " TEST_REQUIRES=" cmd:bzip2 cmd:compress cmd:find cmd:gzip " if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then TEST_REQUIRES+=" cmd:lzip cmd:lzma cmd:xz " fi defineDebugInfoPackage tar$secondaryArchSuffix $commandBinDir/tar BUILD() { local yearArg if [ "$targetArchitecture" = x86_gcc2 ]; then yearArg="--disable-year2038" fi runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir \ --disable-nls \ --disable-gcc-warnings \ LDFLAGS="-lnetwork" CFLAGS="-D_BSD_SOURCE" \ FORCE_UNSAFE_CONFIGURE=1 \ $yearArg make $jobArgs YACC=: } INSTALL() { make install } TEST() { #x86_64 #testsuite: 23 24 25 55 101 103 108 109 110 114 115 117 120 125 128 131 132 137 138 139 142 146 147 159 161 189 failed make check }