aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/clipboardxx
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/clipboardxx
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/clipboardxx')
-rw-r--r--vcpkg/ports/clipboardxx/fix-install.patch12
-rw-r--r--vcpkg/ports/clipboardxx/portfile.cmake26
-rw-r--r--vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in19
-rw-r--r--vcpkg/ports/clipboardxx/vcpkg.json19
4 files changed, 76 insertions, 0 deletions
diff --git a/vcpkg/ports/clipboardxx/fix-install.patch b/vcpkg/ports/clipboardxx/fix-install.patch
new file mode 100644
index 0000000..b60e424
--- /dev/null
+++ b/vcpkg/ports/clipboardxx/fix-install.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 07c06cc..a3d78ea 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,6 +10,7 @@ target_include_directories(${PROJECT_NAME} INTERFACE include)
+
+ # install header files
+ install(FILES include/clipboardxx.hpp DESTINATION include)
++install(DIRECTORY include/detail DESTINATION include)
+
+ # dependencies
+ if(UNIX AND NOT APPLE)
diff --git a/vcpkg/ports/clipboardxx/portfile.cmake b/vcpkg/ports/clipboardxx/portfile.cmake
new file mode 100644
index 0000000..2596510
--- /dev/null
+++ b/vcpkg/ports/clipboardxx/portfile.cmake
@@ -0,0 +1,26 @@
+# Download the code from GitHub
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Arian8j2/ClipboardXX
+ REF v${VERSION}
+ SHA512 f5435698cf1c10609c22140974fc86c672a331c419e6c6faa94e9fdc14fb0b0dd59f1f16a062f18320d7c523ba1951d917ef607a307c1c3fa88c71ef8e34b4ca
+ HEAD_REF master
+ PATCHES
+ fix-install.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+configure_file(
+ "${CMAKE_CURRENT_LIST_DIR}/unofficial-clipboardxx-config.cmake.in"
+ "${CURRENT_PACKAGES_DIR}/share/unofficial-clipboardxx/unofficial-clipboardxx-config.cmake"
+ @ONLY
+)
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in b/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in
new file mode 100644
index 0000000..688ac88
--- /dev/null
+++ b/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in
@@ -0,0 +1,19 @@
+get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
+if(_IMPORT_PREFIX STREQUAL "/")
+ set(_IMPORT_PREFIX "")
+endif()
+
+add_library(unofficial::ClipboardXX INTERFACE IMPORTED)
+set_target_properties(unofficial::ClipboardXX PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
+)
+
+if("@VCPKG_TARGET_IS_LINUX@")
+ set_target_properties(unofficial::ClipboardXX PROPERTIES
+ INTERFACE_LINK_LIBRARIES "xcb;pthread"
+ )
+endif()
+
+unset(_IMPORT_PREFIX)
diff --git a/vcpkg/ports/clipboardxx/vcpkg.json b/vcpkg/ports/clipboardxx/vcpkg.json
new file mode 100644
index 0000000..e069159
--- /dev/null
+++ b/vcpkg/ports/clipboardxx/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "clipboardxx",
+ "version": "0.5",
+ "port-version": 1,
+ "description": "Header only, lightweight and cross platform C++ library for copy and paste text from clipboard.",
+ "homepage": "https://github.com/Arian8j2/ClipboardXX",
+ "license": "MIT",
+ "supports": "!osx & !android",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}