pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add libzippp version 5.0 to pkgsrc-wip



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By:	nros
Date:		Fri Jan 14 11:37:57 2022 +0100
Changeset:	873145f7061481bf06dd803cfe01e52aa451b9bb

Modified Files:
	Makefile
Added Files:
	libzippp/DESCR
	libzippp/Makefile
	libzippp/PLIST
	libzippp/buildlink3.mk
	libzippp/distinfo
	libzippp/patches/patch-CMakeLists.txt
	libzippp/patches/patch-Config.cmake.in

Log Message:
Add libzippp version 5.0 to pkgsrc-wip

Add libzippp version 5.0 to pkgsrc-wip.

libzippp is an easy-to-use library for ZIP handling,
it is a simple basic C++ wrapper around the libzip library.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=873145f7061481bf06dd803cfe01e52aa451b9bb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                               |  1 +
 libzippp/DESCR                         |  2 ++
 libzippp/Makefile                      | 23 +++++++++++++++++++++++
 libzippp/PLIST                         |  7 +++++++
 libzippp/buildlink3.mk                 | 13 +++++++++++++
 libzippp/distinfo                      |  7 +++++++
 libzippp/patches/patch-CMakeLists.txt  | 24 ++++++++++++++++++++++++
 libzippp/patches/patch-Config.cmake.in | 20 ++++++++++++++++++++
 8 files changed, 97 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ea100a5899..f542409400 100644
--- a/Makefile
+++ b/Makefile
@@ -2226,6 +2226,7 @@ SUBDIR+=	libxtend
 SUBDIR+=	libyuv-git
 SUBDIR+=	libzahl
 SUBDIR+=	libzeep
+SUBDIR+=	libzippp
 SUBDIR+=	libzn-poly
 SUBDIR+=	libzrtp
 SUBDIR+=	lidia
diff --git a/libzippp/DESCR b/libzippp/DESCR
new file mode 100644
index 0000000000..a55d320c37
--- /dev/null
+++ b/libzippp/DESCR
@@ -0,0 +1,2 @@
+libzippp is an easy-to-use library for ZIP handling,
+it is a simple basic C++ wrapper around the libzip library.
diff --git a/libzippp/Makefile b/libzippp/Makefile
new file mode 100644
index 0000000000..efd782fdbe
--- /dev/null
+++ b/libzippp/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	libzippp-v5.0-1.8.0
+PKGNAME=	${DISTNAME:C/-[0-9].*//:S,-v,-,}
+CATEGORIES=	archivers
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ctabin/}
+GITHUB_TAG=	refs/tags/${DISTNAME}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/ctabin/libzippp/
+COMMENT=	Libzip c++ wrapper
+LICENSE=	modified-bsd
+
+WRKSRC=		${WRKDIR}/libzippp-${DISTNAME}
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON
+
+CMAKE_USE_GNU_INSTALL_DIRS=	NO
+
+.include "../../archivers/libzip/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libzippp/PLIST b/libzippp/PLIST
new file mode 100644
index 0000000000..f3fcea2613
--- /dev/null
+++ b/libzippp/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+include/libzippp/libzippp.h
+lib/libzippp.so
+share/libzippp/libzipppConfig.cmake
+share/libzippp/libzipppConfigVersion.cmake
+share/libzippp/libzipppTargets-noconfig.cmake
+share/libzippp/libzipppTargets.cmake
diff --git a/libzippp/buildlink3.mk b/libzippp/buildlink3.mk
new file mode 100644
index 0000000000..571bfb4023
--- /dev/null
+++ b/libzippp/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libzippp
+
+.if !defined(LIBZIPPP_BUILDLINK3_MK)
+LIBZIPPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libzippp+=	libzippp>=5.0
+BUILDLINK_PKGSRCDIR.libzippp?=		../../wip/libzippp
+
+.endif	# LIBZIPPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libzippp
diff --git a/libzippp/distinfo b/libzippp/distinfo
new file mode 100644
index 0000000000..b3f9d99cfe
--- /dev/null
+++ b/libzippp/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (libzippp-v5.0-1.8.0.tar.gz) = 4bbc718e163a157cb21c8dd06b7a04926b8bc6ed4289f74411993ad506756d5d
+SHA512 (libzippp-v5.0-1.8.0.tar.gz) = 1eae6601f625832d7dbd78be7f28913d8d1c88a01712dfb9d035121a1c933d3589120a7d9b25a8734cc567ee4aef130cba2e3d11227a961cc3a7d864f9f4d6c7
+Size (libzippp-v5.0-1.8.0.tar.gz) = 27093 bytes
+SHA1 (patch-CMakeLists.txt) = 871bb6a10ae774d56211b22cf12e43539f00f8de
+SHA1 (patch-Config.cmake.in) = 11b068c2134955cf502bff800b22dfdb4380baac
diff --git a/libzippp/patches/patch-CMakeLists.txt b/libzippp/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..35435e01e1
--- /dev/null
+++ b/libzippp/patches/patch-CMakeLists.txt
@@ -0,0 +1,24 @@
+$NetBSD$
+
+* Use cmake files installed by libzip instead of FindLIBZIP.cmake
+
+--- CMakeLists.txt.orig	2021-08-03 09:01:25.000000000 +0000
++++ CMakeLists.txt
+@@ -22,7 +22,7 @@ option(LIBZIPPP_ENABLE_ENCRYPTION "Build
+ 
+ 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
+@@ -93,7 +93,7 @@ if(LIBZIPPP_INSTALL)
+   )
+ 
+   install(
+-    FILES ${PROJECT_CONFIG_FILE} ${PROJECT_VERSION_FILE} cmake/FindLIBZIP.cmake
++    FILES ${PROJECT_CONFIG_FILE} ${PROJECT_VERSION_FILE}
+     DESTINATION ${configInstallDestination}
+   )
+ 
diff --git a/libzippp/patches/patch-Config.cmake.in b/libzippp/patches/patch-Config.cmake.in
new file mode 100644
index 0000000000..cfa56d3ff6
--- /dev/null
+++ b/libzippp/patches/patch-Config.cmake.in
@@ -0,0 +1,20 @@
+$NetBSD$
+
+* Use cmake files installed by libzip instead of FindLIBZIP.cmake
+
+--- Config.cmake.in.orig	2022-01-13 19:47:41.330833533 +0000
++++ Config.cmake.in
+@@ -1,10 +1,10 @@
+ @PACKAGE_INIT@
+ 
+-find_package(LIBZIP QUIET)
+-if(NOT LIBZIP_FOUND)
++find_package(libzip QUIET)
++if(NOT libzip_FOUND)
+     list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
+     include(CMakeFindDependencyMacro)
+-    find_dependency(LIBZIP REQUIRED)
++    find_dependency(libzip REQUIRED)
+ endif()
+ 
+ include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")


Home | Main Index | Thread Index | Old Index