From 09fea8babbd0008a301793591373048cc06f99fb Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Sun, 24 Nov 2013 20:51:25 -0700 Subject: [PATCH] Convert lha to working recipe --- app-arch/lha/lha-1.14i.recipe | 52 ++++++++++++++++------ app-arch/lha/patches/lha-1.14i.patchset | 58 +++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 14 deletions(-) create mode 100644 app-arch/lha/patches/lha-1.14i.patchset diff --git a/app-arch/lha/lha-1.14i.recipe b/app-arch/lha/lha-1.14i.recipe index 4052ba216..c00573149 100644 --- a/app-arch/lha/lha-1.14i.recipe +++ b/app-arch/lha/lha-1.14i.recipe @@ -1,32 +1,56 @@ -DESCRIPTION="Archive files using LZSS and Huffman compression (.lzh files)" +SUMMARY="Archive files using LZSS and Huffman compression (.lzh files)" +DESCRIPTION="Archive files using LZSS and Huffman compression (.lzh files)" +LICENSE="lha" +COPYRIGHT="1991, Masaru Oki + 1993-1995, Nobutaka Watazaki + 2000, Tsugio Okamoto et al." HOMEPAGE="http://sourceforge.jp/projects/lha/" SRC_URI="http://jaist.dl.sourceforge.jp/lha/22231/lha-1.14i-ac20050924p1.tar.gz" CHECKSUM_MD5="9f52430410928ba4390a73a41a36d56f" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" +ARCHITECTURES="x86 ?x86_gcc2 ?x86_64" + +PROVIDES=" + lha = $portVersion + cmd:lha = $portVersion + " + +REQUIRES=" + haiku >= $haikuVersion + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + " + +BUILD_PREREQUIRES=" + cmd:autoreconf + cmd:autoconf + cmd:automake + cmd:aclocal + cmd:autoheader + cmd:libtoolize + cmd:make + cmd:gcc + " + +PATCHES="lha-1.14i.patchset" + +SOURCE_DIR="lha-1.14i-ac20050924p1" + BUILD() { - cd lha-1.14i-ac20050924p1 autoreconf -vfi - ./configure --prefix=`finddir B_COMMON_DIRECTORY`/ + runConfigure ./configure make } INSTALL() { - cd lha-1.14i-ac20050924p1 - make install DESTDIR=${DESTDIR} - + make install } TEST() { - cd lha-1.14i-ac20050924p1 make check } - -LICENSE="lha" -COPYRIGHT="1991, Masaru Oki - 1993-1995, Nobutaka Watazaki - 2000, Tsugio Okamoto et al." diff --git a/app-arch/lha/patches/lha-1.14i.patchset b/app-arch/lha/patches/lha-1.14i.patchset new file mode 100644 index 000000000..85795d25d --- /dev/null +++ b/app-arch/lha/patches/lha-1.14i.patchset @@ -0,0 +1,58 @@ +From d6ee6e73f4d5db9e15580bfa746a0e885bbd9218 Mon Sep 17 00:00:00 2001 +From: Chris Roberts +Date: Sun, 24 Nov 2013 19:28:57 -0700 +Subject: Updates for newer autotools and misc fixes + + +diff --git a/configure.ac b/configure.ac +index 5161979..cb0524a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ AC_INIT([LHa for UNIX], 1.14i-ac20050924p1, arai@users.sourceforge.jp, lha) + AC_CANONICAL_HOST + AC_CANONICAL_TARGET + AM_INIT_AUTOMAKE +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS([config.h]) + + AC_DEFINE_UNQUOTED(PLATFORM, "$ac_cv_host", + [the type of system on which the package will run.]) +@@ -14,7 +14,6 @@ AC_PROG_GCC_TRADITIONAL + AC_PROG_INSTALL + AC_PROG_MAKE_SET + AC_MINIX +-AM_C_PROTOTYPES + AC_SYS_LARGEFILE + + # Checks for libraries. +diff --git a/src/prototypes.h b/src/prototypes.h +index 79e1330..cd456eb 100644 +--- a/src/prototypes.h ++++ b/src/prototypes.h +@@ -70,10 +70,10 @@ void temporary_to_new_archive_file P_((size_t new_archive_size)); + void cmd_add P_((void)); + void cmd_delete P_((void)); + /* lharc.c */ +-void message P_((char *fmt, ...)); +-void warning P_((char *fmt, ...)); +-void error P_((char *fmt, ...)); +-void fatal_error P_((char *fmt, ...)); ++//void message P_((char *fmt, ...)); ++//void warning P_((char *fmt, ...)); ++//void error P_((char *fmt, ...)); ++//void fatal_error P_((char *fmt, ...)); + void cleanup P_((void)); + RETSIGTYPE interrupt P_((int signo)); + void *xmalloc P_((size_t size)); +@@ -122,7 +122,7 @@ unsigned int decode P_((struct interfacing *interface)); + size_t copyfile P_((FILE *f1, FILE *f2, size_t size, int text_flg, unsigned int *crcp)); + int encode_stored_crc P_((FILE *ifp, FILE *ofp, size_t size, size_t *original_size_var, size_t *write_size_var)); + boolean archive_is_msdos_sfx1 P_((char *name)); +-int xsnprintf P_((char *dest, size_t size, char *fmt, ...)); ++//int xsnprintf P_((char *dest, size_t size, char *fmt, ...)); + char *xstrchr P_((const char *s, int c)); + char *xstrrchr P_((const char *s, int c)); + char *xmemchr P_((const char *s, int c, size_t n)); +-- +1.8.3.4 +