-diff -Naur lv451.orig/src/Makefile.in lv451/src/Makefile.in
---- lv451.orig/src/Makefile.in 2004-01-06 16:22:17.000000000 +0900
-+++ lv451/src/Makefile.in 2008-10-08 00:20:13.000000000 +0900
+--- a/src/Makefile.in
++++ b/src/Makefile.in
@@ -25,6 +25,7 @@
LDFLAGS=@LDFLAGS@
INSTALL=@INSTALL@
* src/guess.c:150:12: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
* src/guess.c:218:22: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
* src/guesslocale.c:42:9: warning: implicit declaration of function ‘toupper’ [-Wimplicit-function-declaration]
-diff --git a/src/guess.c b/src/guess.c
-index facd95e..555acd3 100644
+
--- a/src/guess.c
+++ b/src/guess.c
@@ -21,6 +21,7 @@
#include <import.h>
#include <decode.h>
-diff --git a/src/guesslocale.c b/src/guesslocale.c
-index 7974c88..c259723 100644
--- a/src/guesslocale.c
+++ b/src/guesslocale.c
@@ -29,6 +29,7 @@
-diff --git a/src/configure.in b/src/configure.in
-index 7d118de..29833a7 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -24,7 +24,16 @@ AC_ARG_ENABLE(purify,
---- lv451.orig/index.html
-+++ lv451/index.html
+--- a/index.html
++++ b/index.html
@@ -301,8 +301,11 @@
<P>
Compressed files that have suffix ``gz'', ``z'', or ``GZ'', ``Z'' are
<P>
In case that standard output is not connected to an ordinal terminal
but to redirect or pipe-line,
---- lv451.orig/src/stream.c
-+++ lv451/src/stream.c
+--- a/src/stream.c
++++ b/src/stream.c
@@ -43,6 +43,8 @@
private byte *gz_filter = "zcat";
if( NULL != filter ){
/*
- * zcat or bzcat
-+ * zcat or bzcat or lzcat or xzcat
++ * zcat, bzcat, lzcat or xzcat
*/
if( NULL == (st->fp = (FILE *)tmpfile()) )
perror( "temporary file" ), exit( -1 );
S="${WORKDIR}/${MY_P}"
src_prepare() {
- epatch "${FILESDIR}"/${P}-gentoo.patch
- epatch "${FILESDIR}"/${P}-protos.patch
- epatch "${FILESDIR}"/${P}-tinfo.patch
- epatch "${FILESDIR}"/${P}-xz.diff
+ epatch "${FILESDIR}"/${PN}-gentoo.patch
+ epatch "${FILESDIR}"/${PN}-headers.patch
+ epatch "${FILESDIR}"/${PN}-tinfo.patch
+ epatch "${FILESDIR}"/${PN}-xz.patch
cd "${S}"/src
mv configure.{in,ac}
S="${WORKDIR}/${MY_P}"
PATCHES=(
- "${FILESDIR}"/${P}-gentoo.patch
- "${FILESDIR}"/${P}-protos.patch
- "${FILESDIR}"/${P}-tinfo.patch
- "${FILESDIR}"/${P}-xz.diff
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-tinfo.patch
+ "${FILESDIR}"/${PN}-xz.patch
)
DOCS=( README hello.sample )
HTML_DOCS=( index.html relnote.html hello.sample.gif )