Hi ports --
Attached is an update to libzip. Notable changes are a minor lib bump,
the removal of autoconf in favor of cmake, and no longer building the
static libraries.
Passes the building its dependents test.
OK?
~Brian
Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/libzip/Makefile,v
retrieving revision 1.17
diff -u -p -u -p -r1.17 Makefile
--- Makefile 20 Nov 2017 19:13:23 -0000 1.17
+++ Makefile 30 Dec 2017 15:26:29 -0000
@@ -2,9 +2,9 @@
COMMENT= library for reading, creating and modifying zip archives
-DISTNAME= libzip-1.3.2
+DISTNAME= libzip-1.4.0
CATEGORIES= archivers
-SHARED_LIBS += zip 2.2 # 5.0
+SHARED_LIBS += zip 2.3 # 5.0
HOMEPAGE= https://www.nih.at/libzip/
MAINTAINER= Brian Callahan <bcal...@openbsd.org>
@@ -16,7 +16,6 @@ WANTLIB= c z
MASTER_SITES= ${HOMEPAGE}
-CONFIGURE_STYLE= gnu
-CONFIGURE_ARGS= --without-bzip2
+MODULES = devel/cmake
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/archivers/libzip/distinfo,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 distinfo
--- distinfo 20 Nov 2017 19:13:23 -0000 1.11
+++ distinfo 30 Dec 2017 15:26:29 -0000
@@ -1,2 +1,2 @@
-SHA256 (libzip-1.3.2.tar.gz) = q0w062w6CLZ4zQ8kUKbFehPpYYsbo07kXQDrUycxZFc=
-SIZE (libzip-1.3.2.tar.gz) = 1523449
+SHA256 (libzip-1.4.0.tar.gz) = dZqJaQ4VXKUiR2OLn5fhbkj7tgd6u3zi2SHdW4ElmUA=
+SIZE (libzip-1.4.0.tar.gz) = 1179961
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-CMakeLists_txt 30 Dec 2017 15:26:29 -0000
@@ -0,0 +1,22 @@
+$OpenBSD$
+
+Don't use bzip
+
+Index: CMakeLists.txt
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -120,13 +120,7 @@ IF(ZLIB_VERSION_STRING VERSION_LESS "1.1.2")
+ MESSAGE(FATAL_ERROR "-- ZLIB version too old, please install at least v1.1.2")
+ ENDIF(ZLIB_VERSION_STRING VERSION_LESS "1.1.2")
+
+-FIND_PACKAGE(BZip2)
+-IF(BZIP2_FOUND)
+- SET (HAVE_LIBBZ2 1)
+-
+- INCLUDE_DIRECTORIES(${BZIP2_INCLUDE_DIR})
+- SET (OPTIONAL_LIBRARY ${BZIP2_LIBRARY})
+-ENDIF(BZIP2_FOUND)
++SET (HAVE_LIBBZ2 0)
+
+ IF(MSVC)
+ ADD_DEFINITIONS("-D_CRT_SECURE_NO_WARNINGS")
Index: patches/patch-src_ziptool_c
===================================================================
RCS file: /cvs/ports/archivers/libzip/patches/patch-src_ziptool_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_ziptool_c
--- patches/patch-src_ziptool_c 20 Nov 2017 19:13:23 -0000 1.2
+++ patches/patch-src_ziptool_c 30 Dec 2017 15:26:29 -0000
@@ -5,7 +5,7 @@ time_t == %lld
Index: src/ziptool.c
--- src/ziptool.c.orig
+++ src/ziptool.c
-@@ -522,7 +522,7 @@ set_file_mtime(int argc, char *argv[]) {
+@@ -500,7 +500,7 @@ set_file_mtime(int argc, char *argv[]) {
idx = strtoull(argv[0], NULL, 10);
mtime = (time_t)strtoull(argv[1], NULL, 10);
if (zip_file_set_mtime(za, idx, mtime, 0) < 0) {
@@ -14,7 +14,7 @@ Index: src/ziptool.c
return -1;
}
return 0;
-@@ -542,7 +542,7 @@ set_file_mtime_all(int argc, char *argv[]) {
+@@ -520,7 +520,7 @@ set_file_mtime_all(int argc, char *argv[]) {
}
for (idx = 0; idx < (zip_uint64_t)num_entries; idx++) {
if (zip_file_set_mtime(za, idx, mtime, 0) < 0) {
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/archivers/libzip/pkg/PLIST,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 PLIST
--- pkg/PLIST 20 Nov 2017 19:13:23 -0000 1.9
+++ pkg/PLIST 30 Dec 2017 15:26:29 -0000
@@ -4,8 +4,6 @@
@bin bin/ziptool
include/zip.h
include/zipconf.h
-lib/libzip.a
-lib/libzip.la
@lib lib/libzip.so.${LIBzip_VERSION}
lib/pkgconfig/libzip.pc
@man man/man1/zipcmp.1
@@ -84,12 +82,18 @@ lib/pkgconfig/libzip.pc
@man man/man3/zip_set_file_compression.3
@man man/man3/zip_source.3
@man man/man3/zip_source_begin_write.3
+@man man/man3/zip_source_begin_write_cloning.3
@man man/man3/zip_source_buffer.3
+@man man/man3/zip_source_buffer_create.3
+@man man/man3/zip_source_buffer_fragment.3
+@man man/man3/zip_source_buffer_fragment_create.3
@man man/man3/zip_source_close.3
@man man/man3/zip_source_commit_write.3
@man man/man3/zip_source_error.3
@man man/man3/zip_source_file.3
+@man man/man3/zip_source_file_create.3
@man man/man3/zip_source_filep.3
+@man man/man3/zip_source_filep_create.3
@man man/man3/zip_source_free.3
@man man/man3/zip_source_function.3
@man man/man3/zip_source_function_create.3