diff options
| author | Philipp Hasper <opensource@ioxp.de> | 2019-07-22 19:40:11 +0200 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-07-22 10:40:11 -0700 |
| commit | 042f96413f4e9ff6bdefa8727a6e8d066e622d0a (patch) | |
| tree | a1d32f3e9e732c98b7e5e612c89e39da240c78f3 | |
| parent | 36112264bc6eb272cc2b0c31e7a1027b8188aae1 (diff) | |
| download | vcpkg-042f96413f4e9ff6bdefa8727a6e8d066e622d0a.tar.gz vcpkg-042f96413f4e9ff6bdefa8727a6e8d066e622d0a.zip | |
WIP: [libzippp] New port: C++ wrapper for libzip (#6801)
* [libzippp] New port: C++ wrapper for libzip
Closes #6600
* [libzippp] Fixed lookup of included libraries
* [libzippp] Build system replacement
* [libzippp] Add find_dependency(LIBZIP) to config file
* [libzippp] Use upstream CMake
| -rw-r--r-- | ports/libzippp/CONTROL | 4 | ||||
| -rw-r--r-- | ports/libzippp/portfile.cmake | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/libzippp/CONTROL b/ports/libzippp/CONTROL new file mode 100644 index 000000000..f2a6b24d6 --- /dev/null +++ b/ports/libzippp/CONTROL @@ -0,0 +1,4 @@ +Source: libzippp
+Version: 2019-07-22
+Description: Simple basic C++ wrapper around the libzip library. It is meant to be a portable and easy-to-use library for ZIP handling
+Build-Depends: zlib, libzip[bzip2]
diff --git a/ports/libzippp/portfile.cmake b/ports/libzippp/portfile.cmake new file mode 100644 index 000000000..3c3a22ffa --- /dev/null +++ b/ports/libzippp/portfile.cmake @@ -0,0 +1,27 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ctabin/libzippp
+ REF be75a3413b648a3264e94a2c1921c83081dec1e0
+ SHA512 86c6040bbaea0817486218e96c4d230a328e3560ada41861fbd18d78faa085b158199318d633085e616509084082bf29d6f97afdd2d2dfbc6b843dfbf6a20c85
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTS=OFF
+ OPTIONS_DEBUG
+ -DINSTALL_HEADERS=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "share/libzippp")
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libzippp RENAME copyright)
|
