diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2021-06-02 08:48:20 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2021-06-02 08:50:18 +0000 |
commit | 383cada88e4e65561ea19c31c567566a4e8b2a6f (patch) | |
tree | 9d80bbd61f6ebdbd8ae9fa23c6454125716e7dfb | |
parent | d4a7860092b926b2744f80200a9c8bf314aa4e13 (diff) | |
download | ports-383cada88e4e65561ea19c31c567566a4e8b2a6f.tar.gz ports-383cada88e4e65561ea19c31c567566a4e8b2a6f.zip |
archivers/libzippp: New port: C++ wrapper for libzip
-rw-r--r-- | archivers/Makefile | 1 | ||||
-rw-r--r-- | archivers/libzippp/Makefile | 22 | ||||
-rw-r--r-- | archivers/libzippp/distinfo | 3 | ||||
-rw-r--r-- | archivers/libzippp/files/patch-CMakeLists.txt | 26 | ||||
-rw-r--r-- | archivers/libzippp/pkg-descr | 4 | ||||
-rw-r--r-- | archivers/libzippp/pkg-plist | 4 |
6 files changed, 60 insertions, 0 deletions
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 |