diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /dev-lang/gleam | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'dev-lang/gleam')
-rw-r--r-- | dev-lang/gleam/Manifest | 7 | ||||
-rw-r--r-- | dev-lang/gleam/files/gleam-1.4.0-rust178-compat.patch | 28 | ||||
-rw-r--r-- | dev-lang/gleam/gleam-1.4.1.ebuild (renamed from dev-lang/gleam/gleam-1.1.0.ebuild) | 4 |
3 files changed, 35 insertions, 4 deletions
diff --git a/dev-lang/gleam/Manifest b/dev-lang/gleam/Manifest index 449aa65a6b59..608c7a42dca6 100644 --- a/dev-lang/gleam/Manifest +++ b/dev-lang/gleam/Manifest @@ -1,4 +1,5 @@ -DIST gleam-1.1.0-crates.tar.xz 28586380 BLAKE2B edecdff51966a0091bc915d7e3d4f8d1530f62dd4cb6b2b5d235e0512103c614df028351e61b6793bc56a79f469567a95224cbae3dee7b4932df23d21a5f3c5f SHA512 221675cab2b1ca6e61bbe1a87976640d25e741de4578a8d7ed5be3e552d784596bac1905af2ea06d1b3c5c6efb1ec189aa682d3e9e3f6462fd09d8b31af9603d -DIST gleam-1.1.0.tar.gz 882622 BLAKE2B 7f3ff5ce346e3f1b8d7a13723ea649f5b6e325a563cd3f4e4c0b227f3d9e4643e1e9cd403dbe9c5e8c93e47c2ae6fe1f137250c0155f8b4acbe324fdcf9efc91 SHA512 265867096b758ab554f0b4228d95b40a30d5796499b29775465d8dc3cc3ad37cf517cf979f33d906229dd33e424708e40a13ea6cf9932b54c573cd2335788695 -EBUILD gleam-1.1.0.ebuild 1002 BLAKE2B b3d0103dd43b516f290ef34cf04f384db8884937774c03b308baf93f4c208ec92f09f71cbc387241ea889e556b2d78f95e03f352c950b9a1b7d54e39008efd99 SHA512 cc158df3a11ef0e4a495eaa640ed16778519ca3d9c5796cd43693c4d5e6124292194261bfe3877a76881276b3f0fbc7e4b57d8926d9bad2d9957c1ff9c09fd6a +AUX gleam-1.4.0-rust178-compat.patch 1253 BLAKE2B 1a05f9b2cacd84a2bc52bd7cdf30470920f6c3ba406f8e5f0fc067128cb2630fc0ba4895ffeef2d5ff3f1ce9ffef60147267ff1876df09ba5957e6cbaea87307 SHA512 89ad034f4f41faa3adae86452ae8f87eb77e91527943c4289351255098df67518723f8308a23235972b2df002d2b37d451743628d860e37086dc039a17718189 +DIST gleam-1.4.0-crates.tar.xz 42395452 BLAKE2B 36733afeda26214d4d5078824fe46a7c531b73875fd265727f1e363d799accd0b4e4401798e81ef4c60dba6401e00a5df63ed54fa424d4b7a395ee07a0124676 SHA512 5996bf3e4b11d95c05de9fe02e0f2ea8ca195931098e897ee74cb96515b81cadf7e46bd566d895d79d83ac71058a05a75b2f4a60da6ff9c6e0ad9dd0332daf3a +DIST gleam-1.4.1.tar.gz 1024265 BLAKE2B c1e37d4ba261d94d2131ab79f24859cbad0a465b967c9231d991ed0640cbed3be9fbae0b693b73020ffb56346f77e313420bb1c3c4c90e7b4d0807c400008464 SHA512 ea8dbab041f3dc480c408595b9adf4fc9a588f8438c98b5c7234d735c3b0ad98fe556d4a0258a663b322275212a5f5dbc48637e9d8d557915630dae85904a5cd +EBUILD gleam-1.4.1.ebuild 1069 BLAKE2B 5361603890ad0b12cadbb93d300c7558128a825ee105d73112873e306b548416194d8f7845f7408107fa8505b61fe3de436cd8d8929cdbe64ac1fb861fd02bd1 SHA512 3df007190721bce286c3cec05e5e0ffd6a48f9d2e4f20da947718c70852e9d01054c42700c18f934ee4f7bf13622546b205380631757cc6eb8ce497acf1cb8e3 MISC metadata.xml 339 BLAKE2B 75c47a1669f737b04e1ca54cb3d222f84f408ad4d24ae8c505dd0d6644b4c0069618cb8ef7f5c773f271c3ac1ae8d6a625e0a4cabadbf23b9eae0c9ab149d3cd SHA512 5f769e170ffff7a528f5de910ba8ff1c525214357e1e421c2b6a922700ef77271b91687c18708787195d6b28179a95dc171082c1e94291bc9fef8771fb7c7086 diff --git a/dev-lang/gleam/files/gleam-1.4.0-rust178-compat.patch b/dev-lang/gleam/files/gleam-1.4.0-rust178-compat.patch new file mode 100644 index 000000000000..3e3ab1dc1937 --- /dev/null +++ b/dev-lang/gleam/files/gleam-1.4.0-rust178-compat.patch @@ -0,0 +1,28 @@ +From b2301ad49894fa7a6edc89a3b2128be274bd2996 Mon Sep 17 00:00:00 2001 +From: Philipp Herzog <ph@flyingcircus.io> +Date: Sat, 3 Aug 2024 11:10:37 +0200 +Subject: [PATCH] Store formatted variables in a variable + +This fixes compilation errors when compiling with slightly less recent +rust compilers, e.g. 1.78.0 and 1.77.1. + +The performance overhead of formatting the string here is neglegible in +any case since the string is only discarded if there are zero or one +variables, in which case the extra call to `join` is very cheap. + +Upstream: https://github.com/gleam-lang/gleam/pull/3484 +--- a/compiler-core/src/language_server/code_action.rs ++++ b/compiler-core/src/language_server/code_action.rs +@@ -344,10 +344,11 @@ impl<'ast> ast::visit::Visit<'ast> for LetAssertToCase<'_> { + self.visit_typed_pattern(&assignment.pattern); + let variables = std::mem::take(&mut self.pattern_variables); + ++ let formatted_all = format!("#({})", variables.join(", ")); + let assigned = match variables.len() { + 0 => "_", + 1 => variables.first().expect("Variables is length one"), +- _ => &format!("#({})", variables.join(", ")), ++ _ => &formatted_all, + }; + + let edit = TextEdit { diff --git a/dev-lang/gleam/gleam-1.1.0.ebuild b/dev-lang/gleam/gleam-1.4.1.ebuild index 050a8cc09d08..7151240a5284 100644 --- a/dev-lang/gleam/gleam-1.1.0.ebuild +++ b/dev-lang/gleam/gleam-1.4.1.ebuild @@ -9,7 +9,7 @@ DESCRIPTION="A friendly language for building type-safe, scalable systems!" HOMEPAGE="https://gleam.run https://github.com/gleam-lang/gleam" SRC_URI=" https://github.com/gleam-lang/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~matthew/distfiles/${P}-crates.tar.xz + https://dev.gentoo.org/~matthew/distfiles/${PN}-1.4.0-crates.tar.xz " LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB openssl" @@ -18,6 +18,8 @@ KEYWORDS="~amd64" RDEPEND="dev-lang/erlang:*" +PATCHES=( "${FILESDIR}"/${PN}-1.4.0-rust178-compat.patch ) + # rust does not use *FLAGS from make.conf, silence portage warning # update with proper path to binaries this crate installs, omit leading / QA_FLAGS_IGNORED="usr/bin/${PN}" |