[launch-darkly-server] Add new port (#21262)

* [2.4.3] Add launch-darkly-server port

* Review portfile

* Skip database tests.
This commit is contained in:
Charles-Auguste Marois 2021-11-11 13:44:32 -05:00 committed by GitHub
parent 69c913f7c2
commit 2a9046de13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO launchdarkly/c-server-sdk
REF 0d9db81862e1b17426da9b433a19376dd6458937 # 2.4.3
SHA512 1bbafd212b0a271909a03319954ee2c92a3dde713fe7f9e0fdd79a5f011f0775701060b66ae9b3a4efad59376241b893d4b3d6679743c41e7657c355c7e3df5c
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DBUILD_TESTING=OFF"
"-DSKIP_DATABASE_TESTS=OFF"
)
vcpkg_cmake_install()
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/ldserverapi.dll" "${CURRENT_PACKAGES_DIR}/bin/ldserverapi.dll")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/ldserverapi.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/ldserverapi.dll")
endif()
endif()
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
)
vcpkg_copy_pdbs()
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -0,0 +1,19 @@
{
"name": "launch-darkly-server",
"version": "2.4.3",
"description": "LaunchDarkly server-side SDK for C/C++",
"homepage": "https://github.com/launchdarkly/c-server-sdk",
"supports": "!uwp & !arm",
"dependencies": [
"curl",
"pcre",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -3236,6 +3236,10 @@
"baseline": "3.4.3",
"port-version": 1
},
"launch-darkly-server": {
"baseline": "2.4.3",
"port-version": 0
},
"lazy-importer": {
"baseline": "2021-10-23",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "79ea5536dae8c4031640373d54bdef7d0e746483",
"version": "2.4.3",
"port-version": 0
}
]
}