Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New port for mailio. #16696

Merged
merged 8 commits into from Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions ports/mailio/portfile.cmake
@@ -0,0 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO karastojko/mailio
REF 1872f29d88a52f06cd96b611673b2e46c6b9832b # version_0-20-0
SHA512 1686e49ed2c7163c33f88c820633e772986ecfea5696b78a44b370f44051190b14a1ddcd055bce2a9104324c80e8045cf0441c085eb6f272261da7e80bc4fdb5
HEAD_REF master
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DMAILIO_BUILD_SHARED_LIBRARY=${BUILD_SHARED}
-DMAILIO_BUILD_DOCUMENTATION=OFF
-DMAILIO_BUILD_EXAMPLES=OFF
)
vcpkg_cmake_install()

vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
19 changes: 19 additions & 0 deletions ports/mailio/vcpkg.json
@@ -0,0 +1,19 @@
{
"name": "mailio",
"version": "0.20.0",
"maintainers": "Tomislav Karastojković <contact@alepho.com>",
"description": "mailio is a cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols. It is based on the standard C++ 17 and Boost library.",
"homepage": "https://github.com/karastojko/mailio",
"license": "BSD-2-clause",
"dependencies": [
"boost-asio",
"boost-date-time",
"boost-regex",
"boost-system",
"openssl",
{
"name": "vcpkg-cmake",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Expand Up @@ -3716,6 +3716,10 @@
"baseline": "2020.06",
"port-version": 3
},
"mailio": {
"baseline": "0.20.0",
"port-version": 0
},
"mapbox-variant": {
"baseline": "1.2.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/m-/mailio.json
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "d0031c324fcbf44f0af73cb045551c01c5cc21e3",
"version": "0.20.0",
"port-version": 0
}
]
}