aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/darts-clone
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/darts-clone
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/darts-clone')
-rw-r--r--vcpkg/ports/darts-clone/CMakeLists.txt29
-rw-r--r--vcpkg/ports/darts-clone/portfile.cmake26
-rw-r--r--vcpkg/ports/darts-clone/vcpkg.json16
3 files changed, 71 insertions, 0 deletions
diff --git a/vcpkg/ports/darts-clone/CMakeLists.txt b/vcpkg/ports/darts-clone/CMakeLists.txt
new file mode 100644
index 0000000..024cd2f
--- /dev/null
+++ b/vcpkg/ports/darts-clone/CMakeLists.txt
@@ -0,0 +1,29 @@
+cmake_minimum_required(VERSION 3.8)
+project(darts)
+
+if(MSVC)
+ add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
+endif()
+
+add_library(darts src/darts.cc)
+
+target_include_directories(darts
+ PUBLIC
+ $<INSTALL_INTERFACE:include>
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ PRIVATE
+ ${CMAKE_CURRENT_SOURCE_DIR}/src
+)
+
+install(
+ TARGETS darts
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(
+ DIRECTORY include/ DESTINATION include/
+ )
+endif()
diff --git a/vcpkg/ports/darts-clone/portfile.cmake b/vcpkg/ports/darts-clone/portfile.cmake
new file mode 100644
index 0000000..88e352f
--- /dev/null
+++ b/vcpkg/ports/darts-clone/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_check_linkage(
+ ONLY_STATIC_LIBRARY
+)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO s-yata/darts-clone
+ REF 1767ab87cffe7302856d1bb41e1c21b1df93f19e
+ SHA512 63112a4d8d6302d2602a8f161bf5fe5ec1b5b3b3097de9b28331f5261d76c06efb48601c08df26f242ddc881b917928baf54f24ccebac65da29e94380b6db0f5
+ HEAD_REF master
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS_DEBUG
+ -DDISABLE_INSTALL_HEADERS=ON
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+file(REMOVE "${CURRENT_PACKAGES_DIR}/include/Makefile.am")
+
+file(INSTALL "${SOURCE_PATH}/COPYING.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/darts-clone/vcpkg.json b/vcpkg/ports/darts-clone/vcpkg.json
new file mode 100644
index 0000000..5750648
--- /dev/null
+++ b/vcpkg/ports/darts-clone/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "darts-clone",
+ "version-string": "1767ab87cffe",
+ "port-version": 3,
+ "description": "A static double-array trie structure",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}