[arpack-ng] Add new port (#29248)

* [arpack-ng] Add new port

* [arpack-ng] Update versioning scheme

* [arpack-ng] Update version database
This commit is contained in:
Fabien Péan 2023-02-27 23:34:22 +01:00 committed by GitHub
parent 65d4be0cd8
commit 5626cee5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,34 @@
include(vcpkg_find_fortran)
vcpkg_find_fortran(FORTRAN_CMAKE)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO opencollab/arpack-ng
REF ${VERSION}
SHA512 fbcaa2179dd1aa5a39fc3e7d80f377ec90ddf16ef93184a88e6ecfc464ed97e5659f2cf578294ac3e0b0c0da6408c86acf5bbdce533e1e9d2a3121848340d282
HEAD_REF master
)
if(NOT VCPKG_TARGET_IS_WINDOWS)
set(ENV{FFLAGS} "$ENV{FFLAGS} -fPIC")
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FORTRAN_CMAKE}
-DMPI=OFF
-DICB=ON
-DICBEXMM=OFF
-DEXAMPLES=OFF
-DTESTS=OFF
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(PACKAGE_NAME arpackng CONFIG_PATH lib/cmake/arpackng)
vcpkg_fixup_pkgconfig()
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

4
ports/arpack-ng/usage Normal file
View File

@ -0,0 +1,4 @@
The package arpack-ng provides CMake targets:
find_package(arpackng CONFIG REQUIRED)
target_link_libraries(main PRIVATE ARPACK::ARPACK)

View File

@ -0,0 +1,24 @@
{
"name": "arpack-ng",
"version": "3.9.0",
"description": "ARPACK-NG is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems.",
"homepage": "https://github.com/opencollab/arpack-ng",
"license": "BSD-3-Clause",
"supports": "!uwp",
"dependencies": [
"blas",
"lapack",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "vcpkg-gfortran",
"platform": "windows"
}
]
}

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ad2fd897c58d9cf2976a1be1efc10e36aa4e1af6",
"version": "3.9.0",
"port-version": 0
}
]
}

View File

@ -204,6 +204,10 @@
"baseline": "11.4.4",
"port-version": 0
},
"arpack-ng": {
"baseline": "3.9.0",
"port-version": 0
},
"arrayfire": {
"baseline": "3.8.0",
"port-version": 2