commit:     4ea75ccb1674776ca811a0b2df41c83ea48fb9a2
Author:     Itai Ferber <itai <AT> itaiferber <DOT> net>
AuthorDate: Sat Aug 10 15:57:24 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sat Aug 10 15:57:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4ea75ccb

dev-lang/swift: ebuild correctness fixes

Signed-off-by: Itai Ferber <itai <AT> itaiferber.net>

 dev-lang/swift/swift-5.10.1.ebuild | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dev-lang/swift/swift-5.10.1.ebuild 
b/dev-lang/swift/swift-5.10.1.ebuild
index a53eb87d5..4037a47c9 100644
--- a/dev-lang/swift/swift-5.10.1.ebuild
+++ b/dev-lang/swift/swift-5.10.1.ebuild
@@ -49,10 +49,10 @@ SRC_URI="
        
https://github.com/unicode-org/icu/archive/refs/tags/release-69-1.tar.gz -> 
icu-69.1.tar.gz
 "
 
-PATCHES="
-       ${FILESDIR}/${P}-link-with-lld.patch
-       ${FILESDIR}/${P}-llbuild-link-ncurses-tinfo-gentoo.patch
-"
+PATCHES=(
+       "${FILESDIR}/${P}-link-with-lld.patch"
+       "${FILESDIR}/${P}-llbuild-link-ncurses-tinfo-gentoo.patch"
+)
 
 S="${WORKDIR}"
 LICENSE="Apache-2.0"
@@ -234,7 +234,7 @@ src_install() {
        # `libicudataswift.so.69.1` has an empty `DT_RUNPATH`, which fails
        # `rpath_security_checks`. It contains only data, so we can remove its 
rpath
        # altogether.
-       patchelf --remove-rpath 
"${S}/stage2/usr/lib/swift/linux/libicudataswift.so.69.1"
+       patchelf --remove-rpath 
"${S}/stage2/usr/lib/swift/linux/libicudataswift.so.69.1" || die
 
        # The Swift build output is intended to be self-contained, and is
        # _significantly_ easier to leave as-is than attempt to splat onto the
@@ -249,6 +249,7 @@ src_install() {
        # exposed externally, so we'll just symlink Swift-specific binaries into
        # `/usr/bin`. (The majority of executables don't need to be exposed as
        # `swift <command>` calls `swift-<command>` directly.)
+       local bin
        for bin in swift swiftc sourcekit-lsp; do
                dosym -r "${dest_dir}/usr/bin/${bin}" "/usr/bin/${bin}"
        done

Reply via email to