mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 12:33:40 -04:00
dev-lang/swift: update SRC_URI and clean up ebuild
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
@@ -8,7 +8,7 @@ inherit python-single-r1
|
|||||||
|
|
||||||
DESCRIPTION="A high-level general-purpose, multi-paradigm, compiled programming language"
|
DESCRIPTION="A high-level general-purpose, multi-paradigm, compiled programming language"
|
||||||
HOMEPAGE="https://www.swift.org/"
|
HOMEPAGE="https://www.swift.org/"
|
||||||
SRC_URI="amd64? ( https://download.swift.org/${P}-release/fedora39/${P}-RELEASE/${P}-RELEASE-fedora39.tar.gz )"
|
SRC_URI="https://download.swift.org/${P}-release/fedora39/${P}-RELEASE/${P}-RELEASE-fedora39.tar.gz"
|
||||||
S="${WORKDIR}/${P}-RELEASE-fedora39/usr"
|
S="${WORKDIR}/${P}-RELEASE-fedora39/usr"
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
@@ -16,7 +16,7 @@ SLOT="0"
|
|||||||
KEYWORDS="-* ~amd64"
|
KEYWORDS="-* ~amd64"
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
RESTRICT="bindist mirror test strip"
|
RESTRICT="strip"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
${PYTHON_DEPS}
|
${PYTHON_DEPS}
|
||||||
@@ -47,9 +47,9 @@ src_install() {
|
|||||||
# the filesystem; we'll install the contents as-is into
|
# the filesystem; we'll install the contents as-is into
|
||||||
# `/usr/lib64/swift-{version}` (e.g., `/usr/lib64/swift-5.10.1`) and expose
|
# `/usr/lib64/swift-{version}` (e.g., `/usr/lib64/swift-5.10.1`) and expose
|
||||||
# the relevant binaries via linking.
|
# the relevant binaries via linking.
|
||||||
dest_dir="/usr/lib64/swift-${PV}"
|
local dest_dir="/usr/lib64/swift-${PV}"
|
||||||
mkdir -p "${ED}${dest_dir}"
|
mkdir -p "${ED}${dest_dir}" || die
|
||||||
cp -pPR "${S}" "${ED}${dest_dir}"
|
cp -pPR "${S}" "${ED}${dest_dir}" || die
|
||||||
|
|
||||||
# Swift ships with its own `clang`, `lldb`, etc.; these don't need to be
|
# Swift ships with its own `clang`, `lldb`, etc.; these don't need to be
|
||||||
# exposed externally, so we'll just symlink Swift-specific binaries into
|
# exposed externally, so we'll just symlink Swift-specific binaries into
|
||||||
@@ -57,7 +57,7 @@ src_install() {
|
|||||||
find bin -maxdepth 1 \( -type f -o -type l \) \
|
find bin -maxdepth 1 \( -type f -o -type l \) \
|
||||||
\( -name "swift*" -o -name "sourcekit*" \) -executable -print0 |
|
\( -name "swift*" -o -name "sourcekit*" \) -executable -print0 |
|
||||||
while IFS= read -r -d '' exe_path; do
|
while IFS= read -r -d '' exe_path; do
|
||||||
exe_name="$(basename "$exe_path")"
|
local exe_name="$(basename "$exe_path")"
|
||||||
dosym -r "${dest_dir}/usr/bin/${exe_name}" "/usr/bin/${exe_name}"
|
dosym -r "${dest_dir}/usr/bin/${exe_name}" "/usr/bin/${exe_name}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user