Skip to content

Commit

Permalink
[plog] Update to 1.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiusTheBest committed Jun 10, 2022
1 parent 58196ee commit f6aad56
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 20 deletions.
37 changes: 20 additions & 17 deletions ports/plog/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SergiusTheBest/plog
REF 1.1.6
SHA512 5240532df96144d5026d6f879b69f7d6f393ebc9122c6458c41076fd3db998565e45ed2ab4948f8c3cb59e08c0aad7695ee416f95b49fd70209cd937220cdf8b
HEAD_REF master
)

# Copy header files
file(INSTALL "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}" FILES_MATCHING PATTERN "*.h")

# Copy usage file
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

# Put the licence file where vcpkg expects it
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SergiusTheBest/plog
REF 1.1.8
SHA512 09bf6e0cae7f20c1b42e68a174b4cd6a2fb8751db9758efb87449cbff48375708e43c147c72b7ed17fb9334acaf7802441f61578356284a8ed337fd886a45e79
HEAD_REF master
)

vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH} OPTIONS -DPLOG_BUILD_SAMPLES=OFF)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)

# Copy usage file
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

# Put the licence file where vcpkg expects it
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
5 changes: 5 additions & 0 deletions ports/plog/usage
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
The package plog is header only and can be used from CMake via:

Modern CMake:
find_package(plog CONFIG REQUIRED)
target_link_libraries(main PRIVATE plog::plog)

Old-way CMake:
find_path(PLOG_INCLUDE_DIRS "plog/Log.h")
target_include_directories(main PRIVATE ${PLOG_INCLUDE_DIRS})
14 changes: 12 additions & 2 deletions ports/plog/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"name": "plog",
"version": "1.1.6",
"version": "1.1.8",
"description": "Portable, simple and extensible C++ logging library.",
"homepage": "https://github.com/SergiusTheBest/plog",
"license": "MPL-2.0"
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5497,7 +5497,7 @@
"port-version": 6
},
"plog": {
"baseline": "1.1.6",
"baseline": "1.1.8",
"port-version": 0
},
"plplot": {
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/plog.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c3573e2b7fb2fde51c5e61b996fa7bd3661e5455",
"version": "1.1.8",
"port-version": 0
},
{
"git-tree": "aaca8cb03c90bca09c7bf83b393521dce2719686",
"version": "1.1.6",
Expand Down

0 comments on commit f6aad56

Please sign in to comment.