Skip to content

Commit 23366aa

Browse files
author
Henrich Lauko
committed
ports: Add gap library.
1 parent 65b76ba commit 23366aa

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

ports/gap/gap_usage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The package gap provides CMake targets:
2+
3+
find_package(gap CONFIG REQUIRED)
4+
target_link_libraries(main PRIVATE gap::gap gap::gap-core gap::gap-settings)

ports/gap/portfile.cmake

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO lifting-bits/gap
4+
REF 11989486fa95db0f66fb339fad485f5b6cb725c2
5+
SHA512 acce919437fbb0fc7aed346514aafcd1772468a23838f2208494403edaf7afbb02396d5546ce18cb50b955b1d24569f2b83e3f8e5b8a6413e54985f3273e537d
6+
HEAD_REF main
7+
)
8+
9+
vcpkg_configure_cmake(
10+
SOURCE_PATH "${SOURCE_PATH}"
11+
PREFER_NINJA
12+
OPTIONS
13+
-DGAP_ENABLE_COROUTINES=OFF
14+
-DGAP_INSTALL=ON
15+
)
16+
17+
vcpkg_install_cmake()
18+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gap)
19+
20+
file( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
21+
22+
file(
23+
INSTALL "${SOURCE_PATH}/LICENSE"
24+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
25+
RENAME copyright
26+
)
27+
28+
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage")
29+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${lower_package}" RENAME usage)
30+
endif()

ports/gap/vcpkg.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "gap",
3+
"version": "0.0.0",
4+
"port-version": 1,
5+
"description": "A utility library to bridge llvm and mlir gaps",
6+
"homepage": "https://github.com/lifting-bits/gap",
7+
"license": "MIT",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-cmake-config",
11+
"host": true
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)