[octave] add new port (#40582)

This commit is contained in:
talregev 2024-08-22 12:43:17 +03:00 committed by GitHub
parent bb002e69de
commit 930a6e7049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 104 additions and 0 deletions

View File

@ -0,0 +1,56 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
include(vcpkg_find_fortran)
vcpkg_find_fortran(FORTRAN)
vcpkg_find_acquire_program(BISON)
get_filename_component(BISON_EXE_PATH "${BISON}" DIRECTORY)
vcpkg_add_to_path("${BISON_EXE_PATH}")
vcpkg_find_acquire_program(FLEX)
get_filename_component(FLEX_EXE_PATH "${FLEX}" DIRECTORY)
vcpkg_add_to_path("${FLEX_EXE_PATH}")
vcpkg_find_acquire_program(GPERF)
get_filename_component(GPERF_EXE_PATH "${GPERF}" DIRECTORY)
vcpkg_add_to_path("${GPERF_EXE_PATH}")
vcpkg_download_distfile(ARCHIVE
URLS "https://ftpmirror.gnu.org/octave/octave-${VERSION}.tar.xz"
FILENAME "octave-${VERSION}.tar.xz"
SHA512 cb1667cd6557d48ecd7ae191bc44c9b9fd4f79e7cf4bf6c917093d120c4312e9594e6dddc5287661627ac053e9f23faaec40a1286d792d859f1fefbfdb3eeb8c
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE ${ARCHIVE}
PATCHES
)
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/bin")
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/debug/bin")
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS
--disable-docs
--without-hdf5
)
vcpkg_install_make()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/octave/site/")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/octave/site/")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/octave/site/")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/octave/${VERSION}/site/")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/octave/${VERSION}/site/")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/libexec/")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/libexec")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/octave/octave/${VERSION}/site")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/octave/octave/site")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
vcpkg_fixup_pkgconfig()

30
ports/octave/vcpkg.json Normal file
View File

@ -0,0 +1,30 @@
{
"name": "octave",
"version": "9.2.0",
"description": "High-level interpreted language, primarily intended for numerical computations.",
"homepage": "https://octave.org/",
"license": "GPL-3.0-or-later",
"supports": "!arm",
"dependencies": [
"blas",
{
"name": "curl",
"default-features": false
},
"fftw3",
"lapack",
"opengl",
"pcre2",
"qhull",
"readline",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib"
]
}

View File

@ -810,6 +810,11 @@ nrf-ble-driver:arm64-android=fail
nrf-ble-driver:x64-android=fail
nvtt:x64-android=fail
oatpp-libressl:x64-android=fail
octave:x86-windows=fail
octave:x64-windows=fail
octave:x64-windows-static=fail
octave:x64-windows-static-md=fail
octave:x64-osx=fail
ode:arm64-windows=fail
offscale-libetcd-cpp:arm64-uwp=fail
offscale-libetcd-cpp:x64-uwp=fail

View File

@ -6412,6 +6412,10 @@
"baseline": "4.7.6",
"port-version": 0
},
"octave": {
"baseline": "9.2.0",
"port-version": 0
},
"octomap": {
"baseline": "1.10.0",
"port-version": 0

9
versions/o-/octave.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "6bb24fb39b584c5298f49de82807d011368c9eeb",
"version": "9.2.0",
"port-version": 0
}
]
}