aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/guile
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/guile
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/guile')
-rw-r--r--vcpkg/ports/guile/portfile.cmake36
-rw-r--r--vcpkg/ports/guile/vcpkg.json27
2 files changed, 63 insertions, 0 deletions
diff --git a/vcpkg/ports/guile/portfile.cmake b/vcpkg/ports/guile/portfile.cmake
new file mode 100644
index 0000000..f34c62f
--- /dev/null
+++ b/vcpkg/ports/guile/portfile.cmake
@@ -0,0 +1,36 @@
+vcpkg_download_distfile(GUILE_ARCHIVE
+ 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_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")
+
+vcpkg_configure_make(
+ SOURCE_PATH "${GUILE_SOURCES}"
+ ADD_BIN_TO_PATH
+ AUTOCONFIG
+)
+vcpkg_install_make()
+vcpkg_copy_pdbs()
+
+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()
+ 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)
+endforeach()
+vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/guile-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
+
+vcpkg_install_copyright(FILE_LIST "${GUILE_SOURCES}/COPYING.LESSER")
diff --git a/vcpkg/ports/guile/vcpkg.json b/vcpkg/ports/guile/vcpkg.json
new file mode 100644
index 0000000..fc6cd99
--- /dev/null
+++ b/vcpkg/ports/guile/vcpkg.json
@@ -0,0 +1,27 @@
+{
+ "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/",
+ "license": "LGPL-3.0-or-later",
+ "supports": "linux",
+ "dependencies": [
+ "bdwgc",
+ {
+ "name": "gettext",
+ "host": true,
+ "features": [
+ "tools"
+ ]
+ },
+ "gmp",
+ {
+ "name": "gperf",
+ "host": true
+ },
+ "libffi",
+ "libunistring"
+ ]
+}