Date: Wed, 2 Jun 2021 08:50:46 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 383cada88e4e - main - archivers/libzippp: New port: C++ wrapper for libzip Message-ID: <202106020850.1528okG7035351@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=383cada88e4e65561ea19c31c567566a4e8b2a6f commit 383cada88e4e65561ea19c31c567566a4e8b2a6f Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-06-02 08:48:20 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-06-02 08:50:18 +0000 archivers/libzippp: New port: C++ wrapper for libzip --- archivers/Makefile | 1 + archivers/libzippp/Makefile | 22 ++++++++++++++++++++++ archivers/libzippp/distinfo | 3 +++ archivers/libzippp/files/patch-CMakeLists.txt | 26 ++++++++++++++++++++++++++ archivers/libzippp/pkg-descr | 4 ++++ archivers/libzippp/pkg-plist | 4 ++++ 6 files changed, 60 insertions(+) diff --git a/archivers/Makefile b/archivers/Makefile index 5b356f11c534..c67f4f6df1f1 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -65,6 +65,7 @@ SUBDIR += libunrar SUBDIR += libunrar6 SUBDIR += libzip + SUBDIR += libzippp SUBDIR += linux-c7-lz4 SUBDIR += lizard SUBDIR += lrzip diff --git a/archivers/libzippp/Makefile b/archivers/libzippp/Makefile new file mode 100644 index 000000000000..04353bf6e3c2 --- /dev/null +++ b/archivers/libzippp/Makefile @@ -0,0 +1,22 @@ +PORTNAME= libzippp +DISTVERSIONPREFIX= ${PORTNAME}-v +DISTVERSION= 4.0-1.7.3 +CATEGORIES= archivers devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ wrapper for libzip + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENCE + +LIB_DEPENDS= libzip.so:archivers/libzip + +USES= cmake:testing + +USE_GITHUB= yes +GH_ACCOUNT= ctabin + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_TESTING_ON= LIBZIPPP_BUILD_TESTS + +.include <bsd.port.mk> diff --git a/archivers/libzippp/distinfo b/archivers/libzippp/distinfo new file mode 100644 index 000000000000..4039859cf3c0 --- /dev/null +++ b/archivers/libzippp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622621768 +SHA256 (ctabin-libzippp-libzippp-v4.0-1.7.3_GH0.tar.gz) = 7560c2d8bbace39245ba6e89c5454b8bc5eb753bb13451bca2c7b5810c0a2f2d +SIZE (ctabin-libzippp-libzippp-v4.0-1.7.3_GH0.tar.gz) = 23835 diff --git a/archivers/libzippp/files/patch-CMakeLists.txt b/archivers/libzippp/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..ee0f9ebfcf20 --- /dev/null +++ b/archivers/libzippp/files/patch-CMakeLists.txt @@ -0,0 +1,26 @@ +--- CMakeLists.txt.orig 2021-06-02 08:25:32 UTC ++++ CMakeLists.txt +@@ -17,7 +17,7 @@ option(LIBZIPPP_ENABLE_ENCRYPTION "Build with encrypti + + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + +-find_package(LIBZIP MODULE REQUIRED) ++find_package(libzip REQUIRED) + + add_library(libzippp "src/libzippp.cpp") + add_library(libzippp::libzippp ALIAS libzippp) # Convenience alias +@@ -87,10 +87,10 @@ if(LIBZIPPP_INSTALL) + COMPATIBILITY SameMajorVersion + ) + +- install( +- FILES ${PROJECT_CONFIG_FILE} ${PROJECT_VERSION_FILE} cmake/FindLIBZIP.cmake +- DESTINATION ${configInstallDestination} +- ) ++ #install( ++ # FILES ${PROJECT_CONFIG_FILE} ${PROJECT_VERSION_FILE} cmake/FindLIBZIP.cmake ++ # DESTINATION ${configInstallDestination} ++ #) + + install( + EXPORT libzipppTargets diff --git a/archivers/libzippp/pkg-descr b/archivers/libzippp/pkg-descr new file mode 100644 index 000000000000..bb4a35a9d277 --- /dev/null +++ b/archivers/libzippp/pkg-descr @@ -0,0 +1,4 @@ +libzippp is a simple basic C++ wrapper around the libzip library. It is meant to +be a portable and easy-to-use library for ZIP handling. + +WWW: https://github.com/ctabin/libzippp diff --git a/archivers/libzippp/pkg-plist b/archivers/libzippp/pkg-plist new file mode 100644 index 000000000000..f59048ebc645 --- /dev/null +++ b/archivers/libzippp/pkg-plist @@ -0,0 +1,4 @@ +include/libzippp/libzippp.h +lib/libzippp.so +%%DATADIR%%/libzipppTargets-%%CMAKE_BUILD_TYPE%%.cmake +%%DATADIR%%/libzipppTargets.cmake
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106020850.1528okG7035351>