Update zipios to 2.2.6.
Feedback, OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/zipios/Makefile,v
retrieving revision 1.25
diff -u -p -u -p -r1.25 Makefile
--- Makefile 11 Mar 2022 18:16:25 -0000 1.25
+++ Makefile 5 Jul 2022 07:05:48 -0000
@@ -1,34 +1,26 @@
-COMMENT= java-like zip interface
+COMMENT= C++ library for reading and writing Zip files using streams
-DISTNAME= zipios++-0.1.5.9+cvs.2004.02.07
-PKGNAME= zipios++-0.1.5.9
-REVISION = 7
-CATEGORIES= devel archivers
-MASTER_SITES= https://distfiles.sigtrap.nl/
-MASTER_SITES0= ${MASTER_SITE_GNU:=automake/}
-SHARED_LIBS += zipios 1.0 # .0.0
+GH_ACCOUNT = Zipios
+GH_PROJECT = Zipios
+GH_TAGNAME = 2.2.6
-DISTFILES= zipios++_0.1.5.9+cvs.2004.02.07.orig.tar.gz \
- automake-1.7.tar.gz:0
+PKGNAME= zipios++-${GH_TAGNAME}
-# LGPLv2.1
-PERMIT_PACKAGE= Yes
+HOMEPAGE = https://snapwebsites.org/project/zipios
-WANTLIB= m ${COMPILER_LIBCXX} z
+CATEGORIES= devel archivers
-COMPILER = base-clang ports-gcc base-gcc
+SHARED_LIBS += zipios 2.0 # .0.0
-CONFIGURE_STYLE= gnu
+# LGPLv2.1
+PERMIT_PACKAGE= Yes
-post-extract:
- for i in depcomp install-sh missing mkinstalldirs; do \
- rm ${WRKDIST}/$$i; \
- cp ${WRKDIR}/automake-1.7/lib/$$i ${WRKDIST}; \
- done
+# C++11
+COMPILER = base-clang ports-gcc
-MAKE_FLAGS=SUBDIRS='zipios++ src'
+MODULES = devel/cmake
-post-install:
- ${INSTALL_DATA} ${WRKBUILD}/zipios++/zipios-config.h ${PREFIX}/include/zipios++/
+CONFIGURE_ARGS += -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON \
+ -DBUILD_ZIPIOS_TESTS=OFF
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/archivers/zipios/distinfo,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 distinfo
--- distinfo 4 Apr 2013 16:03:56 -0000 1.3
+++ distinfo 5 Jul 2022 07:05:48 -0000
@@ -1,4 +1,2 @@
-SHA256 (automake-1.7.tar.gz) = PDFYt4kjqOI5Z6qLCHvXBWTgnaRW9VxdM8O+FpzqvGE=
-SHA256 (zipios++_0.1.5.9+cvs.2004.02.07.orig.tar.gz) = Q/O5NwqulxlfFzH+bHJ7iN0a+e6PEE3cX1sm1DFAS14=
-SIZE (automake-1.7.tar.gz) = 657347
-SIZE (zipios++_0.1.5.9+cvs.2004.02.07.orig.tar.gz) = 612363
+SHA256 (Zipios-2.2.6.tar.gz) = pMLjAfZq1FO9DZ6a4rQlVwKqL/k9DljRDfUipGSx1ls=
+SIZE (Zipios-2.2.6.tar.gz) = 332400
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 5 Jul 2022 07:05:48 -0000
@@ -0,0 +1,21 @@
+Index: CMakeLists.txt
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -58,7 +58,7 @@ else()
+
+ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fwrapv -fPIC" )
+ set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror -Wall -Wextra -Wunused-parameter" )
+- set( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3" )
++ set( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}" )
+ #
+ if( CYGWIN )
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11" )
+@@ -66,7 +66,7 @@ else()
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC" )
+ endif()
+ set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0 -fdiagnostics-show-option -Werror -Wall -Wextra -pedantic -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wlogical-op -Wmissing-include-dirs -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=4 -Wundef -Wno-unused -Wunused-variable -Wno-variadic-macros -Wno-parentheses -Wno-unknown-pragmas -Wwrite-strings -Wswitch -Wunused-parameter -Wfloat-equal -Wold-style-cast -Wnoexcept" )
+- set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3" )
++ set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}" )
+ endif()
+
+ option(BUILD_SHARED_LIBS "Build the ${PROJECT_NAME} libraries shared." ON)
Index: patches/patch-src_appendzip_cpp
===================================================================
RCS file: patches/patch-src_appendzip_cpp
diff -N patches/patch-src_appendzip_cpp
--- patches/patch-src_appendzip_cpp 11 Mar 2022 18:16:25 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-Index: src/appendzip.cpp
---- src/appendzip.cpp.orig
-+++ src/appendzip.cpp
-@@ -5,6 +5,8 @@
- #include "zipios++/ziphead.h"
- #include "zipios++/zipheadio.h"
-
-+#include <stdlib.h>
-+
- using namespace std ;
- using namespace zipios ;
-
Index: patches/patch-src_directory_h
===================================================================
RCS file: patches/patch-src_directory_h
diff -N patches/patch-src_directory_h
--- patches/patch-src_directory_h 11 Mar 2022 18:16:25 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-Index: src/directory.h
---- src/directory.h.orig
-+++ src/directory.h
-@@ -31,6 +31,7 @@
- #include <string>
- #include <ctime>
- #include <stdexcept>
-+#include <cstddef>
-
- // #include <boost.h> Contents of boost.h
-
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/archivers/zipios/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 DESCR
--- pkg/DESCR 19 Feb 2005 12:31:30 -0000 1.1.1.1
+++ pkg/DESCR 5 Jul 2022 07:05:48 -0000
@@ -1,6 +1,4 @@
-Zipios++ is a java.util.zip-like C++ library for reading and writing Zip
-files. Access to individual entries is provided through standard C++
-iostreams. A simple read-only virtual file system that mounts regular
-directories and zip files is also provided.
-
-This port use Debian tarball of CVS version, as last release is from 2001.
+Zipios is a small C++ library for reading and writing zip files. The structure
+and public interface are based (somewhat loosely) on the java.util.zip package.
+The streams created to access the individual entries in a zip file are based on
+the standard iostream library.
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/archivers/zipios/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST
--- pkg/PLIST 11 Mar 2022 18:16:25 -0000 1.3
+++ pkg/PLIST 5 Jul 2022 07:05:48 -0000
@@ -1,29 +1,19 @@
-include/zipios++/
-include/zipios++/basicentry.h
-include/zipios++/collcoll.h
-include/zipios++/deflateoutputstreambuf.h
-include/zipios++/dircoll.h
-include/zipios++/fcoll.h
-include/zipios++/fcollexceptions.h
-include/zipios++/fileentry.h
-include/zipios++/filepath.h
-include/zipios++/filterinputstreambuf.h
-include/zipios++/filteroutputstreambuf.h
-include/zipios++/gzipoutputstream.h
-include/zipios++/gzipoutputstreambuf.h
-include/zipios++/inflateinputstreambuf.h
-include/zipios++/meta-iostreams.h
-include/zipios++/simplesmartptr.h
-include/zipios++/virtualseeker.h
-include/zipios++/zipfile.h
-include/zipios++/ziphead.h
-include/zipios++/zipheadio.h
-include/zipios++/zipinputstream.h
-include/zipios++/zipinputstreambuf.h
-include/zipios++/zipios-config.h
-include/zipios++/zipios_defs.h
-include/zipios++/zipoutputstream.h
-include/zipios++/zipoutputstreambuf.h
-lib/libzipios.a
-lib/libzipios.la
+@bin bin/appendzip
+@bin bin/dosdatetime
+@bin bin/zipios
+include/zipios/
+include/zipios/collectioncollection.hpp
+include/zipios/directorycollection.hpp
+include/zipios/directoryentry.hpp
+include/zipios/dosdatetime.hpp
+include/zipios/filecollection.hpp
+include/zipios/fileentry.hpp
+include/zipios/filepath.hpp
+include/zipios/virtualseeker.hpp
+include/zipios/zipfile.hpp
+include/zipios/zipios-config.hpp
+include/zipios/zipiosexceptions.hpp
@lib lib/libzipios.so.${LIBzipios_VERSION}
+share/cmake/
+share/cmake/ZipIos/
+share/cmake/ZipIos/ZipIosConfig.cmake
No comments:
Post a Comment