[gapp] New port (#35330)

* [gapp] new port

* update versions/g-/gapp.json

---------

Co-authored-by: KRM7 <KRM7@users.noreply.github.com>
This commit is contained in:
KRM7 2023-11-28 08:11:18 +01:00 committed by GitHub
parent 8161f65543
commit 64ca152891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 0 deletions

29
ports/gapp/portfile.cmake Normal file
View File

@ -0,0 +1,29 @@
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KRM7/gapp
REF "v${VERSION}"
SHA512 463d36c3c41d14a9615dc48b43aebfccdf28177db766941607c2bdb2fed9ae5e876ae7b0bca541809503b35e9ce250a5d3b7246342c035f4a079d50539589ac2
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DGAPP_BUILD_TESTS=OFF
-DGAPP_USE_LTO=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gapp)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc/gapp/api")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

4
ports/gapp/usage Normal file
View File

@ -0,0 +1,4 @@
gapp provides CMake targets:
find_package(gapp CONFIG REQUIRED)
target_link_libraries(main PRIVATE gapp::gapp)

18
ports/gapp/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "gapp",
"version": "0.2.0",
"description": "A genetic algorithms library in C++ for single- and multi-objective optimization.",
"homepage": "https://github.com/KRM7/gapp",
"license": "MIT",
"supports": "(windows | linux) & !arm",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2848,6 +2848,10 @@
"baseline": "gamma-2018-01-27",
"port-version": 6
},
"gapp": {
"baseline": "0.2.0",
"port-version": 0
},
"gasol": {
"baseline": "2018-01-04",
"port-version": 4

9
versions/g-/gapp.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "31fc6c2ca0e58b6133db03eeaa3e31398810ccc2",
"version": "0.2.0",
"port-version": 0
}
]
}