diff --git a/sys-apps/file/file-5.04.recipe b/sys-apps/file/file-5.04.recipe deleted file mode 100644 index f209cef63..000000000 --- a/sys-apps/file/file-5.04.recipe +++ /dev/null @@ -1,22 +0,0 @@ -DESCRIPTION="Identify a file's format by scanning binary data for patterns" -HOMEPAGE="ftp://ftp.astron.com/pub/file/" -SRC_URI="ftp://ftp.astron.com/pub/file/file-5.04.tar.gz" -CHECKSUM_MD5="accade81ff1cc774904b47c72c8aeea0" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd file-5.04 - autoreconf -fvi - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd file-5.04 - make install -} -LICENSE="BSD (2-clause)" -COPYRIGHT="1986-1999 Ian F. Darwin" diff --git a/sys-apps/file/file-5.11.recipe b/sys-apps/file/file-5.11.recipe deleted file mode 100644 index a4c0c9db7..000000000 --- a/sys-apps/file/file-5.11.recipe +++ /dev/null @@ -1,24 +0,0 @@ -DESCRIPTION="Identify a file's format by scanning binary data for patterns" -HOMEPAGE="ftp://ftp.astron.com/pub/file/" -SRC_URI="ftp://ftp.astron.com/pub/file/file-5.11.tar.gz" -CHECKSUM_MD5="16a407bd66d6c7a832f3a5c0d609c27b" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd file-5.11 - autoreconf -fvi - ./configure --prefix="$(finddir B_COMMON_DIRECTORY)" \ - --mandir="$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man" \ - --datadir="$(finddir B_COMMON_DATA_DIRECTORY)" - make -} - -INSTALL() -{ - cd file-5.11 - make install -} -LICENSE="BSD (2-clause)" -COPYRIGHT="1986-1999 Ian F. Darwin" diff --git a/sys-apps/file/file-5.15.recipe b/sys-apps/file/file-5.15.recipe new file mode 100644 index 000000000..6878f1668 --- /dev/null +++ b/sys-apps/file/file-5.15.recipe @@ -0,0 +1,69 @@ +SUMMARY="Identify a file's format by scanning binary data for patterns" +DESCRIPTION=" +This is Release 5.x of Ian Darwin's (copyright but distributable) +file(1) command, an implementation of the Unix File(1) command. It +knows the 'magic number' of several thousands of file types. This +version is the standard 'file' command for Linux, *BSD, and other +systems. (See 'patchlevel.h' for the exact release number). +" +HOMEPAGE="ftp://ftp.astron.com/pub/file/" +SRC_URI="ftp://ftp.astron.com/pub/file/file-5.15.tar.gz" +CHECKSUM_MD5="3f99565532f548d7540912c4642d1ede" +REVISION="1" +LICENSE="BSD (2-clause)" +COPYRIGHT=" +1986-1999 Ian F. Darwin +1994-2013 Christos Zoulas +" +ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + file = $portVersion compat >= 5 + cmd:file = $portVersion compat >= 5 + lib:libmagic = 1.0.0 compat >= 0 + " + +REQUIRES=" + haiku >= $haikuVersion + lib:libz + " + +BUILD_REQUIRES=" + devel:libz + " + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:autoreconf + cmd:aclocal + cmd:libtoolize + cmd:make + cmd:gcc + " + +PROVIDES_devel=" + file_devel = $portVersion compat >= 0 + devel:libmagic = $portVersion compat >= 0 + " + +REQUIRES_devel=" + file == $portVersion + " + +PATCHES="file-5.15.patch" + +SOURCE_DIR="$portVersionedName" + +BUILD() +{ + autoreconf -fvi + runConfigure ./configure + make +} + +INSTALL() +{ + make install + prepareInstalledDevelLibs libmagic + packageEntries devel $developDir +} diff --git a/sys-apps/file/patches/file-5.04.patch b/sys-apps/file/patches/file-5.04.patch deleted file mode 100644 index 5e1cc93ec..000000000 --- a/sys-apps/file/patches/file-5.04.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -up file-5.04/configure.ac.orig file-5.04/configure.ac ---- file-5.04/configure.ac.orig 2010-02-24 23:25:36.805044224 -0700 -+++ file-5.04/configure.ac 2010-02-24 23:25:01.144441344 -0700 -@@ -128,14 +128,14 @@ else - WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ - -Wmissing-declarations -Wredundant-decls -Wnested-externs \ - -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ -- -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter" -+ -Wcast-qual -Wwrite-strings" - fi], [ - if test "$GCC" = yes; then - AC_MSG_RESULT(yes) - WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ - -Wmissing-declarations -Wredundant-decls -Wnested-externs \ - -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ -- -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter" -+ -Wcast-qual -Wwrite-strings" - else - WARNINGS= - AC_MSG_RESULT(no) diff --git a/sys-apps/file/patches/file-5.11.patch b/sys-apps/file/patches/file-5.15.patch similarity index 80% rename from sys-apps/file/patches/file-5.11.patch rename to sys-apps/file/patches/file-5.15.patch index 99a60b72f..924895740 100644 --- a/sys-apps/file/patches/file-5.11.patch +++ b/sys-apps/file/patches/file-5.15.patch @@ -1,6 +1,6 @@ -diff -up file-5.11/configure.ac.orig file-5.11/configure.ac ---- file-5.11/configure.ac.orig 2012-02-21 12:16:29.015728640 -0700 -+++ file-5.11/configure.ac 2012-05-02 22:53:14.077594624 -0600 +diff -up file-5.15/configure.ac.orig file-5.15/configure.ac +--- file-5.15/configure.ac.orig 2012-02-21 12:16:29.015728640 -0700 ++++ file-5.15/configure.ac 2012-05-02 22:53:14.077594624 -0600 @@ -142,14 +142,14 @@ else WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ -Wmissing-declarations -Wredundant-decls -Wnested-externs \