Skip to content

Commit

Permalink
Add new dependencies (#1044)
Browse files Browse the repository at this point in the history
* add deps for gap

* add re2c

* package re2c as tool because it has no headers and is just binaries

---------

Co-authored-by: Eric Kilmer <eric.d.kilmer@gmail.com>
  • Loading branch information
Ninja3047 and ekilmer authored Jan 3, 2024
1 parent 13c1c8f commit db89911
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
xed
z3
glog
re2c
gtest
gflags
protobuf
Expand All @@ -14,4 +15,6 @@ re2
zstd
lz4
doctest
fmt
spdlog
sqlite3[fts5]
23 changes: 23 additions & 0 deletions ports/re2c/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO skvadrik/re2c
REF "${VERSION}"
SHA512 7528d78e1354c774783e63e05553b7a772f8185b43b988cddf79a527ed63316f18e6f9fb3a63ae4d5c83c9f4de2b672b0e61898d96bdd6f15a1eaa7b4d47c757
HEAD_REF master
)

set(VCPKG_BUILD_TYPE release)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)

vcpkg_cmake_install()
vcpkg_copy_tools(
TOOL_NAMES re2c re2go re2rust
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/re2c"
AUTO_CLEAN
)

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
13 changes: 13 additions & 0 deletions ports/re2c/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "re2c",
"version": "3.1",
"description": "Lexer generator for C, C++, Go and Rust.",
"homepage": "https://re2c.org/",
"license": null,
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

0 comments on commit db89911

Please sign in to comment.