From 29858b3cb2c8a0ec2c85b1b14d6d0a0d1dfe309e Mon Sep 17 00:00:00 2001 From: jadedrip Date: Thu, 11 Oct 2018 08:42:29 +0800 Subject: [PATCH] Add luabridge 2.1 (#4443) * Add luabridge 2.1 * [luabridge] Update to modern port practices, avoid checking in the License. --- ports/luabridge/CONTROL | 3 +++ ports/luabridge/portfile.cmake | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ports/luabridge/CONTROL create mode 100644 ports/luabridge/portfile.cmake diff --git a/ports/luabridge/CONTROL b/ports/luabridge/CONTROL new file mode 100644 index 0000000000..595e3b1137 --- /dev/null +++ b/ports/luabridge/CONTROL @@ -0,0 +1,3 @@ +Source: luabridge +Version: 2.1-1 +Description: A lightweight, dependency-free library for binding Lua to C++ diff --git a/ports/luabridge/portfile.cmake b/ports/luabridge/portfile.cmake new file mode 100644 index 0000000000..6ff91dd3ac --- /dev/null +++ b/ports/luabridge/portfile.cmake @@ -0,0 +1,20 @@ +include(vcpkg_common_functions) +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO vinniefalco/LuaBridge + REF 2.1 + SHA512 062efda16fe43a02bcc757aaebba839e0ec72a9a3b7bf1e5bc1427a54d664a52197c8bcd4ac584f0d04cce812c0f078e257716e8bca016bcabda82c2c332ac04 + HEAD_REF master +) + +file( + COPY ${SOURCE_PATH}/Source/LuaBridge + DESTINATION ${CURRENT_PACKAGES_DIR}/include +) + +# Handle copyright +configure_file( + ${SOURCE_PATH}/README.md + ${CURRENT_PACKAGES_DIR}/share/luabridge/copyright + COPYONLY +)