Skip to content

Commit b27f6bf

Browse files
authored
[cpp-smtpclient-library] Add new port (microsoft#48074)
1 parent 46a114b commit b27f6bf

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO jeremydumais/CPP-SMTPClient-library
4+
REF "v${VERSION}"
5+
SHA512 1f1b28519e9cc4c37746dcb083ac00180ef249cffd60feb8f13365c9655b2c66f4c05c46e5fd7953254a20d4708eb1e80ea883a205411554ae23f5709935f901
6+
HEAD_REF master
7+
)
8+
9+
# Configure with explicit install dirs to avoid absolute /smtpclient
10+
vcpkg_cmake_configure(
11+
SOURCE_PATH "${SOURCE_PATH}"
12+
OPTIONS
13+
-DCMAKE_INSTALL_INCLUDEDIR=include # must be initialized
14+
-DBUILD_TESTING=OFF # avoid gtest download/build in vcpkg
15+
)
16+
vcpkg_cmake_install()
17+
18+
vcpkg_cmake_config_fixup(PACKAGE_NAME "smtpclient" CONFIG_PATH "lib/cmake/smtpclient")
19+
20+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
21+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/smtpclient/cpp/example")
22+
23+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
24+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

ports/cpp-smtpclient-library/usage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cpp-smtpclient-library provides CMake targets:
2+
3+
find_package(smtpclient CONFIG REQUIRED)
4+
target_link_libraries(main PRIVATE smtpclient::smtpclient)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "cpp-smtpclient-library",
3+
"version": "1.1.13",
4+
"description": "An SMTP client library built in C++ that support authentication and secure connections",
5+
"homepage": "https://github.com/jeremydumais/CPP-SMTPClient-library",
6+
"license": "MIT AND Zlib",
7+
"supports": "!uwp",
8+
"dependencies": [
9+
"openssl",
10+
{
11+
"name": "vcpkg-cmake",
12+
"host": true
13+
},
14+
{
15+
"name": "vcpkg-cmake-config",
16+
"host": true
17+
}
18+
]
19+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,10 @@
20242024
"baseline": "4.3.1",
20252025
"port-version": 5
20262026
},
2027+
"cpp-smtpclient-library": {
2028+
"baseline": "1.1.13",
2029+
"port-version": 0
2030+
},
20272031
"cpp-sort": {
20282032
"baseline": "2.0.0",
20292033
"port-version": 0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "3901222e417fcc4beec6d627908ed9308ed02e76",
5+
"version": "1.1.13",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)