Disable FORTRAN API, which fails build on multiple platforms (#47824)

This commit is contained in:
Attila Kovacs 2025-10-16 19:28:57 +02:00 committed by GitHub
parent 5d9f30fafe
commit 123c6ca1f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 46 additions and 38 deletions

View File

@ -1,37 +1,39 @@
vcpkg_download_distfile(ARCHIVE
URLS "https://www.imcce.fr/content/medias/recherche/equipes/asd/calceph/calceph-${VERSION}.tar.gz"
FILENAME "calceph-${VERSION}.tar.gz"
SHA512 d3f17a302dafee243a3c7698dd5b7e67550ba070cd3217c399e2cee5f90486d2be394ddcfe6dcc1b72f980e212d19bda50c4057fca05b032f6558794f191935a
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
disable-gnu-source.diff
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_tools(TOOL_NAMES calceph_inspector calceph_queryposition calceph_queryorientation AUTO_CLEAN)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/README.rst" DESTINATION "${CURRENT_PACKAGES_DIR}/share/calceph" RENAME readme.rst)
vcpkg_install_copyright(
COMMENT "The CALCEPH library is triple-licensed (CECILL-2.1 OR CECILL-B OR CECILL-C)."
FILE_LIST
"${SOURCE_PATH}/COPYING_CECILL_V2.1.LIB"
"${SOURCE_PATH}/COPYING_CECILL_B.LIB"
"${SOURCE_PATH}/COPYING_CECILL_C.LIB"
)
vcpkg_download_distfile(ARCHIVE
URLS "https://www.imcce.fr/content/medias/recherche/equipes/asd/calceph/calceph-${VERSION}.tar.gz"
FILENAME "calceph-${VERSION}.tar.gz"
SHA512 d3f17a302dafee243a3c7698dd5b7e67550ba070cd3217c399e2cee5f90486d2be394ddcfe6dcc1b72f980e212d19bda50c4057fca05b032f6558794f191935a
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
disable-gnu-source.diff
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DENABLE_FORTRAN=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_tools(TOOL_NAMES calceph_inspector calceph_queryposition calceph_queryorientation AUTO_CLEAN)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/README.rst" DESTINATION "${CURRENT_PACKAGES_DIR}/share/calceph" RENAME readme.rst)
vcpkg_install_copyright(
COMMENT "The CALCEPH library is triple-licensed (CECILL-2.1 OR CECILL-B OR CECILL-C)."
FILE_LIST
"${SOURCE_PATH}/COPYING_CECILL_V2.1.LIB"
"${SOURCE_PATH}/COPYING_CECILL_B.LIB"
"${SOURCE_PATH}/COPYING_CECILL_C.LIB"
)

View File

@ -1,6 +1,7 @@
{
"name": "calceph",
"version": "4.0.5",
"port-version": 1,
"description": "C library to access the binary planetary ephemeris files.",
"homepage": "https://www.imcce.fr/inpop/calceph/",
"documentation": "https://calceph.imcce.fr/docs/latest/html/c/index.html",

View File

@ -1562,7 +1562,7 @@
},
"calceph": {
"baseline": "4.0.5",
"port-version": 0
"port-version": 1
},
"camport3": {
"baseline": "1.6.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "166a8e8f4d71602d30e224f5f83b8deaea1a2090",
"version": "4.0.5",
"port-version": 1
},
{
"git-tree": "ae8ec7f572521c80b20f83cc1af30788205fa320",
"version": "4.0.5",