Skip to content

Commit 67170cb

Browse files
authored
[darts-clone] install as header-only (#52829)
1 parent ec62869 commit 67170cb

5 files changed

Lines changed: 22 additions & 67 deletions

File tree

ports/darts-clone/CMakeLists.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.

ports/darts-clone/portfile.cmake

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
1-
vcpkg_check_linkage(
2-
ONLY_STATIC_LIBRARY
3-
)
4-
vcpkg_from_github(
5-
OUT_SOURCE_PATH SOURCE_PATH
6-
REPO s-yata/darts-clone
7-
REF 1767ab87cffe7302856d1bb41e1c21b1df93f19e
8-
SHA512 63112a4d8d6302d2602a8f161bf5fe5ec1b5b3b3097de9b28331f5261d76c06efb48601c08df26f242ddc881b917928baf54f24ccebac65da29e94380b6db0f5
9-
HEAD_REF master
10-
)
11-
12-
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
13-
14-
15-
vcpkg_cmake_configure(
16-
SOURCE_PATH "${SOURCE_PATH}"
17-
OPTIONS_DEBUG
18-
-DDISABLE_INSTALL_HEADERS=ON
19-
)
20-
21-
vcpkg_cmake_install()
22-
vcpkg_copy_pdbs()
23-
24-
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/Makefile.am")
25-
26-
file(INSTALL "${SOURCE_PATH}/COPYING.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO s-yata/darts-clone
4+
REF 1767ab87cffe7302856d1bb41e1c21b1df93f19e
5+
SHA512 63112a4d8d6302d2602a8f161bf5fe5ec1b5b3b3097de9b28331f5261d76c06efb48601c08df26f242ddc881b917928baf54f24ccebac65da29e94380b6db0f5
6+
HEAD_REF master
7+
)
8+
9+
# darts-clone is header-only; the whole API lives in include/darts.h.
10+
# src/darts.cc is a command-line tool (defines main) and must not be compiled
11+
# into a library.
12+
file(INSTALL "${SOURCE_PATH}/include/darts.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
13+
14+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING.md")

ports/darts-clone/vcpkg.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
{
22
"name": "darts-clone",
33
"version-string": "1767ab87cffe",
4-
"port-version": 3,
4+
"port-version": 4,
55
"description": "A static double-array trie structure",
6-
"dependencies": [
7-
{
8-
"name": "vcpkg-cmake",
9-
"host": true
10-
},
11-
{
12-
"name": "vcpkg-cmake-config",
13-
"host": true
14-
}
15-
]
6+
"license": "BSD-2-Clause"
167
}

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@
23982398
},
23992399
"darts-clone": {
24002400
"baseline": "1767ab87cffe",
2401-
"port-version": 3
2401+
"port-version": 4
24022402
},
24032403
"dartsim": {
24042404
"baseline": "6.15.0",

versions/d-/darts-clone.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "ff08f7084c4b46cef39ecdcbb67b138e9f881bf4",
5+
"version-string": "1767ab87cffe",
6+
"port-version": 4
7+
},
38
{
49
"git-tree": "5239abd7c41aedf5fe2f2e00e0f781824a442e75",
510
"version-string": "1767ab87cffe",

0 commit comments

Comments
 (0)