aboutsummaryrefslogtreecommitdiff
path: root/ports/liblinear
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2021-09-04 08:37:20 +0800
committerGitHub <noreply@github.com>2021-09-03 17:37:20 -0700
commitfbc1e4178adee73b8a0d8d08078b6cac41d7f840 (patch)
tree7e027993083f710bf4cb4ccc9c710f8b9e02603b /ports/liblinear
parent14f6b67e427f7291dd89f2a73d46d779e744ea5b (diff)
downloadvcpkg-fbc1e4178adee73b8a0d8d08078b6cac41d7f840.tar.gz
vcpkg-fbc1e4178adee73b8a0d8d08078b6cac41d7f840.zip
[libmupdf/liblinear/libkeyfinder] Update to latest version (#19959)
* [libmupdf/liblinear/libkeyfinder] Update to latest version * update version * update vcpkg.json format * update version
Diffstat (limited to 'ports/liblinear')
-rw-r--r--ports/liblinear/CONTROL5
-rw-r--r--ports/liblinear/portfile.cmake19
-rw-r--r--ports/liblinear/vcpkg.json17
3 files changed, 26 insertions, 15 deletions
diff --git a/ports/liblinear/CONTROL b/ports/liblinear/CONTROL
deleted file mode 100644
index 03a915a14..000000000
--- a/ports/liblinear/CONTROL
+++ /dev/null
@@ -1,5 +0,0 @@
-Source: liblinear
-Version: 241
-Homepage: https://github.com/cjlin1/liblinear
-Description: A Library for Large Linear Classification
-Supports: !uwp
diff --git a/ports/liblinear/portfile.cmake b/ports/liblinear/portfile.cmake
index b48f03cd8..fab41c039 100644
--- a/ports/liblinear/portfile.cmake
+++ b/ports/liblinear/portfile.cmake
@@ -3,27 +3,26 @@ vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cjlin1/liblinear
- REF 2381122d05bbb1e4ee24b522298dd548f0ec0d24 #v241
- SHA512 ee784b6325681b3d9e3dc0b59f4a703d87be35fb898cc16df93e4a814a959d530736a8451be4f0f2c856769d81e3f5acbcd6f0f8677425e700597e3502f9f36d
+ REF 60f1adf6f35d6f3e031c334b33dfe8399d6f8a9d #v243
+ SHA512 0f88f8dd768313d0a9b3bb82e7b878d7173ea43ef609e993dc79e94398897373faf2688249b17111e2b6e06e78e26a50570a1b746dc4e73fb7416ccc24936c66
HEAD_REF master
)
-file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON
-DDISABLE_INSTALL_TOOLS=ON
)
-vcpkg_install_cmake()
+vcpkg_cmake_install()
vcpkg_copy_pdbs()
if(NOT DISABLE_INSTALL_TOOLS)
- vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/liblinear)
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/liblinear")
endif()
-file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
-file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/README" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/ports/liblinear/vcpkg.json b/ports/liblinear/vcpkg.json
new file mode 100644
index 000000000..a65229aa0
--- /dev/null
+++ b/ports/liblinear/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "liblinear",
+ "version-string": "243",
+ "description": "A Library for Large Linear Classification",
+ "homepage": "https://github.com/cjlin1/liblinear",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}