[guile] Add mirror (#47274)

This commit is contained in:
Thomas1664 2025-09-10 10:57:05 +02:00 committed by GitHub
parent 59a270c377
commit e57a4c009a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 20 additions and 16 deletions

View File

@ -1,10 +1,12 @@
vcpkg_download_distfile(GUILE_ARCHIVE
URLS https://ftp.gnu.org/gnu/guile/guile-${VERSION}.tar.gz
FILENAME guile-${VERSION}.tar.gz
SHA512 8b0e6354fdfccd009fd92a5618828f8a8343faf20d1d3698be77a6ef7a8fe56ce633fd1239520e6a6be511ba4ca75eb90c8a81c45888b8b73d938cd2908d7a1f
)
URLS
"https://ftpmirror.gnu.org/guile/guile-${VERSION}.tar.gz"
"https://ftp.gnu.org/gnu/guile/guile-${VERSION}.tar.gz"
FILENAME "guile-${VERSION}.tar.gz"
SHA512 8b0e6354fdfccd009fd92a5618828f8a8343faf20d1d3698be77a6ef7a8fe56ce633fd1239520e6a6be511ba4ca75eb90c8a81c45888b8b73d938cd2908d7a1f
)
vcpkg_extract_source_archive(GUILE_SOURCES ARCHIVE ${GUILE_ARCHIVE})
vcpkg_extract_source_archive(GUILE_SOURCES ARCHIVE "${GUILE_ARCHIVE}")
vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")
@ -12,7 +14,7 @@ vcpkg_configure_make(
SOURCE_PATH "${GUILE_SOURCES}"
ADD_BIN_TO_PATH
AUTOCONFIG
)
)
vcpkg_install_make()
vcpkg_copy_pdbs()
@ -21,18 +23,14 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_fixup_pkgconfig()
if (NOT VCPKG_BUILD_TYPE)
foreach(file guile-tools guile-config guild)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/${file}" "${CURRENT_INSTALLED_DIR}/debug/../tools/guile/debug/bin" "`dirname $0`" IGNORE_UNCHANGED)
endforeach()
foreach(file guile-tools guile-config guild)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/${file}" "${CURRENT_INSTALLED_DIR}/debug/../tools/guile/debug/bin" "`dirname $0`" IGNORE_UNCHANGED)
endforeach()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/guile-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
endif()
foreach(file guile-tools guile-config guild)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/${file}" "${CURRENT_INSTALLED_DIR}/tools/guile/bin" "`dirname $0`" IGNORE_UNCHANGED)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/${file}" "${CURRENT_INSTALLED_DIR}/tools/guile/bin" "`dirname $0`" IGNORE_UNCHANGED)
endforeach()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/guile-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
file(
INSTALL "${GUILE_SOURCES}/COPYING.LESSER"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
vcpkg_install_copyright(FILE_LIST "${GUILE_SOURCES}/COPYING.LESSER")

View File

@ -1,6 +1,7 @@
{
"name": "guile",
"version": "3.0.10",
"port-version": 1,
"description": "GNU's programming and extension language",
"homepage": "https://www.gnu.org/software/guile/",
"documentation": "https://www.gnu.org/software/guile/manual/",

View File

@ -3506,7 +3506,7 @@
},
"guile": {
"baseline": "3.0.10",
"port-version": 0
"port-version": 1
},
"guilite": {
"baseline": "2022-05-05",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "883037b0117f33c721a52c8f50d82f8ff2ff4a33",
"version": "3.0.10",
"port-version": 1
},
{
"git-tree": "4fe9e6fe1d7b38bb84a73f37e34d83e6abe526cb",
"version": "3.0.10",