mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Convert/update file to working recipe.
This commit is contained in:
@@ -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"
|
||||
@@ -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"
|
||||
69
sys-apps/file/file-5.15.recipe
Normal file
69
sys-apps/file/file-5.15.recipe
Normal file
@@ -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
|
||||
}
|
||||
@@ -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)
|
||||
@@ -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 \
|
||||
Reference in New Issue
Block a user