aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/abumq-ripe
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/abumq-ripe
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/abumq-ripe')
-rw-r--r--vcpkg/ports/abumq-ripe/cmake-config-exports.patch41
-rw-r--r--vcpkg/ports/abumq-ripe/devendoring.patch43
-rw-r--r--vcpkg/ports/abumq-ripe/portfile.cmake36
-rw-r--r--vcpkg/ports/abumq-ripe/unofficial-ripe-config.cmake5
-rw-r--r--vcpkg/ports/abumq-ripe/vcpkg.json25
5 files changed, 150 insertions, 0 deletions
diff --git a/vcpkg/ports/abumq-ripe/cmake-config-exports.patch b/vcpkg/ports/abumq-ripe/cmake-config-exports.patch
new file mode 100644
index 0000000..6923c58
--- /dev/null
+++ b/vcpkg/ports/abumq-ripe/cmake-config-exports.patch
@@ -0,0 +1,41 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 803fb6a..ad7ae72 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -97,9 +97,35 @@ target_compile_definitions(ripe PRIVATE
+ ELPP_NO_DEFAULT_LOG_FILE
+ ELPP_DEFAULT_LOGGING_FLAGS=4096
+ )
+-install (TARGETS ripe DESTINATION lib)
++
++include(GNUInstallDirs)
++include(CMakePackageConfigHelpers)
++
++write_basic_package_version_file(
++ ${CMAKE_CURRENT_BINARY_DIR}/unofficial-ripe-config-version.cmake
++ VERSION "${RIPE_VERSION}"
++ COMPATIBILITY AnyNewerVersion
++)
++install(FILES
++ ${CMAKE_CURRENT_BINARY_DIR}/unofficial-ripe-config-version.cmake
++ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/unofficial-ripe-config.cmake
++ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/unofficial-ripe
++)
++
++install (TARGETS ripe
++ EXPORT unofficial-ripe-targets
++ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
++ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
++)
+ install (FILES include/Ripe.h DESTINATION "include")
+
++install(
++ EXPORT unofficial-ripe-targets
++ NAMESPACE unofficial::ripe::
++ DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-ripe"
++)
++
+ ################################################ RIPE ##############################################
+
+ add_executable (ripe-bin src/ripe.cc lib/Ripe.cc)
diff --git a/vcpkg/ports/abumq-ripe/devendoring.patch b/vcpkg/ports/abumq-ripe/devendoring.patch
new file mode 100644
index 0000000..8163a36
--- /dev/null
+++ b/vcpkg/ports/abumq-ripe/devendoring.patch
@@ -0,0 +1,43 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4500382..e1a2c95 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -36,8 +36,6 @@ if (APPLE)
+ endif()
+ endif()
+
+-list (APPEND CMAKE_CXX_FLAGS " ")
+-
+ if (dll)
+ add_definitions (-DRIPE_DLL)
+ endif()
+@@ -48,9 +46,8 @@ endif()
+
+ # Check for cryptopp (static)
+ set(CryptoPP_USE_STATIC_LIBS ON)
+-find_package(CryptoPP REQUIRED)
+-message ("-- Crypto++ binary: " ${CRYPTOPP_LIBRARY})
+-include_directories (${CRYPTOPP_INCLUDE_DIRS})
++find_package(CRYPTOPP NAMES cryptopp CONFIG REQUIRED)
++set(CRYPTOPP_LIBRARIES cryptopp::cryptopp)
+
+ find_package(ZLIB REQUIRED)
+ if (ZLIB_FOUND)
+@@ -92,7 +89,7 @@ set_target_properties(ripe PROPERTIES
+ )
+
+ target_link_libraries(ripe
+- ${CRYPTOPP_LIBRARIES}
++ cryptopp::cryptopp
+ ${ZLIB_LIBRARIES}
+ )
+
+@@ -107,7 +104,7 @@ install (FILES include/Ripe.h DESTINATION "include")
+
+ add_executable (ripe-bin src/ripe.cc lib/Ripe.cc)
+ #target_link_libraries (ripe-bin ripe)
+-target_link_libraries (ripe-bin ${CRYPTOPP_LIBRARIES} ${ZLIB_LIBRARIES})
++target_link_libraries (ripe-bin cryptopp::cryptopp ${ZLIB_LIBRARIES})
+
+ set_target_properties (ripe-bin PROPERTIES
+ OUTPUT_NAME "ripe"
diff --git a/vcpkg/ports/abumq-ripe/portfile.cmake b/vcpkg/ports/abumq-ripe/portfile.cmake
new file mode 100644
index 0000000..768586d
--- /dev/null
+++ b/vcpkg/ports/abumq-ripe/portfile.cmake
@@ -0,0 +1,36 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY) # Ripe has several issues with dynamic linkage on Windows
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO abumq/ripe
+ REF v${VERSION}
+ SHA512 d89c80349eb7a245f825755b703401a412f934390c869607cfcaa02907f375e410d6ad2220255de475e215e7fea9a17c3fba61423e2632c1be7a40cadb69ad86
+ HEAD_REF master
+ PATCHES
+ devendoring.patch
+ cmake-config-exports.patch
+)
+
+file(REMOVE_RECURSE "${SOURCE_PATH}/cmake")
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-ripe-config.cmake"
+ DESTINATION "${SOURCE_PATH}/cmake")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dtest=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-ripe")
+
+vcpkg_copy_tools(TOOL_NAMES ripe AUTO_CLEAN)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/abumq-ripe/unofficial-ripe-config.cmake b/vcpkg/ports/abumq-ripe/unofficial-ripe-config.cmake
new file mode 100644
index 0000000..a66c95c
--- /dev/null
+++ b/vcpkg/ports/abumq-ripe/unofficial-ripe-config.cmake
@@ -0,0 +1,5 @@
+include(CMakeFindDependencyMacro)
+
+find_dependency(cryptopp CONFIG)
+
+include(${CMAKE_CURRENT_LIST_DIR}/unofficial-ripe-targets.cmake)
diff --git a/vcpkg/ports/abumq-ripe/vcpkg.json b/vcpkg/ports/abumq-ripe/vcpkg.json
new file mode 100644
index 0000000..7cf8e33
--- /dev/null
+++ b/vcpkg/ports/abumq-ripe/vcpkg.json
@@ -0,0 +1,25 @@
+{
+ "name": "abumq-ripe",
+ "version": "4.2.2",
+ "description": "Lightweight cryptography library wrapper",
+ "homepage": "https://github.com/abumq/ripe",
+ "license": "Apache-2.0",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "cryptopp",
+ "features": [
+ "pem-pack"
+ ]
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zlib"
+ ]
+}