pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/unalz Update unalz to 0.50.
details: https://anonhg.NetBSD.org/pkgsrc/rev/98632169ca5d
branches: trunk
changeset: 500031:98632169ca5d
user: minskim <minskim%pkgsrc.org@localhost>
date: Sat Oct 01 10:55:35 2005 +0000
description:
Update unalz to 0.50.
New features:
- "-l" option to show the list of files.
- "-d" option to specify output folder.
- decompressing individual files.
- setting time attribute of decompressed files.
diffstat:
archivers/unalz/Makefile | 6 +++---
archivers/unalz/distinfo | 12 ++++++------
archivers/unalz/patches/patch-aa | 33 ++++++++++++++++-----------------
archivers/unalz/patches/patch-ab | 14 +++++++-------
4 files changed, 32 insertions(+), 33 deletions(-)
diffs (145 lines):
diff -r 7cf5221a58b8 -r 98632169ca5d archivers/unalz/Makefile
--- a/archivers/unalz/Makefile Sat Oct 01 08:56:46 2005 +0000
+++ b/archivers/unalz/Makefile Sat Oct 01 10:55:35 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2005/07/27 03:13:27 junyoung Exp $
+# $NetBSD: Makefile,v 1.6 2005/10/01 10:55:35 minskim Exp $
#
-DISTNAME= unalz-0.40
+DISTNAME= unalz-0.50
CATEGORIES= archivers
MASTER_SITES= http://www.kipple.pe.kr/win/unalz/
EXTRACT_SUFX= .tgz
@@ -12,7 +12,7 @@
PKG_INSTALLATION_TYPES= overwrite pkgviews
-BUILD_TARGET= posix
+BUILD_TARGET= posix-utf8
NO_CONFIGURE= yes
USE_LANGUAGES= c c++
WRKSRC= ${WRKDIR}/unalz
diff -r 7cf5221a58b8 -r 98632169ca5d archivers/unalz/distinfo
--- a/archivers/unalz/distinfo Sat Oct 01 08:56:46 2005 +0000
+++ b/archivers/unalz/distinfo Sat Oct 01 10:55:35 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2005/07/19 13:51:52 minskim Exp $
+$NetBSD: distinfo,v 1.8 2005/10/01 10:55:35 minskim Exp $
-SHA1 (unalz-0.40.tgz) = f187a9b12260afa72369be3411a6052f32371343
-RMD160 (unalz-0.40.tgz) = 3b1b40c101e1904353d7a03828957276a0ec8171
-Size (unalz-0.40.tgz) = 131697 bytes
-SHA1 (patch-aa) = 35072979d009ff4a0d110e64aeac99e2f7a584cc
-SHA1 (patch-ab) = f9c1d88c3c49e3601d0a1dbfb727406a5b07d640
+SHA1 (unalz-0.50.tgz) = 6bd22091f7e8f59cfdc868a0bfc7621556091378
+RMD160 (unalz-0.50.tgz) = d220bc4a537b0c2550365ed8cb75498c01f86161
+Size (unalz-0.50.tgz) = 133293 bytes
+SHA1 (patch-aa) = b6dcfdbd22e33822980f707ae15a30ae3baf8423
+SHA1 (patch-ab) = d91002324d1e90c32dad3546e3a322cb84a968df
SHA1 (patch-ac) = 00c6255437f4ebdf3676787ed63cc838a16476d4
diff -r 7cf5221a58b8 -r 98632169ca5d archivers/unalz/patches/patch-aa
--- a/archivers/unalz/patches/patch-aa Sat Oct 01 08:56:46 2005 +0000
+++ b/archivers/unalz/patches/patch-aa Sat Oct 01 10:55:35 2005 +0000
@@ -1,39 +1,38 @@
-$NetBSD: patch-aa,v 1.2 2005/03/02 16:18:47 minskim Exp $
+$NetBSD: patch-aa,v 1.3 2005/10/01 10:55:35 minskim Exp $
---- Makefile.orig 2004-11-27 10:58:24.000000000 -0600
+--- Makefile.orig 2005-07-08 18:32:15.000000000 -0700
+++ Makefile
-@@ -1,9 +1,10 @@
+@@ -1,9 +1,9 @@
-CPP = g++
-CC = gcc
--OBJ = main.o UnAlz.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o zlib/adler32.o zlib/crc32.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/zutil.o bzip2/blocksort.o
bzip2/compress.o bzip2/crctable.o bzip2/huffman.o bzip2/randtable.o
+-OBJ = main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o zlib/adler32.o zlib/crc32.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/zutil.o
bzip2/blocksort.o bzip2/compress.o bzip2/crctable.o bzip2/huffman.o bzip2/randtable.o
+#CPP = g++
+#CC = gcc
-+OBJ = main.o UnAlz.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o
++OBJ = main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o
BIN = unalz
-LDFLAGS =
-CFLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+LDFLAGS += -lz -lbz2
-+CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-+CXXFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_UNALZ_ICONV
++CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_UNALZ_ICONV -D_UNALZ_UTF8
all:
@echo ""
-@@ -21,8 +22,7 @@ all:
- @echo ""
-
- posix: unalz
-- $(CPP) -c UnAlz.cpp -c main.cpp -D_UNALZ_ICONV $(CFLAGS)
-- $(CPP) $(OBJ) $(LDFLAGS) -liconv -o $(BIN)
-+ $(CXX) $(OBJ) $(LDFLAGS) -liconv -o $(BIN)
+@@ -26,8 +26,7 @@ posix: unalz
+ $(CPP) $(OBJ) $(LDFLAGS) -liconv -o $(BIN)
posix-utf8: unalz
- $(CPP) -c UnAlz.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CFLAGS)
-@@ -37,6 +37,8 @@ clean:
+- $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CFLAGS)
+- $(CPP) $(OBJ) $(LDFLAGS) -liconv -o $(BIN)
++ $(CXX) $(OBJ) $(LDFLAGS) -liconv -o $(BIN)
+
+ posix-noiconv: unalz
+ $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp $(CFLAGS)
+@@ -45,6 +44,8 @@ clean:
$(BIN): $(OBJ)
+.cpp.o:
-+ ${CXX} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
++ ${CXX} ${CPPFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
zlib/adler32.o: zlib/adler32.c
$(CC) -c zlib/adler32.c -o zlib/adler32.o $(CFLAGS)
diff -r 7cf5221a58b8 -r 98632169ca5d archivers/unalz/patches/patch-ab
--- a/archivers/unalz/patches/patch-ab Sat Oct 01 08:56:46 2005 +0000
+++ b/archivers/unalz/patches/patch-ab Sat Oct 01 10:55:35 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.5 2005/07/19 13:51:52 minskim Exp $
+$NetBSD: patch-ab,v 1.6 2005/10/01 10:55:35 minskim Exp $
---- UnAlz.cpp.orig 2005-06-17 22:31:33.000000000 -0500
+--- UnAlz.cpp.orig 2005-07-02 07:40:29.000000000 -0700
+++ UnAlz.cpp
@@ -1,6 +1,6 @@
//#include "stdafx.h"
@@ -10,8 +10,8 @@
+#include <bzlib.h>
#include "UnAlz.h"
- // mkdir
-@@ -18,6 +18,10 @@
+ // utime ÇÔ¼ö ó¸®
+@@ -30,6 +30,10 @@
# include <errno.h> // iconv.h ¶§¹®¿¡ ÇÊ¿ä
#endif
@@ -22,7 +22,7 @@
#define swapint64(Data) (INT64) ( (((Data)&0x00000000000000FFLL) << 56) | (((Data)&0x000000000000FF00LL) << 40) | (((Data)&0x0000000000FF0000LL) << 24) | (((Data)&0x00000000FF000000LL) << 8) |
(((Data)&0x000000FF00000000LL) >> 8) | (((Data)&0x0000FF0000000000LL) >> 24) | (((Data)&0x00FF000000000000LL) >> 40) | (((Data)&0xFF00000000000000LL) >> 56) )
#define swapint32(a) ((((a)&0xff)<<24)+(((a>>8)&0xff)<<16)+(((a>>16)&0xff)<<8)+(((a>>24)&0xff)))
-@@ -33,7 +37,7 @@
+@@ -45,7 +49,7 @@
inline UINT64 unalz_le64toh(UINT64 a){return a;}
#endif
@@ -31,11 +31,11 @@
# include <sys/endian.h>
inline UINT16 unalz_le16toh(UINT16 a){return le16toh(a);}
inline UINT32 unalz_le32toh(UINT32 a){return le32toh(a);}
-@@ -389,7 +393,7 @@ BOOL CUnAlz::ReadLocalFileheader()
+@@ -413,7 +417,7 @@ BOOL CUnAlz::ReadLocalFileheader()
size_t size;
char inbuf[ICONV_BUF_SIZE];
char outbuf[ICONV_BUF_SIZE];
--#if defined(__FreeBSD__) || defined(__CYGWIN__)
+-#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__NetBSD__)
const char *inptr = inbuf;
#else
Home |
Main Index |
Thread Index |
Old Index