From 68ae90bc60e403e718404888a4e6b01a89dbb7af Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 12 Nov 2013 02:51:35 +0100 Subject: [PATCH] cpio: Convert 2.10 recipe to an actual recipe This is somewhat hacky. We should actually rebuild the build system, but that doesn't work for gnulib. --- app-arch/cpio/cpio-2.10.recipe | 64 +++++++++++++++++++++++++--------- 1 file changed, 48 insertions(+), 16 deletions(-) diff --git a/app-arch/cpio/cpio-2.10.recipe b/app-arch/cpio/cpio-2.10.recipe index c22619dc0..9eaf5a7b8 100644 --- a/app-arch/cpio/cpio-2.10.recipe +++ b/app-arch/cpio/cpio-2.10.recipe @@ -1,32 +1,64 @@ -DESCRIPTION="GNU cpio copies files into or out of a cpio or tar archive. The archive can be another file on the disk, a magnetic tape, or a pipe." -HOMEPAGE="http://www.gnu.org/software/cpio/cpio.html" +SUMMARY="GNU cpio copies files into or out of a cpio or tar archive" +DESCRIPTION="GNU cpio copies files into or out of a cpio or tar archive. The archive can be another file on the disk, a magnetic tape, or a pipe. +GNU cpio supports the following archive formats: binary, old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar, and POSIX.1 tar. The tar format is provided for compatability with the tar program. By default, cpio creates binary format archives, for compatibility with older cpio programs. When extracting from archives, cpio automatically recognizes which kind of archive it is reading and can read archives created on machines with a different byte-order." +HOMEPAGE="http://www.gnu.org/software/cpio/cpio.html" +COPYRIGHT="1988-2009 Free Software Foundation, Inc." +LICENSE="GNU GPL v3" SRC_URI="http://ftp.gnu.org/gnu/cpio/cpio-2.10.tar.gz" CHECKSUM_MD5="351ab3d38d8949913e478cc23b9d6ad4" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" +ARCHITECTURES="x86 ?x86_gcc2" + +PATCHES="cpio-2.10.patch" + +PROVIDES=" + cpio = $portVersion + cmd:cpio = $portVersion compat >= 2 + " + +REQUIRES=" + haiku >= $haikuVersion + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + " + +BUILD_PREREQUIRES=" +# cmd:aclocal +# cmd:autoconf +# cmd:gettext +# cmd:libtoolize + cmd:make + cmd:gcc + cmd:ld + " + +PATCH() +{ + sed -i 's/restrict//g' gnu/string.in.h +} + BUILD() { - cd cpio-2.10 - sed -i 's/restrict//g' gnu/string.in.h - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \ - mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \ - localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale - make +# TODO: The patch already contains a fix for libnetwork not being auto-detected, +# but rebuilding the build system seems to be severely broken for gnulib (gnu/). +# Maybe the included gnulib needs to be replaced by a newer version. +# libtoolize --force --copy --install +# aclocal +# autoconf + LIBS=-lnetwork runConfigure ./configure + make $jobArgs } INSTALL() { - cd cpio-2.10 make install + + rm $libDir/charset.alias } TEST() { - cd cpio-2.10 make check } - -LICENSE="GNU GPL v3" -COPYRIGHT="1988-2009 Free Software Foundation, Inc."