aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/rsig
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/rsig')
-rw-r--r--vcpkg/ports/rsig/portfile.cmake11
-rw-r--r--vcpkg/ports/rsig/usage4
-rw-r--r--vcpkg/ports/rsig/vcpkg.json7
3 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/rsig/portfile.cmake b/vcpkg/ports/rsig/portfile.cmake
new file mode 100644
index 0000000..bee4230
--- /dev/null
+++ b/vcpkg/ports/rsig/portfile.cmake
@@ -0,0 +1,11 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO rioki/rsig
+ REF v0.1.1
+ SHA512 1b14a543d55086da5cb678b1654267b4e7c54c7b6ef1d3b65a19ee72c362b62ecdf456c2bea8f19aaec1bee8c30b32d5d79e7ed19725d7fe26204874d063175c
+ )
+
+file(INSTALL ${SOURCE_PATH}/rsig/rsig.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/rsig)
+
+file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
diff --git a/vcpkg/ports/rsig/usage b/vcpkg/ports/rsig/usage
new file mode 100644
index 0000000..918026f
--- /dev/null
+++ b/vcpkg/ports/rsig/usage
@@ -0,0 +1,4 @@
+The package rsig is header only and can be used from CMake via:
+
+ find_path(RSIG_INCLUDE_DIRS "rsig/rsig.h")
+ target_include_directories(main PRIVATE ${RSIG_INCLUDE_DIRS})
diff --git a/vcpkg/ports/rsig/vcpkg.json b/vcpkg/ports/rsig/vcpkg.json
new file mode 100644
index 0000000..6ad5ebb
--- /dev/null
+++ b/vcpkg/ports/rsig/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "rsig",
+ "version-semver": "0.1.1",
+ "description": "rioki's signal library",
+ "homepage": "https://github.com/rioki/rsig",
+ "license": "MIT"
+}